Skip to content

Technical debt reduction (compatibility with future JDKs) #8256

@mbien

Description

@mbien

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

The most obvious method would have been to grep the build log with

ant -Djavac.add.compilerargs="-Xmaxwarns 10000 -Xlint:deprecation -Xlint:removal"

which is possible since #8796, but for that we have too many modules still which haven't been moved to the javac release flag yet (#8813).

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Code cleanupLabel for cleanup done on the Netbeans IDEJava[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)Upgrade JDKUpgrade to the JDK requirements of a module.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions