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 - Generated code is misformated
Summary: Generated code is misformated
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
: 128964 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-16 15:20 UTC by _ pkuzel
Modified: 2009-11-02 10:57 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 _ 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