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: | Class name change refactoring does not change class name in annotations or enums parameters | ||
---|---|---|---|
Product: | java | Reporter: | bronek77 <bronek77> |
Component: | Refactoring | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jlahoda |
Priority: | P2 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
bronek77
2017-03-09 14:49:33 UTC
Only happens if the renamed class name appears in implicit 'value' annotation member I could not reproduce the enum parameter error; tried a class, or even enum's class itself - rename operation renamed such reference. The culrpit seems to be TreeUtilities.isSynthetic; it reports the A reference in @Annotation(A.class) as synthetic despite the tree is really present in the source; its parent (value = A.class) assignment is synthetic, but the child is real. Lahvaci: is it desirable to return isSynthetic = true for such cases ? Should be fixed in jet-main#976b61fbb370 Integrated into 'main-silver', will be available in build *201703300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/976b61fbb370 User: Svata Dedic <sdedic@netbeans.org> Log: #270036: extra handling for annotation implicit attribute added |