InteractiveFaultLocalization / iFL4Eclipse

iFL for Eclipse is an Eclipse plug-in for supporting interactive fault localization for Java projects developed in this environment.
Eclipse Public License 2.0
3 stars 1 forks source link

Unhandled event loop exception, regex.PatternSyntaxException using valid regular expression #203

Closed brita-sed closed 3 years ago

brita-sed commented 3 years ago

Precondition

Steps

  1. Select a project.
  2. Click iFL button.
  3. Load scores.
  4. Click Show filters button.
  5. Click Add rule button.
  6. Add a Name rule like this:
    • Enter string: create???????
    • Containment: contains
    • Matching: partial
    • Case-sensitive: no
    • Regular expression: yes

Expected results

Received results

!MESSAGE Unhandled event loop exception
!STACK 0
java.util.regex.PatternSyntaxException: Dangling meta character '?' near index 8
create???????
        ^
    at java.util.regex.Pattern.error(Unknown Source)
    at java.util.regex.Pattern.sequence(Unknown Source)
    at java.util.regex.Pattern.expr(Unknown Source)

regular_exp_02

Related issue:

Environment:

brita-sed commented 3 years ago

The "create??????" is an invalid expression, but an error message would be better than an exception.

Dhorvath1294 commented 3 years ago

https://github.com/InteractiveFaultLocalization/iFL4Eclipse/releases/tag/V3.2.203.1

brita-sed commented 3 years ago

An error popup appeared, and there wasn't any error in log, so the bug has been corrected.

invalid_expression