-
Notifications
You must be signed in to change notification settings - Fork 728
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
ReflectTools depends on unaccessible class #10737
Comments
There were also some talks about using a separate bean introspection library instead of the one that is part of the JRE because of the way it requires using lots of extra parts from the Java 9+ modular JRE. Also, I don't see any direct reference to e.g. |
@tsuoanttila See JDK-8212636 I think it can be fixed by doing the following change in Line 90: pd = new PropertyDescriptor(field.getName(), object.getClass()); After: pd = new PropertyDescriptor((String)field.getName(), object.getClass()); |
yes, it's very weird, why add one more step to convert to string forcely works, can you explain it? difference between null and (String) null?? |
It actually solves the problem. Would you please explain, why this works? |
not working |
I think another workaround is to use "--release 8" command line parameter in compilation. |
I had this problem on JDK 11 (Maven build fails): |
It definitely works, but I want to know why, really irrational! |
PR: #12134 |
Thank you @sam-ma for your solution, it worked for me!!! |
Attempting to compile the Vaadin Framework project on JDK9 or JDK10 I run into following error:
The use of
com.sun.beans.introspect
should be replaced with something compatible with JDK 8, 9 and 10.The text was updated successfully, but these errors were encountered: