Confusing error message about schema when building native image #515
Labels
Comments
Thanks for reporting this behavior. The correct syntax for You are right, the error message is also wrong and it should instead tell you that the class is missing. By the way all this logic is in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the JSON configuration for allowed runtime reflection contains a class that is not on the class path, the tool tells me to verify that my configuration matches the schema:
The error is really that
no.such.Object
is not on the classpath, so it's confusing to tell me to check the JSON (which is perfectly valid).Also running
native-image -H:PrintFlags+
is an error:so it isn't helpful even if the JSON is really malformed. If there is a way to print some schema hints from the command line, that's great, but I still don't know what it is.
The text was updated successfully, but these errors were encountered: