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 100796 - Adding constant to interface breaks the source
Summary: Adding constant to interface breaks the source
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks: 90254
  Show dependency tree
 
Reported: 2007-04-12 15:22 UTC by Jan Pokorsky
Modified: 2007-04-13 18:27 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 2007-04-12 15:22:34 UTC
Adding a constant via TreeMaker omits semicolon and indentation. Output looks like

public interface Test {
public static final int CONSTANT = 0
}


See org.netbeans.api.java.source.gen.InterfaceTest.testAddField
Comment 1 Pavel Flaska 2007-04-12 20:19:33 UTC
Reproducible. Thanks for the test case.
Comment 2 Pavel Flaska 2007-04-12 20:36:09 UTC
Checking in src/org/netbeans/modules/java/source/save/CasualDiff.java;
/cvs/java/source/src/org/netbeans/modules/java/source/save/CasualDiff.java,v 
<--  CasualDiff.java
new revision: 1.110; previous revision: 1.109
done
Checking in test/cfg-unit.xml;
/cvs/java/source/test/cfg-unit.xml,v  <--  cfg-unit.xml
new revision: 1.29; previous revision: 1.28
done
Checking in test/unit/src/org/netbeans/api/java/source/gen/InterfaceTest.java;
/cvs/java/source/test/unit/src/org/netbeans/api/java/source/gen/InterfaceTest.java,v
 <--  InterfaceTest.java
new revision: 1.2; previous revision: 1.1
done