bugGrammatica - Bugs: bug #26297, Internal error reported when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #26297: Internal error reported when regular expression is invalid

Submitter:  Per Cederberg <cederberg>
Submitted:  Wed 22 Apr 2009 08:16:37 PM UTC
   
 
Severity:  2 - Normal Item Group:  Software
Status:  None Assigned to:  cederberg
Open/Closed:  Open

Wed 22 Apr 2009 08:16:37 PM UTC, original submission:  

Error report from Kevin @ Kelleysoft:

>  DOC_LINE        = <<'**' any* eos>>
>
> generates this output:
>
> INTERNAL ERROR: An internal error in Grammatica has been found.
>    Please report this error to the maintainers (see the web
>    site for instructions). Be sure to include the Grammatica
>    version number, as well as the information below:
>
> net.percederberg.grammatica.GrammarException: token 'DOC_LINE' is invalid,
> as regular expression contains error(s): Dangling meta character '*' near
> index 2
> '**' any* eos
>  ^, on line 8
>        at
> net.percederberg.grammatica.Grammar.createTokenizer(Grammar.java:229)
>        at net.percederberg.grammatica.Grammatica.debug(Grammatica.java:423)


This shouldn't be reported as an internal error, but rather just as a regexp error...

Per Cederberg <cederberg>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cederberg (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code