You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get the HikariCP library to compile using native-image. There is a part of the code that calls missing classes on the classpath and naturally the compiler errors out there.
I don't want to use --allow-incomplete-classpath because it would ignore all classes everywhere when I really only want to ignore these specific classes. (And preferably only at those specific places in the codebase). As far as I know no such functionality exists in graal at the moment.
I'm aware of substitutions and would love to use the feature however the mechanism has limitations which stops me from using it. I.e. I can't call methods on the object I'm in, I can't assign a value to member fields and I can't instantiate objects defined in package private packages.
Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved type during parsing: com.codahale.metrics.MetricRegistry. To diagnose the issue you can use the --allow-incomplete-classpath option. The missing type is then reported at run time when it is accessed the first time.
Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved type during parsing: com.codahale.metrics.health.HealthCheckRegistry. To diagnose the issue you can use the --allow-incomplete-classpath option. The missing type is then reported at run time when it is accessed the first time.
The text was updated successfully, but these errors were encountered:
I'm trying to get the HikariCP library to compile using native-image. There is a part of the code that calls missing classes on the classpath and naturally the compiler errors out there.
I don't want to use
--allow-incomplete-classpath
because it would ignore all classes everywhere when I really only want to ignore these specific classes. (And preferably only at those specific places in the codebase). As far as I know no such functionality exists in graal at the moment.I'm aware of substitutions and would love to use the feature however the mechanism has limitations which stops me from using it. I.e. I can't call methods on the object I'm in, I can't assign a value to member fields and I can't instantiate objects defined in package private packages.
The text was updated successfully, but these errors were encountered: