Skip to content

Error in regex string in ResponseForAClassSourceAnalyzer #9

@GoogleCodeExporter

Description

@GoogleCodeExporter
I performed an analysis on the LineAnalyzer directory and got the following
stack trace. Looks to be an error in the syntax of the regex.

java.util.regex.PatternSyntaxException: Unclosed group near index 43
.*(".*(public|private|protected).*\\\s*\(.*
                                           ^
    at java.util.regex.Pattern.error(Pattern.java:1650)
    at java.util.regex.Pattern.accept(Pattern.java:1508)
    at java.util.regex.Pattern.group0(Pattern.java:2460)
    at java.util.regex.Pattern.sequence(Pattern.java:1715)
    at java.util.regex.Pattern.expr(Pattern.java:1687)
    at java.util.regex.Pattern.compile(Pattern.java:1397)
    at java.util.regex.Pattern.<init>(Pattern.java:1124)
    at java.util.regex.Pattern.compile(Pattern.java:817)
    at java.util.regex.Pattern.matches(Pattern.java:919)
    at java.lang.String.matches(String.java:1921)
    at
edu.monmouth.se.oopap.sourceanalyzer.ResponseForAClassSourceAnalyzer.analyzeSour
ce(ResponseForAClassSourceAnalyzer.java:187)
    at edu.monmouth.se.oopap.OOPAPController.runAnalysis(OOPAPController.java:143)
    at edu.monmouth.se.oopap.OOPAPGUI$3.actionPerformed(OOPAPGUI.java:141)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
    at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
    at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:236)
    at java.awt.Component.processMouseEvent(Component.java:5602)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5367)
    at java.awt.Container.processEvent(Container.java:2010)
    at java.awt.Component.dispatchEventImpl(Component.java:4068)
    at java.awt.Container.dispatchEventImpl(Container.java:2068)
    at java.awt.Component.dispatchEvent(Component.java:3903)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
    at java.awt.Container.dispatchEventImpl(Container.java:2054)
    at java.awt.Window.dispatchEventImpl(Window.java:1791)
    at java.awt.Component.dispatchEvent(Component.java:3903)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
69)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Original issue reported on code.google.com by ATa...@gmail.com on 30 Apr 2008 at 2:36

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions