Aladdin - Scala Bugtracking
[#1073] project: compiler priority: high category: bug
submitter assigned to status date submitted
Stephane Burak fixed 2007-04-30 18:06:39.0
subject OutOfMemoryError in XML expressions
code
object test extends Application {
  val x = <html></p/></html>
}
what happened
scala> ./dists/latest/bin/scalac -d /tmp test1.scala
test1.scala:2: error: in XML literal: expected closing tag of html
  val x = 

^ test1.scala:2: error: in XML literal: name expected, but char '/' cannot start a name val x =

^ test1.scala:2: error: in XML literal: '=' expected instead of '>' val x =

^ test1.scala:3: error: in XML literal: ' or " delimited attribute value or '{' scala-expr '}' expected } ^ test1.scala:4: error: in XML literal: '>' expected instead of '' ^ Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
what expected 1 error messsage with no memory overflow
[back to overview]
Changes of this bug report
Stephane  edited on  2007-05-15 15:25:38.0