History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-19100
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Matthew Montgomery
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Endless analysis with concatenated reg exp and static final variable

Created: 12 Aug 08 23:14   Updated: 18 Aug 08 16:55
Component/s: Editor. Error Highlighting

Environment:
Mac OS X 10.5.4
JDK 1.5.0_13

Build: 8,664
Severity: Medium


 Description  « Hide
I've run into a bit of code that is causing endless analysis in the editor. Basically the watchful eye never closes. The following code will never complete analysis.
BugTest.java
public class BugTest {

    private static final String DELIMETER = "|";

    public BugTest() {
        String regexp;
        regexp = "\\"+ DELIMETER + "+$";

        String source;
        source = "one|two|three|";

        String result;
        result = source.replaceAll(regexp, ""); // Problem line
    }
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.