This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: [scala-bts] #1674: NewScanners assertion failure on wonky XML

1 reply
Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.

-----------------------------+----------------------------------------------
Reporter: extempore | Owner: scala-xml_team
Type: defect | Status: closed
Priority: normal | Component: XML support
Version: Unreleased-2.8.x | Resolution: fixed
Keywords: |
-----------------------------+----------------------------------------------
Changes (by extempore):

* status: new => closed
* version: => Unreleased-2.8.x
* resolution: => fixed

Comment:

I fixed the crasher in r17241 and opened ticket #1767 about the error
cascading.

Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.
Re: [scala-bts] #1674: NewScanners assertion failure on wonky XM

-----------------------------+----------------------------------------------
Reporter: extempore | Owner: scala-xml_team
Type: defect | Status: reopened
Priority: normal | Component: XML support
Version: Unreleased-2.8.x | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Changes (by extempore):

* status: closed => reopened
* resolution: fixed =>

Comment:

The example in this ticket again crashes the compiler, but now over
positions. I don't know if it's the long term plan to intentionally crash
over parser position confusion, but I would vote against.
{{{
Exception in thread "main" java.lang.UnsupportedOperationException:
Position.point
at scala.tools.nsc.util.Position$class.point(Position.scala:89)
at scala.tools.nsc.util.NoPosition$.point(Position.scala:191)
at
scala.tools.nsc.util.Position$class.startOrPoint(Position.scala:86)
at
scala.tools.nsc.util.NoPosition$.startOrPoint(Position.scala:191)
at
scala.tools.nsc.ast.parser.Parsers$Parser.reduceStack(Parsers.scala:552)
}}}

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland