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 204252

Summary: New hint: "Make 'BlaImpl' abstract."
Product: java Reporter: Geertjan Wielenga <geertjan>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Geertjan Wielenga 2011-10-26 07:16:01 UTC
If I have this:

public class BlaImpl implements Bla {

}

I get a hint on class level "Implement all abstract methods". However, a different solution (present in IntelliJ) would be "Make 'BlaImpl' abstract."

That new hint would result in:

public abstract class BlaImpl implements Bla {

}
Comment 1 Jan Lahoda 2011-11-06 22:22:04 UTC
Actually, not proposing this particular fix in this particular situation is more a defect than an enhancement:
http://hg.netbeans.org/main-silver/rev/14a017b5c6d0
Comment 2 Quality Engineering 2011-11-07 15:46:52 UTC
Integrated into 'main-golden', will be available in build *201111070600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/14a017b5c6d0
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #204252: ImplementAllAbstractMethods does not propose make abstract hint in some cases.