-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid illegal reflective access when possible #144
Avoid illegal reflective access when possible #144
Conversation
The test passes on Java 8, but yields warning on 9+ and exception on 16+. It's essentially the same as orphan-oss#104 . OGNL should call `StringBuilder#codePointAt()` (which is a bridge method) rather than the method defined in its non-public parent class `AbstractStringBuilder`.
The test passes on Java 8, but yields warning on 9+ and exception on 16+.
The test passes on Java 8, but yields warning on 9+ and exception on 16+.
The test passes, but there is a message in System.err: Two methods with same method signature but not providing classes assignable? This was originally reported as orphan-oss#35 and temporarily resolved by orphan-oss#40 , but as you can see, this is not an error case in the first place.
The test passes, but there is a message in System.err. It might have been a legitimate check in non-generic era, but not anymore.
The test passes, but there is a message in System.err. Slightly different version of the previous commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
OGNL 3.3.2 is out! Thanks a lot! |
Thank you for the swift response, @lukaszlenart ! |
I'm sorry to bother you, but I forgot to remove the unused local variable |
Please issue a PR, thank you :) |
This is a follow-up to orphan-oss#144 orphan-oss#144 (comment)
This may be a side effect of orphan-oss#144 .
As reported in #143 , making a method accessible is problematic in recent versions of Java ('illegal reflective access' warning on 9+ and InaccessibleObjectException on 16+).
This PR avoids some illegal reflective accesses that I found.
Please see the log message of each commit for the details.