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

Submitted by:  Per Cederberg <cederberg>
Submitted on:  Wed 22 Apr 2009 08:16:37 PM UTC  
 
Severity: 2 - NormalItem Group: Software
Status: NoneAssigned to: Per Cederberg <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>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1