Description
open-ended meta issue for JDK compatibility problems of the netbeans codebase
see sub-issues for details
easy way to get a list of for-removal deprecated calls is to start NB with JFR enabled (put into conf so that userdir can be resolved):
-J-XX:StartFlightRecording:filename=${netbeans_default_userdir}/var/nb.jfr,settings=default.jfc,dumponexit=true
then list with:
jfr print --events jdk.DeprecatedInvocation nb.jfr
(or open in tools like VisualVM, Mission Control etc)
unfortunately the stored stack is limited to displaying only the first non-jdk frame https://bugs.openjdk.org/browse/JDK-8211238
The event will have a stack trace but will be truncated to the immediate caller. Take note JMC, as the existing heuristics about reporting truncated stack traces will need to be updated.
which can make finding the usage a bit more difficult