essobedo commented on code in PR #4385:
URL: https://github.com/apache/camel-quarkus/pull/4385#discussion_r1064598534


##########
integration-tests/groovy-dsl/pom.xml:
##########
@@ -100,6 +120,36 @@
                 </dependency>
             </dependencies>
         </profile>
+        <profile>
+            <id>native</id>
+            <activation>
+                <property>
+                    <name>native</name>
+                </property>
+            </activation>
+            <properties>
+                <quarkus.package.type>native</quarkus.package.type>
+                <!-- To prevent getting DeletedElementException: Unsupported 
method java.lang.Class.registerNatives()
+                is reachable for some use cases -->
+                
<quarkus.native.additional-build-args>--report-unsupported-elements-at-runtime</quarkus.native.additional-build-args>

Review Comment:
   Yeah, I know, fortunately, this flag is only needed for some use cases not 
all. I may be wrong but I'm afraid that it can only be fixed at Graal VM level, 
indeed the method `Class#registerNatives` is private/native and it is called 
only on static initialization of the class `Class` and I don't know any way to 
prevent that, IMHO it should never occur.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to