java.lang.ClassFormatError: This JVM does not support constant tag 15 in class file

Marcos Antonio marcos_antonio_ps at hotmail.com
Thu Jan 6 05:55:45 PST 2011


Hello, all!
 
I set up this simple code to test method references:
 
public static int comp(Integer i1, Integer i2)
{
    return i1 - i2;
}
 
Integer[] ints = {1, 2};
Arrays.sort(ints, GerenciadorAutorizacao#comp);
 
The compilation is fine but running the application produces this error:

Exception in thread "AWT-EventQueue-0" java.lang.ClassFormatError: This JVM does not support constant tag 15 in class file br/desenvolvimento/iu/Sistema$GerenciadorAutorizacao
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at br.desenvolvimento.iu.Sistema$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
 
Am I missing something? I'm using JDK 7 b123 with the latest lambda updates.
 
Thank you.
 
Marcos 		 	   		  


More information about the lambda-dev mailing list