Update JDK 1.6.0_14 (6u14)
3 Kommentar(e). Veröffentlicht von Christian Ullenboom am Freitag, Mai 29, 2009.Änderungen listet http://java.sun.com/javase/6/webnotes/6u14.html auf. Interessant sind meines Erachtens: Compressed Object Pointers und Garbage First (G1) Garbage Collector, weil diese Dinge sind, die für Java 7 vorgesehen waren. Aber nun kann man die schon mal “in the wild” testen, was eine gute Sache ist. Dann noch JAX WS 2.1.6 and JAXB 2.1.10 und ein Update von JavaDB (wobei Derby schon deutlich weiter ist, komisch).
Labels: Java SE

Das folgende Programm liefert unter meinem Win XP unterschiedliche Outputs je nachdem ob es mit "-server" oder "-client" gestartet wird. Sieht nach einem Bug Server HotSpot Compiler aus ...
public class TestCase {
public static void main(String[] args) {
test();
}
private static void test() {
for (int j = 0; j < 10; ++j) {
long x = 0;
for (int i = Integer.MIN_VALUE; i < Integer.MAX_VALUE; ++i) {
x += i;
}
System.out.println("sum: " + x);
}
}
}
Output "-client":
sum: -4294967295
sum: -4294967295
sum: -4294967295
sum: -4294967295
sum: -4294967295
sum: -4294967295
sum: -4294967295
sum: -4294967295
sum: -4294967295
sum: -4294967295
Output "-server":
sum: -32212254615
sum: -36507221880
sum: -36507221880
sum: -36507221880
sum: -36507221880
sum: -36507221880
sum: -36507221880
sum: -36507221880
sum: -36507221880
sum: -36507221880
Auf den Release notes ist zu lesen: "Although G1 is available for use in this release, note that production use of G1 is only permitted where a Java support contract has been purchased. G1 is supported thru Sun's Java Platform Standard Edition for Business program."
Ist das etwa erste Handschrift von Oracle, daß man jetzt mit Java Geld machen will?
Sind anscheinend nacheditiert worden. Ich lese jetzt: " Usage in production settings without a Java SE for Business support contract is not recommended."