This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.NoSuchMethodError: scala.collection.immutable.List.removeDuplicates()Lscala/collection/immutable/List; | |
at xsbt.API$$anonfun$annotations$1.apply(API.scala:430) | |
at xsbt.API$$anonfun$annotations$1.apply(API.scala:423) | |
at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:95) | |
at xsbt.API.annotations(API.scala:423) | |
at xsbt.API.xsbt$API$$mkClassLike(API.scala:368) | |
at xsbt.API$$anonfun$xsbt$API$$classLike$1.apply(API.scala:354) | |
at xsbt.API$$anonfun$xsbt$API$$classLike$1.apply(API.scala:354) | |
at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:181) | |
at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:37) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grek-imac:scala-jsuereth grek$ ./xsbt | |
Creating .boot directory for xsbt | |
~/scala/scala-jsuereth ~/scala/scala-jsuereth | |
~/scala/scala-jsuereth | |
Creating .gitignore | |
Adding .boot to ./.gitignore. | |
Downloading sbt version 0.11.0-20110823-052112 to ./.boot/sbt-launch.jar ... | |
Getting Scala 2.9.1.RC3 (for sbt)... | |
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.9.1.RC3/scala-compiler-2.9.1.RC3.jar ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/user/super/com/google/gwt/emul/java/lang/Boolean.java b/user/super/com/google/gwt/emul/java/lang/Boolean.java | |
index 6273bd2..b114b8c 100644 | |
--- a/user/super/com/google/gwt/emul/java/lang/Boolean.java | |
+++ b/user/super/com/google/gwt/emul/java/lang/Boolean.java | |
@@ -30,6 +30,8 @@ public final class Boolean implements Comparable<Boolean>, Serializable { | |
public static Boolean TRUE = new Boolean(true); | |
// CHECKSTYLE_ON | |
+ | |
+ public static final Class<Boolean> TYPE = boolean.class; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.google.gwt.sample.jribble.client; | |
import com.google.gwt.core.client.EntryPoint; | |
import com.google.gwt.event.dom.client.ClickEvent; | |
import com.google.gwt.event.dom.client.ClickHandler; | |
import com.google.gwt.user.client.ui.Button; | |
import com.google.gwt.user.client.Window; | |
import com.google.gwt.user.client.ui.RootPanel; | |
class Hello extends EntryPoint { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<project name="Hello" default="build" basedir="."> | |
<!-- Arguments -style PRETTY or -logLevel DEBUG to gwtc and devmode targets --> | |
<property name="gwt.args" value="-draftCompile -ea -style pretty -logLevel DEBUG" /> | |
<property name="scala.args" value="-g:notailcalls -Xplugin:${basedir}/lib/scala/factorymanifests.jar"/> | |
<path id="scala.class.path"> | |
<fileset dir="lib/scala"> | |
<include name="scala-compiler.jar"/> | |
<include name="scala-library.jar"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> def zrobConfig(o1: Option[String], o2: Option[String], o3: Option[Int]): String = { | |
val optResult: Option[String] = for { x1 <- o1; x2 <- o2; x3 <- o3} yield x1 + x2 + x3 | |
optResult getOrElse "default config" | |
} | |
zrobConfig: (o1: Option[String], o2: Option[String], o3: Option[Int])String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Test extends EmbeddedControls { | |
case class MyRow(args: List[(String, Any)]) extends Row[Rep] | |
override def __new[T](args: (String, Any)*): T = MyRow(args.toList).asInstanceOf[T] | |
trait Rep[x] | |
val foo: Rep[Row[Rep] { val xx: Int; val yy: String }] = (new Row[Rep] { val xx = 23; val yy = "y" }).asInstanceOf[Rep[Row[Rep] { val xx: Int; val yy: String }]] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Test extends EmbeddedControls { | |
trait Row[+Rep[x]] | |
// case class MyRow(args: List[(String, Any)]) extends Row[Rep] { | |
// | |
// } | |
// class ApplyDynamicOps { | |
// def applyDynamic[T](n: String)(as: AnyRef*): Rep[T] = error(n + as.mkString("(", ",", ")")) | |
// } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build.xml b/build.xml | |
index 2c0ba53..b9617f2 100644 | |
--- a/build.xml | |
+++ b/build.xml | |
@@ -1406,7 +1406,7 @@ DOCUMENTATION | |
</target> | |
<target name="docs.lib" depends="docs.pre-lib" unless="docs.lib.available"> | |
- <stopwatch name="docs.lib.timer"/> | |
+ <!-- <stopwatch name="docs.lib.timer"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import java.lang.{reflect => jreflect} | |
import scala.reflect.mirror._ | |
/** | |
* Scala counterpart of java.lang.reflect.InvocationHandler | |
*/ | |
trait InvocationHandler { | |
def invoke(proxy: AnyRef, method: Symbol, args: Array[AnyRef]): AnyRef |