Community
Participate
Working Groups
I diggested down a big class that doesn not compile well in Eclipse, but javac has no problem with it. The error that I get is as follows: Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 24 in method pete.PRunner2.main([Ljava/lang/String;)V package pete; import java.util.*; public class PRunner2 { public static void main(String[] args) { ArrayList<String> argsl= new ArrayList<String>(); for (int i=0; i<args.length; i++){ argsl.add(args[i]); } for (int i=0; i<args.length; i++){ System.out.println(argsl.get(i).toUpperCase()); } } }
Could not reproduce using latest 1.5 code.
This is my installation (Is this not the latest?): Version: 3.0.0 Build id: 200405211200 org.eclipse.jdt.core_3.0.0.cheetah05 As far as my JVM goes: java version "1.5.0-beta" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b31) Java HotSpot(TM) Client VM (build 1.5.0-beta-b31, mixed mode) The host JVM is: java version "1.4.2_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03) Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
Cannot reproduce. Please attach the generated classfile for further investigation. I was able to compile the file against jdk1.5-beta1 with no problem.
Created attachment 11110 [details] Generated classfile Thanks for your fast responses
I have been doing some more investigation, if I set it to generate 1.4 code it works just fine.
I had a similar problem (bug 63591) which was related to build 1.5.0-beta-b31 (aka 1.5.0 alpha). The "true" 1.5.0 beta 1 worked fine for me.
*** This bug has been marked as a duplicate of 63591 ***