Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57223

Telemetry gathering for missing classes due to Java modules

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • Jenkins 2.184

      A first step on gathering information via telemetry related to Java 11.

      In this ticket, we are going to gather the ClassNotFoundExeptions and some NoClassDefFoundError thrown in the master related to the Java packages moved to modules from Java 8.

          [JENKINS-57223] Telemetry gathering for missing classes due to Java modules

          Ramon Leon added a comment - - edited

          It has been tested in this scenarios:

          • A CNFE thrown by a `getClass().getClassLoader().loadClass` in a step implemented in a plugin 
          • A CNFE thrown by a `Thread.currentThread().getContextClassLoader().loadClass` in a step implemented in a plugin
          • A CNFE thrown by a `getClass().getClassLoader().loadClass` in an action implemented in a plugin 
          • A CNFE thrown by a `Thread.currentThread().getContextClassLoader().loadClass` in an action implemented in a plugin
          • A NoClassDefFoundError thrown by a call to a class moved to a module (`import sun.misc.BASE64Encoder;`) in a step implemented in a plugin

          Tester plugin: https://github.com/MRamonLeon/java11-tester-plugin

          Ramon Leon added a comment - - edited It has been tested in this scenarios: A CNFE thrown by a `getClass().getClassLoader().loadClass` in a step implemented in a plugin  A CNFE thrown by a `Thread.currentThread().getContextClassLoader().loadClass` in a step implemented in a plugin A CNFE thrown by a `getClass().getClassLoader().loadClass` in an action implemented in a plugin  A CNFE thrown by a `Thread.currentThread().getContextClassLoader().loadClass` in an action implemented in a plugin A NoClassDefFoundError thrown by a call to a class moved to a module (`import sun.misc.BASE64Encoder;`) in a step implemented in a plugin Tester plugin:  https://github.com/MRamonLeon/java11-tester-plugin

            mramonleon Ramon Leon
            mramonleon Ramon Leon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: