The archetype now needs Throwable.printStackTrace() thus providing some trivial implementation
1.1 --- a/ko/archetype-test/src/test/java/org/apidesign/bck2brwsr/ko/archetype/test/ArchetypeVersionTest.java Thu Aug 29 16:24:04 2013 +0000
1.2 +++ b/ko/archetype-test/src/test/java/org/apidesign/bck2brwsr/ko/archetype/test/ArchetypeVersionTest.java Thu Aug 29 16:49:00 2013 +0000
1.3 @@ -63,10 +63,8 @@
1.4 Document dom = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(r.openStream());
1.5 String arch = (String) xp2.evaluate(dom, XPathConstants.STRING);
1.6
1.7 - // temporary
1.8 int snapshot = arch.indexOf("-SNAPSHOT");
1.9 - assertTrue(snapshot > 0, "Now depends on snapshot: " + arch);
1.10 - arch = arch.substring(0, snapshot);
1.11 + assertEquals(snapshot, -1, "Don't depend on snapshots: " + arch);
1.12
1.13 assertTrue(arch.matches("[0-9\\.]+"), "net.java.html.json version seems valid: " + arch);
1.14 }
2.1 --- a/rt/emul/mini/src/main/java/java/lang/Throwable.java Thu Aug 29 16:24:04 2013 +0000
2.2 +++ b/rt/emul/mini/src/main/java/java/lang/Throwable.java Thu Aug 29 16:49:00 2013 +0000
2.3 @@ -638,10 +638,9 @@
2.4 * ... 2 more
2.5 * </pre>
2.6 */
2.7 -// public void printStackTrace() {
2.8 -// printStackTrace(System.err);
2.9 -// }
2.10 -//
2.11 + @JavaScriptBody(args = { }, body = "console.warn(this.toString());")
2.12 + public native void printStackTrace();
2.13 +
2.14 // /**
2.15 // * Prints this throwable and its backtrace to the specified print stream.
2.16 // *