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

Summary: "Use @NbBundle.Messages" hint should accept reference classes in the same package
Product: apisupport Reporter: Jesse Glick <jglick>
Component: RefactoringAssignee: Martin Kozeny <mkozeny>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.