You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<trunk>
$ ../build/quick/bin/scala -cp ../lib/fjbg.jar
Welcome to Scala version 2.10.0-20120618-131942-6167ec678e (JavaHotSpot(TM) 64-BitServerVM, Java1.6.0_32).
Type in expressions to have them evaluated.
Type:help for more information.
scala>:power
**PowerUser mode enabled -BEEPWHIRGYVE****:phase has been set to 'typer'. **** scala.tools.nsc._ has been imported **** global._, definitions._ also imported ****Try:help, :vals, power.<tab> **
scala> rootMirror.RootClass.info.member(newTermName("ch")).info.member(newTermName("epfl")).info.member(newTermName("lamp")).info.member(newTermName("fjbg")).info.member(newTypeName("JConstantPool$NameAndTypeEntryIndex")).info
java.lang.AssertionError: assertion failed:
whilecompiling: <console>
during phase: global=terminal, atPhase=parser
library version: version 2.10.0-20120618-131942-6167ec678e
compiler version: version 2.10.0-20120618-131942-6167ec678e
reconstructed args: -classpath ../lib/fjbg.jar
last tree to typer: Apply(method $asInstanceOf)
symbol: method $asInstanceOf in classObject (flags: final <method> <synthetic> <triedcooking>)
symbol definition: finaldef$asInstanceOf[T0]():T0tpe: String
symbol owners: method $asInstanceOf->classObject->packagelang
context owners: anonymous class$anonfun$1->object$eval->package$line10==Enclosing template or block ==Template( // val <local $anonfun>: <notype>, tree.tpe=scala.runtime.AbstractFunction0[String] with Serializable"scala.runtime.AbstractFunction0", "scala.Serializable"// parentsValDef(
private"_"
<tpt>
<empty>
)
// 3 statementsDefDef( // final def apply(): Stringfinal <method> <triedcooking>
"apply"
[]
List(Nil)
<tpt> // tree.tpe=StringBlock( // tree.tpe=String"$line10"."$read$$iw"// object $iw, tree.tpe=typeApply( // final def +(x$1: Any): String in class String, tree.tpe=String"res0: $r.intp.global.Type = "."$plus"// final def +(x$1: Any): String in class String, tree.tpe=(x$1: Object)StringApply( // def replStringOf(arg: Any,maxElements: Int): String in object ScalaRunTime, tree.tpe=String"scala"."runtime"."ScalaRunTime"."replStringOf"// def replStringOf(arg: Any,maxElements: Int): String in object ScalaRunTime, tree.tpe=(arg: Object, maxElements: Int)String// 2 argumentsApply( // val res0: $r.intp.global.Type, tree.tpe=scala.reflect.internal.Type"$line10"."$read$$iw"."res0"// val res0: $r.intp.global.Type, tree.tpe=()scala.reflect.internal.TypeNil
)
1000
)
)
)
)
DefDef( // final def apply(): Objectfinal <method> <bridge>
"apply"
[]
List(Nil)
<tpt> // tree.tpe=ObjectApply( // final def apply(): String, tree.tpe=String
$anonfun$1.this."apply"// final def apply(): String, tree.tpe=()StringNil
)
)
DefDef( // def <init>(): scala.runtime.AbstractFunction0[String] with Serializable
<method> <triedcooking>
"<init>"
[]
List(Nil)
<tpt> // tree.tpe=scala.runtime.AbstractFunction0[String] with SerializableBlock( // tree.tpe=UnitApply( // def <init>(): scala.runtime.AbstractFunction0[R] in class AbstractFunction0, tree.tpe=scala.runtime.AbstractFunction0
$anonfun$1.super."<init>"// def <init>(): scala.runtime.AbstractFunction0[R] in class AbstractFunction0, tree.tpe=()scala.runtime.AbstractFunction0Nil
)
()
)
)
)
==Expandedtypeof tree ==TypeRef(
TypeSymbol(
finalclassStringextendsSerializablewithComparable[String] withCharSequence
)
)
classJConstantPool:packagefjbg
at scala.Predef$.assert(Predef.scala:162)
at scala.tools.nsc.Global.assert(Global.scala:235)
at scala.tools.nsc.symtab.classfile.ClassfileParser.parseMethod(ClassfileParser.scala:648)
at scala.tools.nsc.symtab.classfile.ClassfileParser$$anonfun$scala$tools$nsc$symtab$classfile$ClassfileParser$$queueLoad$1$2.apply$mcVI$sp(ClassfileParser.scala:562)
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:142)
at scala.tools.nsc.symtab.classfile.ClassfileParser.scala$tools$nsc$symtab$classfile$ClassfileParser$$queueLoad$1(ClassfileParser.scala:562)
at scala.tools.nsc.symtab.classfile.ClassfileParser$$anonfun$parseClass$1.apply$mcV$sp(ClassfileParser.scala:572)
at scala.tools.nsc.symtab.classfile.ClassfileParser.parseClass(ClassfileParser.scala:577)
at scala.tools.nsc.symtab.classfile.ClassfileParser$$anonfun$parse$1.apply$mcV$sp(ClassfileParser.scala:102)
at scala.tools.nsc.symtab.classfile.ClassfileParser$$anonfun$parse$1.apply(ClassfileParser.scala:94)
at scala.tools.nsc.symtab.classfile.ClassfileParser$$anonfun$parse$1.apply(ClassfileParser.scala:94)
at scala.tools.nsc.symtab.classfile.ClassfileParser.pushBusy(ClassfileParser.scala:81)
at scala.tools.nsc.symtab.classfile.ClassfileParser.parse(ClassfileParser.scala:94)
at scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader.doComplete(SymbolLoaders.scala:240)
at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:176)
at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1209)
at .<init>(<console>:35)
at .<clinit>(<console>)
at $anonfun$1.apply(<console>:7)
at $anonfun$1.apply(<console>:6)
at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:191)
at scala.tools.nsc.interpreter.Phased$class.atCurrent(Phased.scala:71)
at scala.tools.nsc.interpreter.Power$$anon$3.atCurrent(Power.scala:412)
at .<init>(<console>:6)
at .<clinit>(<console>)
at $print(<console>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:736)
at scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:991)
at scala.tools.nsc.interpreter.IMain.loadAndRunReq$1(IMain.scala:579)
at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:610)
at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:574)
at scala.tools.nsc.interpreter.ILoop.reallyInterpret$1(ILoop.scala:742)
at scala.tools.nsc.interpreter.ILoop.interpretStartingWith(ILoop.scala:787)
at scala.tools.nsc.interpreter.ILoop.command(ILoop.scala:699)
at scala.tools.nsc.interpreter.ILoop.processLine$1(ILoop.scala:563)
at scala.tools.nsc.interpreter.ILoop.innerLoop$1(ILoop.scala:570)
at scala.tools.nsc.interpreter.ILoop.loop(ILoop.scala:573)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:864)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:819)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:819)
at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135)
at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:819)
at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:79)
at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:92)
at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:101)
at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: