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 269751

Summary: Warning on overridable methods in a final class
Product: ide Reporter: jjg <jjg>
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description jjg 2017-02-05 22:58:44 UTC
NetBeans can give a warning if an overridable method is called from a constructor. That's OK.  One way to "disable" the warning is to locally override the method with a final method.

I would expect to be able to do the same by making the entire class final, which would prevent any subtype being created, hence all methods become implicitly final and non-overridable. In this case, I would expect that warning to be suppressed, but it is not.