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.
if a class name is changed, the NbBundle.getMessage lines are not updated. Class MyClass { public MyClass() { NbBundle.getMessage(MyClass.class, "MY_MSG") ; } } if name changes to MyNewClass, we have: Class MyNewClass { public MyNewClass() { NbBundle.getMessage(MyClass.class, "MY_MSG") ; } } This is even more problematic if you change packages. Not only does the class attrib in the NbBundle.getMessage not change, but the packages Bundle is not updated or the user informed that keys may be missing.
I am sorry, but this works for me. You need to provide more detailed steps how to reproduce it.
Tomasi, I understand it. But this is rather enhancement, than defect. We don't perform refactoring in Bundle.properties files. If you move class to different package, than NbBundle.getMessage(MyClass.class, "MY_MSG") fail, because Bundle.properties file in the new package does not contain key from original package.
Seems that user is not talking about bundle keys, but rather the class name in ClassExpression that is part of the NbBundle.getMessage() statement. Changing back to defect.
ClassExpression is changed in NB 4.2.