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 117743

Summary: I18N should not try to load texts in annotataion from the bundle
Product: java Reporter: Jiri Prox <jiriprox>
Component: I18NAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jiri Prox 2007-10-04 10:37:59 UTC
Product Version: NetBeans IDE Dev (Build 20071004052249) Java: 1.6.0_05-ea; Java HotSpot(TM) Client VM 1.6.0_05-ea-b04
System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /home/jp159440/.netbeans/dev

I18N by default should not try to modify hardcoded text in annotations. 
Of course this can be prevented by NOI18N comment

Example:
Calling I18N on following code will produce not compilable code.

public class NewMain {
	
	@SuppressWarnings("deprecation")
	public void method() {
		Thread.currentThread().destroy();
	}
}
Comment 1 Alexey Butenko 2009-01-19 13:18:56 UTC
There is an AnnotationDetector exist in JavaI18NFinder class.
So all annotations will be skipped during Internationalization.
Comment 2 Marian Petras 2009-01-19 13:57:08 UTC
Reopened such that it can be closed as a duplicate.
Comment 3 Marian Petras 2009-01-19 13:57:43 UTC

*** This issue has been marked as a duplicate of 130797 ***