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

ArrayIndexOutOfBoundsException when parsing '<!-' #409

rohanpadhye opened this issue Mar 16, 2018 · 1 comment

ArrayIndexOutOfBoundsException when parsing '<!-' #409

rohanpadhye opened this issue Mar 16, 2018 · 1 comment


Copy link

@rohanpadhye rohanpadhye commented Mar 16, 2018

Input to Rhino 1.7.8



java.lang.ArrayIndexOutOfBoundsException: 3

	at org.mozilla.javascript.TokenStream.ungetChar(
	at org.mozilla.javascript.TokenStream.getFirstXMLToken(
	at org.mozilla.javascript.Parser.xmlInitializer(
	at org.mozilla.javascript.Parser.unaryExpr(
	at org.mozilla.javascript.Parser.mulExpr(
	at org.mozilla.javascript.Parser.addExpr(
	at org.mozilla.javascript.Parser.shiftExpr(
	at org.mozilla.javascript.Parser.relExpr(
	at org.mozilla.javascript.Parser.eqExpr(
	at org.mozilla.javascript.Parser.bitAndExpr(
	at org.mozilla.javascript.Parser.bitXorExpr(
	at org.mozilla.javascript.Parser.bitOrExpr(
	at org.mozilla.javascript.Parser.andExpr(
	at org.mozilla.javascript.Parser.orExpr(
	at org.mozilla.javascript.Parser.condExpr(
	at org.mozilla.javascript.Parser.assignExpr(
	at org.mozilla.javascript.Parser.expr(
	at org.mozilla.javascript.Parser.statementHelper(
	at org.mozilla.javascript.Parser.statement(
	at org.mozilla.javascript.Parser.parse(
	at org.mozilla.javascript.Parser.parse(
	at org.mozilla.javascript.Context.compileImpl(
	at org.mozilla.javascript.Context.compileString(
	at org.mozilla.javascript.Context.compileString(

Test case generated automatically by JQF.

This bug is possibly related to #397.

Copy link

@rohanpadhye rohanpadhye commented Mar 18, 2019

Hi, it's been more than one year since this was first reported. Are there any updates?

@p-bakker p-bakker added this to To do in v2.0.0 via automation Oct 14, 2021
@p-bakker p-bakker moved this from To do to non-Ecma in v2.0.0 Oct 14, 2021
@p-bakker p-bakker added this to To do in v1.7.15 via automation Oct 14, 2021
@p-bakker p-bakker moved this from To do to To do: non-Ecma (v2.0.0 prep) in v1.7.15 Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
To do: non-Ecma (v2.0.0 prep)
To do: non-Ecma
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants