eclipse-ee4j / jersey

Eclipse Jersey Project - Read our Wiki:
https://github.com/eclipse-ee4j/jersey/wiki
Other
691 stars 356 forks source link

Jersey 2.30.1 warnings with Java 11 during WADL generation #4406

Open marci74 opened 4 years ago

marci74 commented 4 years ago

With Java 11 and Jersey 2.30.1 I get warnings during the WADL generation:

Illegal reflective access by org.glassfish.jersey.server.wadl.internal.generators.WadlGeneratorJAXBGrammarGenerator$6$1 to constructor java.io.Reader()

It used to work without this warning in 2.29.1.

jansupol commented 4 years ago

Thanks for bringing this up.

WadlGeneratorJAXBGrammarGenerator class has not been modified since 2.29.1, so the behavior should be the same. It may be related to modules, have you by any chance introduced module.info to your project recently?

There seems to be a way to suppress the warning.

We should update the code not to WARN.