Skip to content

Instantly share code, notes, and snippets.

[stephen@sh7 bindgen]$ ant jar compile-example
Buildfile: build.xml
compile:
jar:
[jar] Building jar: c:\svn\exigence\bindgen\bin\bindgen.jar
[copy] Copying 1 file to C:\Users\stephen\.bd
compile-example:
import java.util.ArrayList;
import java.util.List;
import junit.framework.Assert;
import junit.framework.TestCase;
public class MapTest2 extends TestCase {
private static final FilterImpl staticFilter = new FilterImpl();
import scala.collection.mutable.ListBuffer
object PropertyObjectsTest {
def main(args: Array[String]): Unit = {
// First using explicit get/set methods
val p1 = new Parent
p1.name.set("Bob")
println(p1.name.get)
val c1 = new Child
<html>
<body>
Tables (desired):
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<div>AAA</div>
@stephenh
stephenh / Foo.scala
Created July 23, 2011 18:19
handlers eagerly invoked
package foo
trait SAM {
def onSam(): Unit
}
object Foo {
def main(args: Array[String]): Unit = {
doFunction { println("1"); println("2") }
// got <function0>
@stephenh
stephenh / sp1
Created July 31, 2011 18:43
DefaultKeySet bug
// Debug output from inside of visit(JClassType type, Context cxt) in ControlFlowAnalyzer.java
On split point 20
Visiting final class LinkedHashMap$$anon$1 extends Object implements Iterator
com.google.gwt.sample.showcase.client.content.panels.CwAbsolutePanel$$anon$4::onSuccess
com.google.gwt.sample.showcase.client.content.panels.CwAbsolutePanel::$onInitialize
scala.collection.mutable.LinkedHashMap::addString
scala.collection.MapLike$class::addString
scala.collection.mutable.LinkedHashMap::iterator
Visiting class MapLike$DefaultKeySet extends Object implements Set, ScalaObject
@stephenh
stephenh / gist:1128407
Created August 5, 2011 20:16
error using String.format
Public resources found in...
Translatable source found in...
Persistent unit cache dir set to: /home/stephen/exigence/scala-test/war/../gwt-unitCache
Looking for previously cached Compilation Units in /home/stephen/exigence/scala-test/war/../gwt-unitCache
Compiling module scalatest.ScalaTest
Starting UnitWriteThread.
gwt-unitCache-000001319884917E: Load complete
gwt-unitCache-000001319B427745: Load complete
gwt-unitCache-000001319B496049: Load complete
gwt-unitCache-000001319B8E9D37: Load complete
@stephenh
stephenh / gist:1128652
Created August 5, 2011 22:13
ylog-classpath for embedding
Public resources found in...
Translatable source found in...
Persistent unit cache dir set to: /home/stephen/exigence/scala-test/war/../gwt-unitCache
Looking for previously cached Compilation Units in /home/stephen/exigence/scala-test/war/../gwt-unitCache
Compiling module scalatest.ScalaTest
Starting UnitWriteThread.
gwt-unitCache-000001319BD927F8: Load complete
gwt-unitCache-000001319BDC2513: Load complete
gwt-unitCache-000001319BF6FDBA: Load complete
gwt-unitCache-000001319BFCEA3F: Load complete
@stephenh
stephenh / gist:1128985
Created August 6, 2011 03:36
GenTransversableViewLike cannot be instantiated
Public resources found in...
Translatable source found in...
Persistent unit cache dir set to: /home/stephen/exigence/scala-test/war/../gwt-unitCache
Looking for previously cached Compilation Units in /home/stephen/exigence/scala-test/war/../gwt-unitCache
Compiling module scalatest.ScalaTest
gwt-unitCache-000001319BD927F8: Load complete
gwt-unitCache-000001319BDC2513: Load complete
gwt-unitCache-000001319BF6FDBA: Load complete
gwt-unitCache-000001319BFCEA3F: Load complete
Starting UnitWriteThread.
@stephenh
stephenh / debug.out
Created September 23, 2011 15:43
name mangling output
JProgram: com.google.gwt.core.client.GWT$UncaughtExceptionHandler
JProgram: com.google.gwt.core.client.impl.AsyncFragmentLoader$HttpDownloadFailure
JProgram: com.google.gwt.core.client.impl.AsyncFragmentLoader$HttpInstallFailure
JProgram: com.google.gwt.core.client.impl.AsyncFragmentLoader$LoadingStrategy
JProgram: com.google.gwt.core.client.impl.AsyncFragmentLoader$LoadTerminatedHandler
JProgram: com.google.gwt.core.client.impl.LoadingStrategyBase$DownloadStrategy
JProgram: com.google.gwt.core.client.impl.LoadingStrategyBase$RequestData
JProgram: com.google.gwt.core.client.Scheduler$RepeatingCommand
JProgram: com.google.gwt.core.client.Scheduler$ScheduledCommand
JProgram: com.google.gwt.event.dom.client.DomEvent$Type