This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Enumeration: extra semicolon or comma at last of constant | ||
---|---|---|---|
Product: | uml | Reporter: | Sherry Zhou <sherryzhou> |
Component: | Code Generation | Assignee: | Viktor Lapitski <lvv> |
Status: | VERIFIED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Sherry Zhou
2007-07-10 19:18:31 UTC
I call it a p2 here since incorrect code generated. the following, correct Java, code was generated (markers removed). Last, extra, comma is pretty legal according to Java lang spec&grammar (http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.9) public enum Season { Winter, Spring, Summer, Fall,; } Yes, the extra comma is ok. I issue I see here is the extra semicolon (after Summer) from the description. trying to reproduce the issue as described i didn't get ";" after Summer. I just tried with today's cb build netbeans-hudson-trunk-1580-full.zip and not able to reproduce either. Maybe error in copy and paste? If so, this issue is invalid. just reverified again but not repro. |