This file contains 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
interesting compilation errors for gwtmauve tests of java.lang classes: | |
BOOLEAN | |
The method getBoolean(String) is undefined for the type Boolean | |
This file contains 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
int result = "abc\tABC 123".compareTo(new String()); | |
/* notice: "abc\tABC 123".compareTo("") will work ! */ | |
if (result != 11) | |
Window.alert("error, result : " + result); | |
else | |
Window.alert("OK, result: " + result); |
This file contains 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
List<String> l1 = new LinkedList<String>(); | |
List<String> l2 = new LinkedList<String>(); | |
// List<String> l1 = new ArrayList<String>(); | |
// List<String> l2 = new ArrayList<String>(); | |
// copy empty list | |
Collections.copy(l2, l1); | |
l1.add("A"); | |
l2.add("B"); | |
Collections.copy(l2, l1); |
This file contains 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
boolean[] b3 = new boolean[2]; | |
try { | |
Arrays.fill(b3, 2, 1, false); | |
Window.alert("error 1 - IllegalArgumentException expected"); | |
} catch (IllegalArgumentException e) { | |
} | |
try { | |
Arrays.fill(b3, -1, 1, false); | |
Window.alert("error 1 - ArrayIndexOutOfBoundsException expected"); | |
} catch (ArrayIndexOutOfBoundsException e) { |
This file contains 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
AbtractMapImpl1 ehm = buildAM(); | |
Set s = ehm.keySet(); | |
ehm.put(null,"test"); | |
th.check( s == ehm.keySet() , "same Set is returned"); //I think this fails because of javadoc keySet() sentence : The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. | |
This file contains 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
/** | |
* <p>This is a severe GWT bug. System: Gwt 2.5 rc1 - linux - firefox</p> | |
* | |
* <p>The following entry point, executed in devel mode will give a | |
* Java StackOverflow exception:</p> | |
* | |
* <pre> | |
[ERROR] [gwttest3] - Stack overflow; to increase the stack | |
size, use the -Xss flag at startup (java -Xss1M ...)</pre> | |
* |
This file contains 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 org.sgx.raphael4gwt.raphael.widget; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.uibinder.client.UiBinder; | |
import com.google.gwt.user.client.ui.Composite; | |
import com.google.gwt.user.client.ui.Widget; | |
public class MyPaper extends Composite { | |
private static MyPaperUiBinder uiBinder = GWT.create(MyPaperUiBinder.class); |
This file contains 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 org.sgx.raphael4gwt.raphy.test.app; | |
public class MainPanel extends Composite { | |
private static MainPanelUiBinder uiBinder = GWT.create(MainPanelUiBinder.class); | |
interface MainPanelUiBinder extends UiBinder<Widget, MainPanel> { | |
} | |
public MainPanel() { |
This file contains 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
// In this example we are instrumenting JavaScript code string, executing it, and then generating a coverage report. | |
// instrument the code | |
var instrumenter = require('istanbul-lib-instrument').createInstrumenter({}) | |
var instrumentedCode = instrumenter.instrumentSync('var a = 1; function f(){return 1}; f(); ', 'file1.js') | |
This file contains 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
# The following shell script demonstrate how to build apache lucy https://lucy.apache.org/ | |
# compile one of its sample and run it in a linux system. | |
# IMPORTANT: change variables FOLDER and PREFIX according to your system | |
FOLDER=/home/sg/test | |
PREFIX=/usr # where includes and libs will be installed in your system | |
mkdir -p $FOLDER |
OlderNewer