Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261882

java.lang.ClassFormatError: LineNumberTable attribute has wrong length in class

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Lanux, Windows, JDK 1.8 and above

      A DESCRIPTION OF THE PROBLEM :
      A reproducible problem. A software library can be compiled into a functional program using JDK 1.5 (and can be executed on any later versions of JDK). But if the program is compiled using JDK 1.6 (and above), it throws
      java.lang.ClassFormatError: LineNumberTable attribute has wrong length in class

      Full example: https://github.com/chekanov/RootIOreader

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      See: : https://github.com/chekanov/RootIOreader

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      IT reads a file without problem (creating *.j files)
      ACTUAL -
      bject hep.io.root.proxy.TString has length=1025
           [java] Exception in thread "main" java.lang.ClassFormatError: LineNumberTable attribute has wrong length in class file hep/io/root/proxy/TString
           [java] at java.base/java.lang.ClassLoader.defineClass1(Native Method)

      ---------- BEGIN SOURCE ----------
      https://github.com/chekanov/RootIOreader
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Not found

            lancea Lance Andersen
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: