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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.0
    • 9.0
    • projects - Ant Project

    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

        1. JavaApplication10.zip
          46 kB
          Simon IJskes

        Issue Links

          Activity

            People

              aekk1932 Aekkachai
              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