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

java.lang.ClassFormatError: Invalid Constant Pool entry Type 19 in build-impl.xml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.0
    • Fix Version/s: 9.0
    • Component/s: projects - Ant Project
    • Environment:

      Description

      When i build a project (target jar) with do.depend=true (in project.properties or private.properties) for a second time after clean, the following is thrown:

      java.lang.ClassFormatError: Invalid Constant Pool entry Type 19
          at org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry.readEntry(ConstantPoolEntry.java:180)

      This is in the depend macro:

                      <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
                          <classpath>
                              <path path="@{classpath}"/>
                          </classpath>
                      </depend>

       

      project properties:

      javac.source=10
      javac.target=10
      platform.active=JDK_10

      The exception is thrown direct after opening build/classes/module-info.class

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aekk1932 Aekkachai
                Reporter:
                simijskes Simon IJskes
              • Votes:
                1 Vote for this issue
                Watchers:
                2 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 - 5.05h
                  5.05h