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 268799 - Rename recfatoring and "Find Usages" do not work in nested annotation
Summary: Rename recfatoring and "Find Usages" do not work in nested annotation
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-03 11:08 UTC by ebaumann
Modified: 2016-11-03 11:08 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 ebaumann 2016-11-03 11:08:00 UTC
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

@NamedQueries({
    @NamedQuery(name = MyEntity.Q_ALL, query = "SELECT e FROM MyEntity e")
})
public final class MyEntity {

    public static final String Q_ALL = "All";

}

* Rename Refactoring is not offered within the annotation (MyEntity.Q_ALL in @NamedQuery)
* Rename Refactoring in the class does not rename in the annoation (Q_ALL)
* Find Usages within the class does not find usages in the annotation