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 71100 - Line that follows a a removed method is not removed
Summary: Line that follows a a removed method is not removed
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 5.x
Hardware: Sun All
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-06 15:10 UTC by Jean-francois Denise
Modified: 2016-07-07 07:17 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 Jean-francois Denise 2006-01-06 15:10:13 UTC
I have a Template :

public class __NAME__ implements __NAME__MBean {

   public __NAME__() throws NotCompliantMBeanException {
       super(__NAME__MBean.class);
   }

   public MBeanNotificationInfo[] getNotificationInfo() {
        return new MBeanNotificationInfo[] {};
   }

}

I programmaticaly remove the method getNotificationInfo (refDelete).
When the method is removed, the generated code contains 1 blank line at the end
that I would like to tremove :

public class __NAME__ implements __NAME__MBean {

   public __NAME__() throws NotCompliantMBeanException {
       super(__NAME__MBean.class);
   }

   <=============== LINE TO REMOVE
}
Comment 1 Rastislav Komara 2009-02-03 10:53:26 UTC
Overtake.
Comment 2 Jan Lahoda 2009-08-20 09:58:42 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 3 Martin Balin 2016-07-07 07:17:06 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss