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 44429 - SourceElement generates ugly formated code
Summary: SourceElement generates ugly formated code
Status: CLOSED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-07 14:08 UTC by ehucka
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 ehucka 2004-06-07 14:08:14 UTC
Steps to reproduce:

1. create a ClassElement from template
2. add some methods and an innerclass
3. check generated code
(SourceElement->DataObject->EditorCookie->Document)

Result:

between methods is not empty line, '}' closing the
innerclass is not on new line
Comment 1 Jan Becicka 2004-06-08 07:38:46 UTC
Sorry, I cannot reproduce it.
If I create a class from template, and a I add several methods, I have
pretty formated code:

public class ffff {
    
    /** Creates a new instance of ffff */
    public ffff() {
    }

    public void newMethod() {
    }

    public final class InnerClass {
    }
    
}

Comment 2 Jan Becicka 2004-06-08 07:40:51 UTC
If it happens to you in some tests, please attach these unit tests.
Comment 3 ehucka 2004-06-08 09:24:05 UTC
See ref files of java test suites in org.netbeans.test.java.generating
package.
(Java module functional tests).
Comment 4 ehucka 2004-08-05 13:23:54 UTC
Try to generate this:

public class ffff {
    
    /** Creates a new instance of ffff */
    public ffff() {
    }

    public void newMethod() {
    }

    class InnerClass {
        public void innerMethod() {
        }
    }   
}
Comment 5 ehucka 2005-01-11 13:01:43 UTC
it seems it is right now, i'm closing it as worksforme
Comment 6 ehucka 2006-03-22 10:25:07 UTC
verified
Comment 7 Quality Engineering 2007-09-20 11:59:14 UTC
Reorganization of java component