- changed status to resolved
getting compilation error from current master
Issue #22
resolved
looking at commit 732e6e7745d838d83cfe439bd955247a4951700c without doing any changes, when I run sbt assembly I get
# Executing command line:
java
-Xms1024m
-Xmx1024m
-XX:ReservedCodeCacheSize=128m
-XX:MaxMetaspaceSize=256m
-jar
"/c/Program Files (x86)/sbt/bin/sbt-launch.jar"
assembly
[info] Loading project definition from C:\Users\dt\zfj-importer\project
[warn] Multiple resolvers having different access mechanism configured with same name 'sbt-plugin-releases'. To avoid conflict, Remove duplicate project resolvers (`res
[info] Set current project to zfj-importer (in build file:/C:/Users/dt/zfj-importer/)
[info] Compiling 5 Scala sources and 25 Java sources to C:\Users\dt\zfj-importer\target\scala-2.10\classes...
[error]
[error] while compiling: C:\Users\dt\zfj-importer\src\main\scala\com\thed\zfj\ui\ImportSwingApp.scala
[error] during phase: typer
[error] library version: version 2.10.4
[error] compiler version: version 2.10.4
[error] reconstructed args: -classpath C:\Users\dt\zfj-importer\target\scala-2.10\classes;C:\Users\dt\.ivy2\cache\net.databinder\dispatch-
[error]
[error] last tree to typer: Ident(cbProjects)
[error] symbol: <none> (flags: )
[error] symbol definition: <none>
[error] symbol owners:
[error] context owners: method applyOrElse -> anonymous class $anonfun -> value <local $anon> -> anonymous class $anon -> value <local $anon> -> anonymous class $
[error]
[error] == Enclosing template or block ==
[error]
[error] Apply(^M
[error] "cbProjects"."peer"."setModel"^M
[error] Apply(^M
[error] "ComboBox"."newConstantModel"^M
[error] "res"^M
[error] )^M
[error] )
[error]
[error] uncaught exception during compilation: java.lang.Error
java.lang.Error: something is wrong (wrong class file?): class JComboBox with type parameters [E] gets applied to arguments [], phase = namer
Comments (1)
-
- Log in to comment
This is a known limitation of Scala Swing. It only works with Java 1.6. Please compile with Java 1.6