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: | [gjast] Enumeration containing just constants are mapped incorrectly | ||
---|---|---|---|
Product: | editor | Reporter: | Martin Matula <mmatula> |
Component: | Refactoring | Assignee: | _ tball <tball> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Test file. |
Description
Martin Matula
2004-06-04 13:21:09 UTC
Created attachment 15476 [details]
Test file.
An NPE is indeed bad, and easy to fix. I need to know what an empty enum body should be defined as, however. An empty body, as spec'd, requires beginning and end token positions (all trees do), but it doesn't have any tokens and so should probably be null. Please clarify. Please ignore the NPE comment from above. Both this bug and 44346 has related questions regarding the spec, and I confused which window I had open when responding to this one. In this case the ENUM_BODY should contain a non empty ENUM_CONSTATNS subtree (exactly like it does currently) and the second subtree (at index 1) should be null. I will check it again, but I believe this worked in some of the previous versions of gjast so this seems to be a regression. Fixed mapping. Verified. |