Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Syntax error in input causes NullPointerException [sf#87] #89

Closed
lsf37 opened this issue Feb 15, 2015 · 6 comments
Closed

[Bug] Syntax error in input causes NullPointerException [sf#87] #89

lsf37 opened this issue Feb 15, 2015 · 6 comments
Labels
bug

Comments

@lsf37
Copy link
Member

@lsf37 lsf37 commented Feb 15, 2015

Reported by akirschbaum on 2007-11-16 07:03 UTC
When compiling the attached input file as "jflex Bug.jflex" an NullPointerException is thrown.

The output of jflex is:
|Reading "Bug.jflex"
|
|Error in file "Bug.jflex" (line 5):
|Syntax error.
|}
|^
|java.lang.NullPointerException
| at JFlex.CUP$LexParse$actions.CUP$LexParse$do_action(LexParse.java:1504)
| at JFlex.LexParse.do_action(LexParse.java:389)
| at java_cup.runtime.lr_parser.parse_lookahead(lr_parser.java:1178)
| at java_cup.runtime.lr_parser.error_recovery(lr_parser.java:887)
| at java_cup.runtime.lr_parser.parse(lr_parser.java:598)
| at JFlex.Main.generate(Main.java:73)
| at JFlex.Main.generate(Main.java:303)
| at JFlex.Main.main(Main.java:320)
|1 error, 0 warnings.

Running "jflex --version" yields:
|This is JFlex 1.4.1

@lsf37 lsf37 changed the title Syntax error in input causes NullPointerException [Bug] Syntax error in input causes NullPointerException [sf#87] Feb 15, 2015
@lsf37 lsf37 added this to the jflex bug milestone Feb 15, 2015
@lsf37 lsf37 closed this Feb 15, 2015
@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Commented by akirschbaum on 2007-11-16 07:03 UTC
Input file causing NullPointerException

@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Commented by lsf37 on 2007-11-19 10:53 UTC
Logged In: YES
user_id=93534
Originator: NO

Thanks for the report. I've reproduced the bug, it will be fixed in the next release.

Gerwin

@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Updated by lsf37 on 2007-11-19 10:53 UTC

  • labels: --> frontend/syntax
  • priority: 5 --> 3
  • assigned_to: nobody --> lsf37
@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Commented by lsf37 on 2007-11-25 11:12 UTC
Logged In: YES
user_id=93534
Originator: NO

This is now fixed in the repository (revision 298).

@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Updated by lsf37 on 2007-11-25 11:12 UTC

  • status: open --> open-fixed
@lsf37
Copy link
Member Author

@lsf37 lsf37 commented Feb 15, 2015

Updated by lsf37 on 2008-05-27 11:46 UTC

  • status: open-fixed --> closed
@lsf37 lsf37 added the bug label Feb 17, 2015
@lsf37 lsf37 modified the milestone: jflex bug Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.