JDK-6231440 : Better diagnostic desired for common mistake with array creation
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2005-02-21
  • Updated: 2013-08-23
Related Reports
Relates :  
Relates :  
Description
Better diagnostic desirable for common mistake:

Test.java:3: ';' expected
        Object[] array = new String[1] { "foo" };
                                       ^
1 error

###@###.### 2005-2-21 18:05:46 GMT

Comments
EVALUATION We should try to address this in mustang. ###@###.### 2005-2-21 18:05:46 GMT
21-02-2005