1.1 --- a/boot/src/main/java/net/java/html/boot/BrowserBuilder.java Thu Nov 20 14:07:35 2014 +0100
1.2 +++ b/boot/src/main/java/net/java/html/boot/BrowserBuilder.java Sat Nov 29 22:25:40 2014 +0100
1.3 @@ -273,13 +273,16 @@
1.4
1.5 final ClassLoader activeLoader;
1.6 if (loader != null) {
1.7 - if (!FnUtils.isJavaScriptCapable(loader)) {
1.8 + if (!FnContext.isJavaScriptCapable(loader)) {
1.9 throw new IllegalStateException("Loader cannot resolve @JavaScriptBody: " + loader);
1.10 }
1.11 activeLoader = loader;
1.12 - } else if (FnUtils.isJavaScriptCapable(myCls.getClassLoader())) {
1.13 + } else if (FnContext.isJavaScriptCapable(myCls.getClassLoader())) {
1.14 activeLoader = myCls.getClassLoader();
1.15 } else {
1.16 + if (!FnContext.isAsmPresent()) {
1.17 + throw new IllegalStateException("Cannot find asm-5.0.jar classes!");
1.18 + }
1.19 FImpl impl = new FImpl(myCls.getClassLoader());
1.20 activeLoader = FnUtils.newLoader(impl, dfnr, myCls.getClassLoader().getParent());
1.21 }