@@ -50,102 +50,102 @@ public class RT{
50
50
// Symbol.intern("IPersistentMap"), "clojure.lang.IPersistentMap",
51
51
// Symbol.intern("IPersistentList"), "clojure.lang.IPersistentList",
52
52
// Symbol.intern("IPersistentVector"), "clojure.lang.IPersistentVector",
53
- Symbol .intern ("Boolean" ), Boolean .class ,
54
- Symbol .intern ("Byte" ), Byte .class ,
55
- Symbol .intern ("Character" ), Character .class ,
56
- Symbol .intern ("Class" ), Class .class ,
57
- Symbol .intern ("ClassLoader" ), ClassLoader .class ,
58
- Symbol .intern ("Compiler" ), Compiler .class ,
59
- Symbol .intern ("Double" ), Double .class ,
60
- Symbol .intern ("Enum" ), Enum .class ,
61
- Symbol .intern ("Float" ), Float .class ,
62
- Symbol .intern ("InheritableThreadLocal" ), InheritableThreadLocal .class ,
63
- Symbol .intern ("Integer" ), Integer .class ,
64
- Symbol .intern ("Long" ), Long .class ,
65
- Symbol .intern ("Math" ), Math .class ,
66
- Symbol .intern ("Number" ), Number .class ,
67
- Symbol .intern ("Object" ), Object .class ,
68
- Symbol .intern ("Package" ), Package .class ,
69
- Symbol .intern ("Process" ), Process .class ,
70
- Symbol .intern ("ProcessBuilder" ), ProcessBuilder .class ,
71
- Symbol .intern ("Runtime" ), Runtime .class ,
72
- Symbol .intern ("RuntimePermission" ), RuntimePermission .class ,
73
- Symbol .intern ("SecurityManager" ), SecurityManager .class ,
74
- Symbol .intern ("Short" ), Short .class ,
75
- Symbol .intern ("StackTraceElement" ), StackTraceElement .class ,
76
- Symbol .intern ("StrictMath" ), StrictMath .class ,
77
- Symbol .intern ("String" ), String .class ,
78
- Symbol .intern ("StringBuffer" ), StringBuffer .class ,
79
- Symbol .intern ("StringBuilder" ), StringBuilder .class ,
80
- Symbol .intern ("System" ), System .class ,
81
- Symbol .intern ("Thread" ), Thread .class ,
82
- Symbol .intern ("ThreadGroup" ), ThreadGroup .class ,
83
- Symbol .intern ("ThreadLocal" ), ThreadLocal .class ,
84
- Symbol .intern ("Throwable" ), Throwable .class ,
85
- Symbol .intern ("Void" ), Void .class ,
86
- Symbol .intern ("Appendable" ), Appendable .class ,
87
- Symbol .intern ("CharSequence" ), CharSequence .class ,
88
- Symbol .intern ("Cloneable" ), Cloneable .class ,
89
- Symbol .intern ("Comparable" ), Comparable .class ,
90
- Symbol .intern ("Iterable" ), Iterable .class ,
91
- Symbol .intern ("Readable" ), Readable .class ,
92
- Symbol .intern ("Runnable" ), Runnable .class ,
93
- Symbol .intern ("Callable" ), Callable .class ,
94
- Symbol .intern ("BigInteger" ), BigInteger .class ,
95
- Symbol .intern ("BigDecimal" ), BigDecimal .class ,
96
- Symbol .intern ("ArithmeticException" ), ArithmeticException .class ,
97
- Symbol .intern ("ArrayIndexOutOfBoundsException" ), ArrayIndexOutOfBoundsException .class ,
98
- Symbol .intern ("ArrayStoreException" ), ArrayStoreException .class ,
99
- Symbol .intern ("ClassCastException" ), ClassCastException .class ,
100
- Symbol .intern ("ClassNotFoundException" ), ClassNotFoundException .class ,
101
- Symbol .intern ("CloneNotSupportedException" ), CloneNotSupportedException .class ,
102
- Symbol .intern ("EnumConstantNotPresentException" ), EnumConstantNotPresentException .class ,
103
- Symbol .intern ("Exception" ), Exception .class ,
104
- Symbol .intern ("IllegalAccessException" ), IllegalAccessException .class ,
105
- Symbol .intern ("IllegalArgumentException" ), IllegalArgumentException .class ,
106
- Symbol .intern ("IllegalMonitorStateException" ), IllegalMonitorStateException .class ,
107
- Symbol .intern ("IllegalStateException" ), IllegalStateException .class ,
108
- Symbol .intern ("IllegalThreadStateException" ), IllegalThreadStateException .class ,
109
- Symbol .intern ("IndexOutOfBoundsException" ), IndexOutOfBoundsException .class ,
110
- Symbol .intern ("InstantiationException" ), InstantiationException .class ,
111
- Symbol .intern ("InterruptedException" ), InterruptedException .class ,
112
- Symbol .intern ("NegativeArraySizeException" ), NegativeArraySizeException .class ,
113
- Symbol .intern ("NoSuchFieldException" ), NoSuchFieldException .class ,
114
- Symbol .intern ("NoSuchMethodException" ), NoSuchMethodException .class ,
115
- Symbol .intern ("NullPointerException" ), NullPointerException .class ,
116
- Symbol .intern ("NumberFormatException" ), NumberFormatException .class ,
117
- Symbol .intern ("RuntimeException" ), RuntimeException .class ,
118
- Symbol .intern ("SecurityException" ), SecurityException .class ,
119
- Symbol .intern ("StringIndexOutOfBoundsException" ), StringIndexOutOfBoundsException .class ,
120
- Symbol .intern ("TypeNotPresentException" ), TypeNotPresentException .class ,
121
- Symbol .intern ("UnsupportedOperationException" ), UnsupportedOperationException .class ,
122
- Symbol .intern ("AbstractMethodError" ), AbstractMethodError .class ,
123
- Symbol .intern ("AssertionError" ), AssertionError .class ,
124
- Symbol .intern ("ClassCircularityError" ), ClassCircularityError .class ,
125
- Symbol .intern ("ClassFormatError" ), ClassFormatError .class ,
126
- Symbol .intern ("Error" ), Error .class ,
127
- Symbol .intern ("ExceptionInInitializerError" ), ExceptionInInitializerError .class ,
128
- Symbol .intern ("IllegalAccessError" ), IllegalAccessError .class ,
129
- Symbol .intern ("IncompatibleClassChangeError" ), IncompatibleClassChangeError .class ,
130
- Symbol .intern ("InstantiationError" ), InstantiationError .class ,
131
- Symbol .intern ("InternalError" ), InternalError .class ,
132
- Symbol .intern ("LinkageError" ), LinkageError .class ,
133
- Symbol .intern ("NoClassDefFoundError" ), NoClassDefFoundError .class ,
134
- Symbol .intern ("NoSuchFieldError" ), NoSuchFieldError .class ,
135
- Symbol .intern ("NoSuchMethodError" ), NoSuchMethodError .class ,
136
- Symbol .intern ("OutOfMemoryError" ), OutOfMemoryError .class ,
137
- Symbol .intern ("StackOverflowError" ), StackOverflowError .class ,
138
- Symbol .intern ("ThreadDeath" ), ThreadDeath .class ,
139
- Symbol .intern ("UnknownError" ), UnknownError .class ,
140
- Symbol .intern ("UnsatisfiedLinkError" ), UnsatisfiedLinkError .class ,
141
- Symbol .intern ("UnsupportedClassVersionError" ), UnsupportedClassVersionError .class ,
142
- Symbol .intern ("VerifyError" ), VerifyError .class ,
143
- Symbol .intern ("VirtualMachineError" ), VirtualMachineError .class ,
144
- Symbol .intern ("Thread$UncaughtExceptionHandler" ), Thread .UncaughtExceptionHandler .class ,
145
- Symbol .intern ("Thread$State" ), Thread .State .class ,
146
- Symbol .intern ("Deprecated" ), Deprecated .class ,
147
- Symbol .intern ("Override" ), Override .class ,
148
- Symbol .intern ("SuppressWarnings" ), SuppressWarnings .class
53
+ Symbol .intern ("Boolean" ), Boolean .class ,
54
+ Symbol .intern ("Byte" ), Byte .class ,
55
+ Symbol .intern ("Character" ), Character .class ,
56
+ Symbol .intern ("Class" ), Class .class ,
57
+ Symbol .intern ("ClassLoader" ), ClassLoader .class ,
58
+ Symbol .intern ("Compiler" ), Compiler .class ,
59
+ Symbol .intern ("Double" ), Double .class ,
60
+ Symbol .intern ("Enum" ), Enum .class ,
61
+ Symbol .intern ("Float" ), Float .class ,
62
+ Symbol .intern ("InheritableThreadLocal" ), InheritableThreadLocal .class ,
63
+ Symbol .intern ("Integer" ), Integer .class ,
64
+ Symbol .intern ("Long" ), Long .class ,
65
+ Symbol .intern ("Math" ), Math .class ,
66
+ Symbol .intern ("Number" ), Number .class ,
67
+ Symbol .intern ("Object" ), Object .class ,
68
+ Symbol .intern ("Package" ), Package .class ,
69
+ Symbol .intern ("Process" ), Process .class ,
70
+ Symbol .intern ("ProcessBuilder" ), ProcessBuilder .class ,
71
+ Symbol .intern ("Runtime" ), Runtime .class ,
72
+ Symbol .intern ("RuntimePermission" ), RuntimePermission .class ,
73
+ Symbol .intern ("SecurityManager" ), SecurityManager .class ,
74
+ Symbol .intern ("Short" ), Short .class ,
75
+ Symbol .intern ("StackTraceElement" ), StackTraceElement .class ,
76
+ Symbol .intern ("StrictMath" ), StrictMath .class ,
77
+ Symbol .intern ("String" ), String .class ,
78
+ Symbol .intern ("StringBuffer" ), StringBuffer .class ,
79
+ Symbol .intern ("StringBuilder" ), StringBuilder .class ,
80
+ Symbol .intern ("System" ), System .class ,
81
+ Symbol .intern ("Thread" ), Thread .class ,
82
+ Symbol .intern ("ThreadGroup" ), ThreadGroup .class ,
83
+ Symbol .intern ("ThreadLocal" ), ThreadLocal .class ,
84
+ Symbol .intern ("Throwable" ), Throwable .class ,
85
+ Symbol .intern ("Void" ), Void .class ,
86
+ Symbol .intern ("Appendable" ), Appendable .class ,
87
+ Symbol .intern ("CharSequence" ), CharSequence .class ,
88
+ Symbol .intern ("Cloneable" ), Cloneable .class ,
89
+ Symbol .intern ("Comparable" ), Comparable .class ,
90
+ Symbol .intern ("Iterable" ), Iterable .class ,
91
+ Symbol .intern ("Readable" ), Readable .class ,
92
+ Symbol .intern ("Runnable" ), Runnable .class ,
93
+ Symbol .intern ("Callable" ), Callable .class ,
94
+ Symbol .intern ("BigInteger" ), BigInteger .class ,
95
+ Symbol .intern ("BigDecimal" ), BigDecimal .class ,
96
+ Symbol .intern ("ArithmeticException" ), ArithmeticException .class ,
97
+ Symbol .intern ("ArrayIndexOutOfBoundsException" ), ArrayIndexOutOfBoundsException .class ,
98
+ Symbol .intern ("ArrayStoreException" ), ArrayStoreException .class ,
99
+ Symbol .intern ("ClassCastException" ), ClassCastException .class ,
100
+ Symbol .intern ("ClassNotFoundException" ), ClassNotFoundException .class ,
101
+ Symbol .intern ("CloneNotSupportedException" ), CloneNotSupportedException .class ,
102
+ Symbol .intern ("EnumConstantNotPresentException" ), EnumConstantNotPresentException .class ,
103
+ Symbol .intern ("Exception" ), Exception .class ,
104
+ Symbol .intern ("IllegalAccessException" ), IllegalAccessException .class ,
105
+ Symbol .intern ("IllegalArgumentException" ), IllegalArgumentException .class ,
106
+ Symbol .intern ("IllegalMonitorStateException" ), IllegalMonitorStateException .class ,
107
+ Symbol .intern ("IllegalStateException" ), IllegalStateException .class ,
108
+ Symbol .intern ("IllegalThreadStateException" ), IllegalThreadStateException .class ,
109
+ Symbol .intern ("IndexOutOfBoundsException" ), IndexOutOfBoundsException .class ,
110
+ Symbol .intern ("InstantiationException" ), InstantiationException .class ,
111
+ Symbol .intern ("InterruptedException" ), InterruptedException .class ,
112
+ Symbol .intern ("NegativeArraySizeException" ), NegativeArraySizeException .class ,
113
+ Symbol .intern ("NoSuchFieldException" ), NoSuchFieldException .class ,
114
+ Symbol .intern ("NoSuchMethodException" ), NoSuchMethodException .class ,
115
+ Symbol .intern ("NullPointerException" ), NullPointerException .class ,
116
+ Symbol .intern ("NumberFormatException" ), NumberFormatException .class ,
117
+ Symbol .intern ("RuntimeException" ), RuntimeException .class ,
118
+ Symbol .intern ("SecurityException" ), SecurityException .class ,
119
+ Symbol .intern ("StringIndexOutOfBoundsException" ), StringIndexOutOfBoundsException .class ,
120
+ Symbol .intern ("TypeNotPresentException" ), TypeNotPresentException .class ,
121
+ Symbol .intern ("UnsupportedOperationException" ), UnsupportedOperationException .class ,
122
+ Symbol .intern ("AbstractMethodError" ), AbstractMethodError .class ,
123
+ Symbol .intern ("AssertionError" ), AssertionError .class ,
124
+ Symbol .intern ("ClassCircularityError" ), ClassCircularityError .class ,
125
+ Symbol .intern ("ClassFormatError" ), ClassFormatError .class ,
126
+ Symbol .intern ("Error" ), Error .class ,
127
+ Symbol .intern ("ExceptionInInitializerError" ), ExceptionInInitializerError .class ,
128
+ Symbol .intern ("IllegalAccessError" ), IllegalAccessError .class ,
129
+ Symbol .intern ("IncompatibleClassChangeError" ), IncompatibleClassChangeError .class ,
130
+ Symbol .intern ("InstantiationError" ), InstantiationError .class ,
131
+ Symbol .intern ("InternalError" ), InternalError .class ,
132
+ Symbol .intern ("LinkageError" ), LinkageError .class ,
133
+ Symbol .intern ("NoClassDefFoundError" ), NoClassDefFoundError .class ,
134
+ Symbol .intern ("NoSuchFieldError" ), NoSuchFieldError .class ,
135
+ Symbol .intern ("NoSuchMethodError" ), NoSuchMethodError .class ,
136
+ Symbol .intern ("OutOfMemoryError" ), OutOfMemoryError .class ,
137
+ Symbol .intern ("StackOverflowError" ), StackOverflowError .class ,
138
+ Symbol .intern ("ThreadDeath" ), ThreadDeath .class ,
139
+ Symbol .intern ("UnknownError" ), UnknownError .class ,
140
+ Symbol .intern ("UnsatisfiedLinkError" ), UnsatisfiedLinkError .class ,
141
+ Symbol .intern ("UnsupportedClassVersionError" ), UnsupportedClassVersionError .class ,
142
+ Symbol .intern ("VerifyError" ), VerifyError .class ,
143
+ Symbol .intern ("VirtualMachineError" ), VirtualMachineError .class ,
144
+ Symbol .intern ("Thread$UncaughtExceptionHandler" ), Thread .UncaughtExceptionHandler .class ,
145
+ Symbol .intern ("Thread$State" ), Thread .State .class ,
146
+ Symbol .intern ("Deprecated" ), Deprecated .class ,
147
+ Symbol .intern ("Override" ), Override .class ,
148
+ Symbol .intern ("SuppressWarnings" ), SuppressWarnings .class
149
149
150
150
// Symbol.intern("Collection"), "java.util.Collection",
151
151
// Symbol.intern("Comparator"), "java.util.Comparator",
@@ -431,16 +431,24 @@ static public void load(String scriptbase, boolean failIfNotFound) throws IOExce
431
431
WARN_ON_REFLECTION , WARN_ON_REFLECTION .deref ()
432
432
,RT .UNCHECKED_MATH , RT .UNCHECKED_MATH .deref ()));
433
433
loaded = (loadClassForName (scriptbase .replace ('/' , '.' ) + LOADER_SUFFIX ) != null );
434
+ // if(loaded)
435
+ // System.out.println("Loaded CLASS:" + scriptbase);
434
436
}
435
437
finally {
436
438
Var .popThreadBindings ();
437
439
}
438
440
}
439
441
if (!loaded && cljURL != null ) {
440
442
if (booleanCast (Compiler .COMPILE_FILES .deref ()))
443
+ {
444
+ // System.out.println("COMPILING:" + cljfile);
441
445
compile (cljfile );
446
+ }
442
447
else
448
+ {
449
+ // System.out.println("LOADING:" + cljfile);
443
450
loadResourceScript (RT .class , cljfile );
451
+ }
444
452
}
445
453
else if (!loaded && failIfNotFound )
446
454
throw new FileNotFoundException (String .format ("Could not locate %s or %s on classpath: " , classfile , cljfile ));
0 commit comments