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.
Summary: | [81cat] Java hint: CreateSubclass available where it shouldn't be | ||
---|---|---|---|
Product: | qa | Reporter: | cezariusz <cezariusz> |
Component: | Test Specifications | Assignee: | issues@qa <issues> |
Status: | NEW --- | ||
Severity: | normal | CC: | cezariusz |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 8 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
cezariusz
2015-07-27 07:57:41 UTC
Same here: public class ClassWithPrivateConstruction // "Create subclass" hint should NOT appear here, as the class has private access and "Create subclass" only creates top-level subclasses. { private ClassWithPrivateConstruction() { } } I think the suggestion SHOULD appear even in this case, to incremental aid refactoring. It's a inline suggestion (rather an intention), which does not appear in code inspection and the user chooses when to execute the action at will. We should not demand a specific workflow: that the user first turns the class to protected or public (possibly changing constructors) and only THEN the IDE can assist in generating the boilerplate code. Please update the test spec. If unhappy with the decision, raise a discussion on mailing list. Integrated into 'main-silver', will be available in build *201508050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4891cee42d1a User: Svata Dedic <sdedic@netbeans.org> Log: #253838: create subclass suppressed on non-static types |