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 68819

Summary: Generated code is misformated
Product: java Reporter: _ pkuzel <pkuzel>
Component: BeansAssignee: Jan Pokorsky <jpokorsky>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ pkuzel 2005-11-16 15:20:19 UTC
I got:

    // Bean descriptor                          
    /*lazy BeanDescriptor*/
    private static BeanDescriptor getBdescriptor(){
        BeanDescriptor beanDescriptor = new BeanDescriptor  (
org.netbeans.modules.diff.builtin.provider.BuiltInDiffProvider.class , null );
// NOI18N                              
        
        // Here you can add code for customizing the BeanDescriptor.
        
        return beanDescriptor;         }                         
    

Expected behaviour: ending bracket is on new line.
Comment 1 Daniel Prusa 2005-11-21 16:27:24 UTC
This problem originates in JavaEditor. Its 'setBottom' method is used to insert
guarded sections containing return statement followed by '}', however, these
sections are forced to consists of one line only - needed new line characters
are correctly generated by the beans module, but removed by 'setBottom'.
Comment 2 Jan Becicka 2008-08-11 13:55:23 UTC
*** Issue 128964 has been marked as a duplicate of this issue. ***
Comment 3 Jan Pokorsky 2008-11-12 12:48:41 UTC
It should be fixed by migrating to java.source generator.
Comment 4 Quality Engineering 2009-11-02 10:57:20 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX