Bug 77084 - [1.5] IDE does not cope with vargs and enhanced for statement in main method
Summary: [1.5] IDE does not cope with vargs and enhanced for statement in main method
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-27 05:23 EDT by Lars Wunderlich CLA
Modified: 2004-10-29 13:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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