-
Notifications
You must be signed in to change notification settings - Fork 21
OutOfMemoryErrors and inifinte loops in scala.xml.parsing.ConstructingParser #4520
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4520?orig=1
|
@harrah said: scala> x.xCharData
:1:1: '[' expected instead of '<'<foo/>^
java.lang.RuntimeException: FATAL
at scala.Predef$$.error(Predef.scala:76)
at scala.xml.parsing.MarkupParser$$class.xToken(MarkupParser.scala:267)
at scala.xml.parsing.ConstructingParser.xToken(ConstructingParser.scala:56)
at scala.xml.parsing.MarkupParser$$class.xToken(MarkupParser.scala:274)
at scala.xml.parsing.ConstructingParser.xToken(ConstructingParser.scala:56) The cause was the refactoring of !MarkupParser* in r20212, which dropped the error("FATAL") from the library version of xToken. Attached is a patch with a sample fix. |
@som-snytt said: |
@SethTisue said: Interested community members: if you consider this issue significant, feel free to open a new issue for it on GitHub, with links in both directions. |
@som-snytt said: |
=== What steps will reproduce the problem? ===
=== What is the expected behavior? ===
It should do something sensible.
=== What do you see instead? ===
xCharData, xComment: java.lang.OutOfMemoryError: Java heap space
xCharRef: Just loops.
=== What versions of the following are you using? ===
The text was updated successfully, but these errors were encountered: