Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-4903

Exception occurs when trying to scan plugin classes compiled with a java 8 source level

XMLWordPrintable

      https://answers.atlassian.com/questions/309405/pluginparseexception

      [INFO] [talledLocalContainer] Caused by: java.io.IOException: Error parsing class file
      [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:66) ~[atlassian-plugins-osgi-3.0.22.jar:na]
      [INFO] [talledLocalContainer] ... 18 common frames omitted
      [INFO] [talledLocalContainer] Caused by: java.lang.ArrayIndexOutOfBoundsException: 18
      [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:448) ~[bndlib-1.43.0-atlassian-1.jar:na]
      [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:369) ~[bndlib-1.43.0-atlassian-1.jar:na]
      [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:359) ~[bndlib-1.43.0-atlassian-1.jar:na]
      [INFO] [talledLocalContainer] ... 18 common frames omitted

      After switching to compile with a java source level of 1.8 I couldn't run my plugin.
      The plugin builds successfully, when I turn off code on java 1.8 and set plugin source level to 1.7

              Unassigned Unassigned
              6954e0c50e7f Dana
              Votes:
              7 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: