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.

Bug 44617 - [1.5] EnumConstant.refDelete breaks source code
Summary: [1.5] EnumConstant.refDelete breaks source code
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-09 10:33 UTC by Jan Pokorsky
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pokorsky 2004-06-09 10:33:19 UTC
The constant is removed properly but the second
semicolon occurs behind remaining constants.

test case:

1. have the enum

enum En {
  E1, E2, E;
  int i;
}

2. remove E via JMI api
3. you get

enum En {
  E1, E2, E;;
  int i;
}
Comment 1 Martin Matula 2004-06-18 17:20:17 UTC
Fixed. I am not able to reproduce it anymore.
Comment 2 Jan Pokorsky 2004-06-18 18:12:17 UTC
After deletion of the constant source code indentation is wrong.

have enum
enum En {
  E1, E2, E;
}

after delete E1
enum En {
E2, E;
}
Comment 3 Tomas Hurka 2004-06-22 08:41:54 UTC
Moved to new subcomponent java/javacore.
Comment 4 Martin Matula 2004-06-24 22:59:50 UTC
Pavel, please look at this.
Comment 5 Pavel Flaska 2004-06-25 10:28:15 UTC
Fixed.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaEnumImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaEnumImpl.java,v
 <--  JavaEnumImpl.java
new revision: 1.7; previous revision: 1.6
done
Processing log script arguments...
Comment 6 Quality Engineering 2007-09-20 12:05:29 UTC
Reorganization of java component