Community
Participate
Working Groups
Here's a simple example for enhanced loop. public class Test { public static void main(String[] args) { for (String arg : args) { System.out.println(arg); } } } This works fine. However, here's another example. public class Test2 { public static void main(String[] args) { List list = new ArrayList(); for (String arg : args) { System.out.println(arg); list.add(arg); } for (Object arg: list) { System.out.println(arg); } } } This results in Exception in thread "main" java.lang.VerifyError: (class: Test2, method: main signature: ([Ljava/lang/String;)V) Illegal type in constant pool My testing platform is Eclipse3.0-I20040407 featuring Cheetah02 + Tiger beta1 (JDK 1.5.0 b32c). Thanks, Ias
I will investigate this one.
Fixed and released in 1.5 stream. Regression test added. Thanks for your report.