ppalaga commented on issue #4284:
URL: https://github.com/apache/camel-quarkus/issues/4284#issuecomment-1353709280

   @galderz @zakkak is the different behavior between GraalVM and Mandrel 
expected?
   
   I tried to figure out how to implement the hint `adding "unsafeAllocated" 
for the class in reflect-config.json` given in the error message.
   
   There seem to exist no Quarkus way to register a class for reflection with 
`unsafeAllocated=true` or I am overseeing something?
   
   Adding 
   
   ```
   [
       {
           "name": "sjsonnet.Expr$Member$Field[]",
           "unsafeAllocated": true
       },
       {
           "name": "sjsonnet.Expr[]",
           "unsafeAllocated": true
       }
   ]
   ```
   
   to 
extensions/jsonata/runtime/src/main/resources/META-INF/native-image/org.apache.camel.quarkus/camel-quarkus-jsonata/reflect-config.json
 helps though. I have sent that in 
https://github.com/apache/camel-quarkus/pull/4343 but I consider it only to be 
a workaround.
   
   Is this a bug in Mandrel or we need to add unsafeAllocated to 
ReflectiveClassBuildItem?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to