Skip to content

Support for Scala 2.10 #3

@jestan

Description

@jestan

I am trying port autoproxy-lite plugin to Scala 2.10 (Here https://github.com/jestan/Autoproxy-Lite/tree/2.10.0) and while running test cases compiler is crashing it seems, any idea

[info] Compiling 8 Scala sources to /home/jestan/development/Autoproxy-Lite/examples/simple/target/scala-2.10/classes...
[error]
[error] while compiling: /home/jestan/development/Autoproxy-Lite/examples/simple/src/main/scala/autoproxy/test/CaseWithMixin.scala
[error] during phase: generatesynthetics
[error] library version: version 2.10.0
[error] compiler version: version 2.10.0
[error] reconstructed args: -d /home/jestan/development/Autoproxy-Lite/examples/simple/target/scala-2.10/classes -Xplugin-require:autoproxy -bootclasspath /home/jestan/programs/JDK/jdk1.7.0_09/jre/lib/resources.jar:/home/jestan/programs/JDK/jdk1.7.0_09/jre/lib/rt.jar:/home/jestan/programs/JDK/jdk1.7.0_09/jre/lib/sunrsasign.jar:/home/jestan/programs/JDK/jdk1.7.0_09/jre/lib/jsse.jar:/home/jestan/programs/JDK/jdk1.7.0_09/jre/lib/jce.jar:/home/jestan/programs/JDK/jdk1.7.0_09/jre/lib/charsets.jar:/home/jestan/programs/JDK/jdk1.7.0_09/jre/lib/jfr.jar:/home/jestan/programs/JDK/jdk1.7.0_09/jre/classes:/home/jestan/.sbt/boot/scala-2.10.0/lib/scala-library.jar -classpath /home/jestan/development/Autoproxy-Lite/examples/simple/target/scala-2.10/classes:/home/jestan/development/Autoproxy-Lite/annotation/target/scala-2.10/classes:/home/jestan/development/Autoproxy-Lite/plugin/target/scala-2.10/classes:/home/jestan/.sbt/boot/scala-2.10.0/lib/scala-compiler.jar:/home/jestan/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.0.jar:/home/jestan/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-0.9.26.jar:/home/jestan/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-0.9.26.jar:/home/jestan/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.1.jar -Xplugin:/home/jestan/development/Autoproxy-Lite/plugin/target/scala-2.10/plugin_2.10-2.10.0.jar
[error]
[error] last tree to typer: This(class CaseWithMixinProxy)
[error] symbol: class CaseWithMixinProxy in package test (flags: )
[error] symbol definition: class CaseWithMixinProxy extends CaseWithMixin
[error] tpe: CaseWithMixinProxy.this.type
[error] symbol owners: class CaseWithMixinProxy -> package test
[error] context owners: method $asInstanceOf -> class CaseWithMixinProxy -> package test
[error]
[error] == Enclosing template or block ==
[error]
[error] DefDef( // final def $asInstanceOfT0: T0 in class CaseWithMixinProxy
[error] final
[error] "$asInstanceOf"
[error] TypeDef( // T0
[error]
[error] "T0"
[error] []
[error] TypeBoundsTree( // tree.tpe=
[error] // tree.tpe=Nothing
[error] // tree.tpe=Any
[error] )
[error] )
[error] List(Nil)
[error] // tree.tpe=T0
[error] CaseWithMixinProxy.this."instance"."$asInstanceOf" // final def $asInstanceOfT0: T0 in class Object
[error] )
[error]
[error] == Expanded type of tree ==
[error]
[error] ThisType(class CaseWithMixinProxy)
[error]
[error] uncaught exception during compilation: scala.reflect.internal.Types$TypeError
Warning: class not found for plugin in plugin/src/test/stub-jar/dynamic-mixin-stub.jar (autoproxy.plugin.AutoProxyPlugin)
error: Missing required plugin: autoproxy
error: source file 'examples/simple/src/main/scala/autoproxy/test/proxyAnnotation.scala' could not be found
[info] PluginSpec
[info]
[info] The plugin should should
[info] + compile a simple class
[info]
[info]
[info] Total for specification PluginSpec
[info] Finished in 17 ms
[info] 1 example, 0 failure, 0 error
[info]
[info] Passed: : Total 1, Failed 0, Errors 0, Passed 1, Skipped 0
[trace] Stack trace suppressed: run last simpleExamples/compile:compile for the full output.
error scala.reflect.internal.Types$TypeError: polymorphic expression cannot be instantiated to expected type;
[error] found : T0(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)T0(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)
[error] required: T0(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)(in method $asInstanceOf)
[error] Total time: 19 s, completed Jun 25, 2013 2:18:34 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions