Issue Details (XML | Word | Printable)

Key: CLOV-50
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michael Studman [Atlassian]
Reporter: Michael Studman [Atlassian]
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Clover

Instrumenter fails on enum with single semicolon in body

Created: 15/Oct/07 08:01 AM   Updated: 24/Oct/07 10:16 PM
Component/s: None
Affects Version/s: 2 final
Fix Version/s: 2.0.2

Time Tracking:
Not Specified

Participants: Michael Studman [Atlassian] and Nick Pellow [Atlassian]
Since last comment: 1 year, 6 weeks, 3 days ago
Resolution Date: 24/Oct/07 10:16 PM
Labels:


 Description  « Hide
public enum Foo { ; }

This fails in Clover but passes in javac. The problem is enumBody states that the constant block is mandatory when in fact it is optional.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Michael Studman [Atlassian] added a comment - 15/Oct/07 09:27 AM
public enum Foo { ,; } also fails.

Michael Studman [Atlassian] added a comment - 15/Oct/07 06:25 PM
Fix committed for 2.0 release.

Nick Pellow [Atlassian] added a comment - 18/Oct/07 11:00 PM
Rolled back until we can remove the warning from Antlr.