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 77208

Summary: neither //NOI18N nor // NOI18N seem to work
Product: java Reporter: Milos Kleint <mkleint>
Component: I18NAssignee: Marian Petras <mpetras>
Status: RESOLVED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Milos Kleint 2006-06-01 09:31:38 UTC
While doing I18N work I figured that the internationalization support doesn't
skip lines with either //NOI18N nor //  NOI18N (no space or two spaces).
it actually requires the comment to have exactly one space between the //
characters and the text.
Comment 1 Marian Petras 2006-07-04 16:51:29 UTC
Confirmed, accepted.

The defining file is I18nUtil.java and the expresssions are in method
getRegExpItems().
Comment 2 Marian Petras 2007-02-14 13:53:42 UTC
Fixed in the trunk.

Any number of spaces (including zero) is now allowed between "//" and "NOI18N".

Modified file:
   i18n/src/org/netbeans/modules/i18n/I18nUtil.java   (1.42)

Diff:
http://i18n.netbeans.org/source/browse/i18n/src/org/netbeans/modules/i18n/I18nUtil.java?r1=1.41&r2=1.42&diff_format=u
Comment 3 Marian Petras 2007-03-12 13:31:30 UTC
*** Issue 60821 has been marked as a duplicate of this issue. ***
Comment 4 marcopar 2013-05-07 09:35:03 UTC
Please reopen

I think this bug is affecting 7.3

the wizard continues to stop on //NOI18N lines and hitting ignore adds the comment to the line every time