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 211124 - "Use @NbBundle.Messages" hint should accept reference classes in the same package
Summary: "Use @NbBundle.Messages" hint should accept reference classes in the same pac...
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.1
Hardware: All All
: P4 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-12 23:16 UTC by Jesse Glick
Modified: 2013-08-09 12:25 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 Jesse Glick 2012-04-12 23:16:05 UTC
Currently UseNbBundleMessages_wrong_class_name is issued in case NbBundle.getMessage(X.class, "k") is called from Y.java where X != Y. In many such cases, X is either a nested type of Y, or some other type in the same package; so the call has the same effect as NbBundle.getMessage(Y.class, "k") and the hint should offer to replace it with k() as usual.