History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-7546
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Eugene Vigdorchik
Reporter: Stephen Friedrich
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Bad code is green: varargs with language level 1.4

Created: 24 Jul 06 17:45   Updated: 25 Jul 06 13:30
Component/s: None
Fix Version/s: Demetra 5561

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 5,557
Fixed in build: 5,562
Severity: Medium


 Description  « Hide
Idea does not complain about varargs method definition when language level is set to 1.4.
It should - the code does not compile, but gives error message "<identifier> expected".
public static void foo(String... s) {
}


 All   Comments   Work Log   Change History      Sort Order:
Stephen Friedrich - 25 Jul 06 13:10
Just noticed that assert statements are also not highlighted as error.
Is this also fixed, or should I file a new bug?

Eugene Vigdorchik - 25 Jul 06 13:30
assert statements were introduced in 1.4, so no error here.