Bug 77084

Summary: [1.5] IDE does not cope with vargs and enhanced for statement in main method
Product: [Eclipse Project] JDT Reporter: Lars Wunderlich <lars.wunderlich>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Lars Wunderlich CLA 2004-10-27 05:23:07 EDT
The IDE does not cope with the following class. It cannot find the main method 
even though the Java virtual machine only can run it the normal way. And I get 
a compile error on the args argument while Sun JDK compiles it without problems.

public class TestClass {
   public static void main (String ... args) {
       for (String a:args) {
           System.out.println(a);
       }
   }
}
Comment 1 Frederic Fusier CLA 2004-10-27 06:28:35 EDT
It works perfectly using last integration build I200410260800.
Haven't you forget to set 1.5 level for compiler and/or use 1.5.0 library while
running it...?
Comment 2 Frederic Fusier CLA 2004-10-29 13:05:09 EDT
Test case test012 added in VarargsTest