Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3346

Upgrade asm-all jar to asm 7.2

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Next, 11.3
    • Fix Version/s: 11.3
    • Component/s: java - Platform
    • Environment:
      Fedora 31 & JDK Zulu 11.0.5

      Description

      I tried to upgrade the asm-all-5.0.1 library to the latest version 7.2 and received a nullPointerException (line 774 of asm-52 & asm-72 files). I already successfully upgrade it to version 5.1 (https://issues.apache.org/jira/browse/NETBEANS-3341).

      After adding logging to the Asm.java file and try every release of the asm library (see https://asm.ow2.io/versions.html) and compare their source code I find the change that cause the nullPointerException:

       

      https://gitlab.ow2.org/asm/asm/issues/317626

       

      This change can be seen in the line 752 of the three files attached, this files are the starting up logs of the application.

      My Asm.java fork:

       

      https://github.com/pepness/incubator-netbeans/commit/c886770c0f90546020a24c93362357d3d351bcf5#diff-78005b879fd4d928c74ae21edf93ebafR360

       

      Unfortunately I do not know nothing of Java bytecode manipulation nor the asm library to know what to do to upgrade this library.

       

      My reason to update this library is for bug fixes, better support/code and better performance (https://asm.ow2.io/performance.html) .

        Attachments

        1. asm-51.log
          112 kB
          Jose
        2. asm-52.log
          116 kB
          Jose
        3. asm-72.log
          116 kB
          Jose

          Issue Links

            Activity

              People

              • Assignee:
                pepness Jose
                Reporter:
                pepness Jose
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m