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 80385 - Peculiar parser bug?
Summary: Peculiar parser bug?
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-17 05:49 UTC by _ tboudreau
Modified: 2007-09-26 09:14 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 _ tboudreau 2006-07-17 05:49:39 UTC
Create a method such as the following:

    public void testReads() {
        System.out.println("testReads");
        assertEquals ("<\\s*[Ll][Ii]\\s*>(.*?)<\\s*/[lL][iI]\\s*>",
listitems.getPatternString());
    }

Now put a 

/*

above that method.  The parser finds the closing */ somewhere inside the regular
expression, and the rest of the file has wavy underlines.

Not sure if it belongs to the Java module or somewhere else, or even for sure
that it's a bug...but it does make commenting tests out painful.
Comment 1 Jan Lahoda 2006-12-21 11:49:00 UTC
Sorry, but I do not think this is a bug, I think the source is parsed according
to the JLS. Could you use '//' (Ctrl-Shift-T) to comment out the code?
Comment 2 _ tboudreau 2006-12-21 21:38:10 UTC
You're right.