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 13919 - "goto" recognized as Java keyword by the editor
Summary: "goto" recognized as Java keyword by the editor
Status: CLOSED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-25 15:12 UTC by Pascal Habegger
Modified: 2007-11-05 13:44 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 Pascal Habegger 2001-07-25 15:12:50 UTC
The word "goto" in a Java source file is wrongly recognized as Java keyword by 
the editor and correspondingly highlighted.

See for instance org/netbeans/editor/ext/java/JavaTokenContext.java 
==> defines token GOTO (line 452,453):

    public static final BaseImageTokenID GOTO
    = new BaseImageTokenID("goto", GOTO_ID, KEYWORDS);

NB: There is NO goto statement in Java.
Comment 1 Pascal Habegger 2001-07-25 15:46:56 UTC
"goto" is, although currently not implemented, a reserved keyword in 
the Java language. See The Java Language Specification, 2nd edition, 
ยง3.9
Comment 2 Quality Engineering 2003-06-30 18:01:13 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-06-30 18:12:24 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.