Proxy classes and reflection (IllegalAccessException)

Dawid Weiss dawid.weiss at gmail.com
Fri Apr 8 13:02:12 UTC 2016


> I don't have time to look it just now but
> java.annotations.common/javax.ws.rs.ext.Providers is
> <module-name>/<class-name> and I wouldn't have expected to see this type
> javax.ws.rs.ext.Providers in this module.

Yes, it's a mess, I agree. It comes from the patched module. Why is
this such a mess -- I've no idea, I'm just the user of the library. :)

> There was some discussion on Groovy here a few months ago and it will be
> challenge.

I remember this discussion. For now I disabled the tests that involve
RestEast on Java9 and everything else passes. What's interesting is
that our application (not the individual tests, the whole thing) works
out of the box even without all these module-related hacks -- we use a
tiny launcher that in turn collects dependencies into a single
URLClassLoader, then runs the application from there. I found this out
by accident, but I can already see how people may try to abuse this
instead of going through the struggle of finding correct JVM switches
for modules (until they become more widespread)...

Dawid


More information about the jigsaw-dev mailing list