[MacPorts] #15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist
MacPorts
noreply at macports.org
Tue Jun 3 09:14:22 PDT 2008
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist
---------------------------------+------------------------------------------
Reporter: paulp at improving.org | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: scala xml |
---------------------------------+------------------------------------------
See output below. I can't yet see what the difference between them is,
but here is the closed bug report from the scala database, which it says
was fixed in march. https://lampsvn.epfl.ch/trac/scala/ticket/632
jon:servlet paulp$ export SCALA_HOME=/tmp/scala-2.7.1.final[[BR]]
jon:servlet paulp$ $SCALA_HOME/bin/scala[[BR]]
Welcome to Scala version 2.7.1.final (Java HotSpot(TM) Client VM, Java
1.5.0_13).[[BR]]
Type in expressions to have them evaluated.[[BR]]
Type :help for more information.[[BR]]
scala> import scala.xml._[[BR]]
import scala.xml._[[BR]]
scala> XML.loadFile("fail.xml") [[BR]]
res1: scala.xml.Elem = [[BR]]
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html;
charset=UTF-8" http-equiv="Content-Type"></meta><meta content="HTML Tidy
for Mac OS X (vers 31 October 2006 - Apple Inc. build 13), see www.w3.org"
name="generator"></meta><title>classifieds - craigslist</title><meta
content="craigslist classifieds for" name="description"></meta><meta
co...[[BR]]
scala>
jon:servlet paulp$ port installed |grep "scala @"[[BR]]
scala @2.7.1_0 (active)[[BR]]
jon:servlet paulp$ export SCALA_HOME=/opt/local/share/scala[[BR]]
jon:servlet paulp$ $SCALA_HOME/bin/scala[[BR]]
Welcome to Scala version 2.7.1.final (Java HotSpot(TM) Client VM, Java
1.5.0_13).[[BR]]
Type in expressions to have them evaluated.[[BR]]
Type :help for more information.
scala> import scala.xml._[[BR]]
import scala.xml._
scala> XML.loadFile("fail.xml") [[BR]]
java.util.NoSuchElementException[[BR]]
at
scala.RandomAccessSeq$$anon$12.next(RandomAccessSeq.scala:144)[[BR]]
at scala.xml.Utility$.parseAttributeValue(Utility.scala:420)[[BR]]
at
scala.xml.UnprefixedAttribute.<init>(UnprefixedAttribute.scala:24)[[BR]]
at
scala.xml.parsing.FactoryAdapter$$anonfun$startElement$1.apply(FactoryAdapter.scala:155)[[BR]]
at
scala.xml.parsing.FactoryAdapter$$anonfun$startElement$1....[[BR]]
scala>
--
Ticket URL: <http://trac.macports.org/ticket/15503>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list