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

java.lang.ClassFormatError when using old collection API

XMLWordPrintable

    • 6
    • b14
    • generic
    • generic
    • Verified

        This seems to be an incompatibility issue between JDK50 and JDK60.

        On JDK5, the attached test.java works fine but JDK6 gives the following error. (the test.java needs to be compiled and run with the attached collections.zip in CLASSPATH.)


        Exception in thread "main" java.lang.ClassFormatError: Illegal class modifiers i
        n class test: 0x209
                at java.lang.ClassLoader.defineClass1(Native Method)
                at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
        4)
                at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
                at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
                at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

              wtaosunw Wei Tao (Inactive)
              mmma Marvin Ma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: