Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8347462

Improve TraceClassLoading to add link information

XMLWordPrintable

      TraceClassLoading (JDK 8) currently prints a "Loaded <class>" message when the class is loaded but not yet linked. In JDK 11+, this message is included in the logging framework as "[info][class,load] <Class>".

      These messages are not well understood by many users and are often misinterpreted as meaning the class is loaded, linked and usable. In circumstances where a third party software may be swallowing errors, such as LinkageErrors, it may be that classloading fails after the "Loaded <class>" message has been printed, giving a false indication of success.

      This is a request to print a message when the class is linked and add any LinkageErrors to the tracing.

            matsaave Matias Saavedra Silva
            spayne Sandra Payne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: