Issue when using URL in native mode

This project demonstrates a bug in native mode when using URL data.

Running:

mvn package -Pnative

leads to the following error:

Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported field java.net.URL.handlers is reachable

This seems to be a GraalVM limitation/decision: oracle/graal#1721

Having URL data is common place. Is there any standard recommandation, workaround for Quarkus users?

Environment

  • macOS 10.13.6
  • OpenJDK 11.0.7
  • Quarkus 1.8.1.Final