-
Notifications
You must be signed in to change notification settings - Fork 855
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
Fix an 'illegal reflective access' warning on startup #7476
Conversation
This commit removes the warning below, which was observed when starting a NetBeans Platform application: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.openide.util.RequestProcessor$TopLevelThreadGroup (file:/C:/Users/ebakke/.m2/repository/org/netbeans/api/org-openide-util/RELEASE180ULT7/org-openide-util-RELEASE180ULT7.jar) to method sun.awt.AppContext.getAppContext() WARNING: Please consider reporting this to the maintainers of org.openide.util.RequestProcessor$TopLevelThreadGroup WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
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.
Wouldn't it make sense to remove the code completely? Even when considering developments like OpenWebStart, I assume, that the developers from OWS do the sane thing and don't try to share the same java process for multiple executions. Thus this indeed is mood.
Yeah, I can remove it. I have a habit of keeping old code around until it actually gets in the way, but this one is unlikely to ever be needed again. |
…mmit before merging.)
546b0e4
to
17159a1
Compare
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.
looks good!
+1 for removing it instead of keeping dead code. Refactorings and cleanups are healthy for old code bases. Git will remember anyway :).
Thanks for reviewing! Merging... |
forgot to squash :) |
D'oh, sorry about that! |
This commit removes the warning below, which was observed when starting a NetBeans Platform application: