Progress of #ReflectiveAccessToNonExportedTypes and #ClassFilesAsResources
Kengo TODA
skypencil at gmail.com
Wed Jan 18 23:06:57 UTC 2017
Hello experts,
I'm maintaining bytecode analysis tool named spotbugs, and I'm trying to
pass JUnit test with Java9 b149. Currently I face one problem, is that,
I cannot load java/lang/Object.class as resource.
I found that #ClassFilesAsResources is marked as resolved, however
one of related issue #ReflectiveAccessToNonExportedTypes is in active
discussion.
http://openjdk.java.net/projects/jigsaw/spec/issues/2016-12-09
At the same time, I found this email post from a Javassist maintainer,
and currently there is no reply.
http://mail.openjdk.java.net/pipermail/jpms-spec-comments/2016-December/000076.html
So I have a question and a request:
1. In my understanding, there is no stable solution to load bytecode
of other modules
which is unknown at compile time. Is it correct?
2. This request is the same with that Javassist maintainer: I hope
that jigsaw introduces less code change to our library, to support
both of Java8 and Java9 users. Maybe MRJAR (JEP 238) is one solution,
but it should make our codebase complex, so I wish flags like
--add-opens can help me to bypass this problem.
***
Kengo TODA
skypencil at gmail.com
More information about the jpms-spec-comments
mailing list