Don't really initialize the classes. Just pretend they will be initialized so bck2brwsr includes them in transitive closure emul
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 05 Feb 2013 13:19:06 +0100
branchemul
changeset 67199fa4fe6b980
parent 670 3026d9c844f0
child 672 add357fd6c5c
Don't really initialize the classes. Just pretend they will be initialized so bck2brwsr includes them in transitive closure
vm/src/main/java/org/apidesign/vm4brwsr/VM.java
     1.1 --- a/vm/src/main/java/org/apidesign/vm4brwsr/VM.java	Tue Feb 05 12:21:15 2013 +0100
     1.2 +++ b/vm/src/main/java/org/apidesign/vm4brwsr/VM.java	Tue Feb 05 13:19:06 2013 +0100
     1.3 @@ -31,8 +31,12 @@
     1.4      
     1.5      static {
     1.6          // uses VMLazy to load dynamic classes
     1.7 -        VMLazy.init();
     1.8 -        Zips.init();
     1.9 +        boolean assertsOn = false;
    1.10 +        assert assertsOn = true;
    1.11 +        if (assertsOn) {
    1.12 +            VMLazy.init();
    1.13 +            Zips.init();
    1.14 +        }
    1.15      }
    1.16  
    1.17      @Override