author | cg |
Mon, 12 Jan 1998 14:24:47 +0000 | |
changeset 255 | 2d8b3948a08a |
parent 252 | 04b330744577 |
child 264 | 44aedfcd08d1 |
permissions | -rw-r--r-- |
255 | 1 |
'From Smalltalk/X, Version:3.3.1 on 7-jan-1998 at 4:02:58 pm' ! |
252 | 2 |
|
1 | 3 |
Object subclass:#JavaClassReader |
91 | 4 |
instanceVariableNames:'inStream msb constants majorVsn minorVsn constNeeds2Slots |
38 | 5 |
constSlot' |
198 | 6 |
classVariableNames:'Verbose Silent AbsolutelySilent LazyClassLoading |
223 | 7 |
InvalidClassFormatSignal ClassLoaderQuerySignal' |
1 | 8 |
poolDictionaries:'' |
9 |
category:'Java-Support' |
|
10 |
! |
|
11 |
||
12 |
||
135 | 13 |
!JavaClassReader class methodsFor:'initialization'! |
1 | 14 |
|
15 |
initialize |
|
198 | 16 |
InvalidClassFormatSignal := Signal new mayProceed:true. |
17 |
InvalidClassFormatSignal notifierString:'class load failure'. |
|
18 |
InvalidClassFormatSignal nameClass:self message:#invalidClassFormatSignal. |
|
19 |
||
91 | 20 |
Verbose := false. |
21 |
Silent := true. |
|
22 |
AbsolutelySilent := false. |
|
23 |
||
24 |
LazyClassLoading := false. "/ true. |
|
223 | 25 |
ClassLoaderQuerySignal := QuerySignal new |
29 | 26 |
|
27 |
" |
|
28 |
JavaClassReader initialize |
|
29 |
" |
|
30 |
||
223 | 31 |
"Modified: 14.8.1997 / 19:48:56 / cg" |
198 | 32 |
! ! |
33 |
||
34 |
!JavaClassReader class methodsFor:'Signal constants'! |
|
35 |
||
223 | 36 |
classLoaderQuerySignal |
37 |
^ ClassLoaderQuerySignal |
|
38 |
||
39 |
"Created: 14.8.1997 / 19:56:03 / cg" |
|
40 |
! |
|
41 |
||
198 | 42 |
invalidClassFormatSignal |
43 |
^ InvalidClassFormatSignal |
|
44 |
||
45 |
"Created: 3.8.1997 / 18:17:21 / cg" |
|
1 | 46 |
! ! |
47 |
||
135 | 48 |
!JavaClassReader class methodsFor:'debugging'! |
1 | 49 |
|
50 |
verbose:aBoolean |
|
51 |
Verbose := aBoolean |
|
52 |
||
53 |
" |
|
67 | 54 |
Java flushClasses. |
1 | 55 |
JavaClassReader verbose:true |
56 |
JavaClassReader verbose:false |
|
57 |
" |
|
58 |
! ! |
|
59 |
||
135 | 60 |
!JavaClassReader class methodsFor:'file reading'! |
1 | 61 |
|
21 | 62 |
loadClass:aClassName |
43 | 63 |
"reads a class, installs and returns it. |
64 |
The classes string constants are resolved & <clinit> is called, |
|
65 |
if it implements it." |
|
21 | 66 |
|
223 | 67 |
|rslt loader| |
21 | 68 |
|
223 | 69 |
loader := ClassLoaderQuerySignal raise. |
70 |
loader isNil ifTrue:[ |
|
252 | 71 |
rslt := self loadClassLazy:aClassName ignoring:(Set new). |
72 |
rslt notNil ifTrue:[self postLoadActions]. |
|
40 | 73 |
|
252 | 74 |
^ rslt |
223 | 75 |
]. |
76 |
||
77 |
^ loader loadClass:aClassName |
|
21 | 78 |
|
79 |
" |
|
80 |
JavaClassReader loadClass:'awt/Component' |
|
81 |
JavaClassReader loadClass:'awt/Button' |
|
82 |
JavaClassReader loadClass:'browser/AddButton' |
|
83 |
||
84 |
JavaClassReader loadClass:'java/lang/Object' |
|
85 |
JavaClassReader loadClass:'java/lang/AbstractMethodError' |
|
86 |
JavaClassReader loadClass:'java/lang/Thread' |
|
87 |
" |
|
88 |
||
252 | 89 |
"Created: / 15.4.1996 / 14:58:53 / cg" |
90 |
"Modified: / 3.1.1998 / 22:36:13 / cg" |
|
21 | 91 |
! |
92 |
||
54 | 93 |
loadClassLazy:aClassName ignoring:classesBeingLoaded |
38 | 94 |
"private helper: |
95 |
reads a class, installs and returns it. |
|
96 |
The class is searched along the ClassPath. |
|
43 | 97 |
|
98 |
This is a partial load (to load other classes): |
|
99 |
- The classes stringConstants are not fixed to be JavaStrings |
|
100 |
(i.e they are still ST-Strings). |
|
252 | 101 |
- The class is NOT initialized." |
38 | 102 |
|
91 | 103 |
|rslt clsName cls loadedClass| |
50 | 104 |
|
52 | 105 |
(aClassName endsWith:';') ifTrue:[ |
252 | 106 |
('oops - loading of ' , aClassName , ' attempted') printNL. |
107 |
self halt:'should not happen'. |
|
108 |
^ nil |
|
91 | 109 |
]. |
110 |
(aClassName endsWith:'[]') ifTrue:[ |
|
252 | 111 |
('oops - loading of ' , aClassName , ' attempted') printNL. |
112 |
self halt:'should not happen'. |
|
113 |
^ nil |
|
52 | 114 |
]. |
115 |
||
50 | 116 |
clsName := aClassName. |
117 |
(clsName includes:$.) ifTrue:[ |
|
252 | 118 |
clsName := clsName asString copy replaceAll:$. with:$/ |
50 | 119 |
]. |
38 | 120 |
|
91 | 121 |
(classesBeingLoaded notNil and:[classesBeingLoaded includes:clsName]) ifTrue:[ |
252 | 122 |
('oops - recursive load of ' , clsName , ' attempted') printNL. |
123 |
self halt:'should not happen'. |
|
124 |
^ JavaUnresolvedClassConstant fullName:clsName |
|
54 | 125 |
]. |
126 |
||
91 | 127 |
(cls := Java at:clsName) notNil ifTrue:[ |
252 | 128 |
('oops - ' , clsName , ' is already loaded') printNL. |
129 |
self halt:clsName , ' is already loaded - should not happen'. |
|
130 |
^ cls |
|
91 | 131 |
]. |
132 |
||
133 |
classesBeingLoaded isNil ifTrue:[ |
|
252 | 134 |
loadedClass := Set with:clsName |
91 | 135 |
] ifFalse:[ |
252 | 136 |
loadedClass := Set withAll:classesBeingLoaded. |
137 |
loadedClass add:clsName. |
|
91 | 138 |
]. |
54 | 139 |
|
135 | 140 |
Java classPath do:[:path | |
252 | 141 |
|nm p| |
91 | 142 |
|
252 | 143 |
p := path. |
144 |
(p endsWith:Filename separator) ifFalse:[ |
|
145 |
p := p , (Filename separator asString) |
|
146 |
]. |
|
147 |
(Array |
|
148 |
with:clsName |
|
149 |
with:clsName asLowercase |
|
150 |
with:clsName asUppercase) |
|
151 |
do:[:tryName | |
|
152 |
(nm := p , tryName , '.class') asFilename exists ifTrue:[ |
|
153 |
rslt := self loadFileLazy:nm ignoring:loadedClass. |
|
154 |
rslt notNil ifTrue:[^ rslt]. |
|
155 |
]. |
|
156 |
] |
|
38 | 157 |
]. |
158 |
||
91 | 159 |
('JAVA: no file found for: ' , clsName) infoPrintCR. |
160 |
^ nil |
|
135 | 161 |
|
252 | 162 |
"Modified: / 14.8.1997 / 11:38:42 / stefan" |
163 |
"Modified: / 3.1.1998 / 22:28:37 / cg" |
|
38 | 164 |
! |
165 |
||
7 | 166 |
loadFile:aFilename |
43 | 167 |
"reads a class from aFilename, installs and returns it. |
168 |
The classes strings are fixed and its class-init function is called." |
|
169 |
||
54 | 170 |
self loadFileLazy:aFilename ignoring:(Set new). |
43 | 171 |
self postLoadActions |
172 |
! |
|
173 |
||
54 | 174 |
loadFileLazy:aFilename ignoring:classesBeingLoaded |
43 | 175 |
"reads a class from aFilename, installs and returns it. |
91 | 176 |
Strings are fixed and classrefs are fixed, |
177 |
but NO no class-init functions are called." |
|
7 | 178 |
|
21 | 179 |
|javaClass pool| |
7 | 180 |
|
54 | 181 |
javaClass := self readFile:aFilename ignoring:classesBeingLoaded. |
7 | 182 |
javaClass notNil ifTrue:[ |
252 | 183 |
Java at:(javaClass fullName asSymbol) put:javaClass. |
21 | 184 |
|
252 | 185 |
classesBeingLoaded remove:javaClass fullName ifAbsent:nil. |
21 | 186 |
|
252 | 187 |
JavaUnresolvedConstant resolveFor:javaClass. |
7 | 188 |
]. |
9 | 189 |
^ javaClass |
7 | 190 |
|
191 |
" |
|
192 |
JavaClassReader loadFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
9 | 193 |
|
194 |
'/phys/ibm3/java/lib/java/lang' asFilename |
|
252 | 195 |
directoryContents do:[:nm | |
196 |
(nm endsWith:'.class') ifTrue:[ |
|
197 |
('/phys/ibm3/java/lib/java/lang/' , nm) printNL. |
|
198 |
JavaClassReader loadFile:'/phys/ibm3/java/lib/java/lang/' , nm |
|
199 |
] |
|
200 |
]. |
|
9 | 201 |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
202 |
'/phys/ibm3/java/lib/java/io' asFilename |
252 | 203 |
directoryContents do:[:nm | |
204 |
(nm endsWith:'.class') ifTrue:[ |
|
205 |
('/phys/ibm3/java/lib/java/io/' , nm) printNL. |
|
206 |
JavaClassReader loadFile:'/phys/ibm3/java/lib/java/io/' , nm |
|
207 |
] |
|
208 |
]. |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
209 |
|
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
210 |
'/phys/ibm3/java/lib/java/net' asFilename |
252 | 211 |
directoryContents do:[:nm | |
212 |
(nm endsWith:'.class') ifTrue:[ |
|
213 |
('/phys/ibm3/java/lib/java/net/' , nm) printNL. |
|
214 |
JavaClassReader loadFile:'/phys/ibm3/java/lib/java/net/' , nm |
|
215 |
] |
|
216 |
]. |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
217 |
|
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
218 |
'/phys/ibm3/java/lib/java/util' asFilename |
252 | 219 |
directoryContents do:[:nm | |
220 |
(nm endsWith:'.class') ifTrue:[ |
|
221 |
('/phys/ibm3/java/lib/java/util/' , nm) printNL. |
|
222 |
JavaClassReader loadFile:'/phys/ibm3/java/lib/java/util/' , nm |
|
223 |
] |
|
224 |
]. |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
225 |
|
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
226 |
'/phys/ibm3/java/lib/java/awt' asFilename |
252 | 227 |
directoryContents do:[:nm | |
228 |
(nm endsWith:'.class') ifTrue:[ |
|
229 |
('/phys/ibm3/java/lib/java/awt/' , nm) printNL. |
|
230 |
JavaClassReader loadFile:'/phys/ibm3/java/lib/java/awt/' , nm |
|
231 |
] |
|
232 |
]. |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
233 |
|
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
234 |
'/phys/ibm3/java/lib/java/applet' asFilename |
252 | 235 |
directoryContents do:[:nm | |
236 |
(nm endsWith:'.class') ifTrue:[ |
|
237 |
('/phys/ibm3/java/lib/java/applet/' , nm) printNL. |
|
238 |
JavaClassReader loadFile:'/phys/ibm3/java/lib/java/applet/' , nm |
|
239 |
] |
|
240 |
]. |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
241 |
|
9 | 242 |
JavaClassReader loadFile:'/phys/ibm3/java/lib/java/lang/AbstractMethodError.class' |
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
243 |
JavaClassReader loadFile:'/phys/ibm3/java/lib/java/lang/Thread.class' |
7 | 244 |
" |
245 |
||
246 |
"Created: 15.4.1996 / 14:58:53 / cg" |
|
247 |
! |
|
248 |
||
43 | 249 |
postLoadActions |
250 |
"Resolve all classes' string constants. |
|
251 |
Perform all class initialization functions (of those which are not |
|
252 |
yet initialized)." |
|
253 |
||
225 | 254 |
^ self postLoadActions:true |
255 |
||
256 |
"Modified: 15.8.1997 / 01:02:17 / cg" |
|
257 |
! |
|
258 |
||
259 |
postLoadActions:loadUnresolved |
|
260 |
"Resolve all classes' string constants. |
|
252 | 261 |
Perform all class initialization functions |
262 |
(of those which are not yet initialized)." |
|
225 | 263 |
|
223 | 264 |
|classes prevUnresolved newUnresolved loader| |
43 | 265 |
|
91 | 266 |
"/ need at least java.lang.String, for valid constants |
167 | 267 |
Java java_lang_String isNil ifTrue:[ |
255 | 268 |
self loadClassLazy:'java.lang.String' ignoring:(Set new). |
54 | 269 |
]. |
270 |
||
91 | 271 |
LazyClassLoading ifFalse:[ |
255 | 272 |
loader := ClassLoaderQuerySignal raise. |
273 |
||
274 |
prevUnresolved := nil. |
|
275 |
newUnresolved := JavaUnresolvedConstant unresolvedClassNames asArray. |
|
276 |
loadUnresolved ifTrue:[ |
|
277 |
[prevUnresolved ~= newUnresolved] whileTrue:[ |
|
278 |
newUnresolved do:[:nextUnresolved | |
|
279 |
|classURL| |
|
223 | 280 |
|
255 | 281 |
(Java at:nextUnresolved) isNil ifTrue:[ "/ could have been loaded in the meantime |
282 |
Silent ifFalse:[ |
|
283 |
'loading unresolved: ' print. nextUnresolved printCR. |
|
284 |
]. |
|
285 |
loader isNil ifTrue:[ |
|
286 |
self |
|
287 |
loadClassLazy:nextUnresolved |
|
288 |
ignoring:(Set new). |
|
289 |
] ifFalse:[ |
|
290 |
"/ |
|
291 |
"/ the aquired loader is a javaClassLoader |
|
292 |
"/ which expects an URL as arg. |
|
293 |
"/ |
|
294 |
"/ classURL := Java as_URL:('file:' , nextUnresolved asString , '.class'). |
|
295 |
"/ loader loadClass:classURL |
|
296 |
loader |
|
297 |
perform:#'loadClass(Ljava/lang/String;)Ljava/lang/Class;' |
|
298 |
with:(Java as_String:(nextUnresolved asString)). |
|
299 |
] |
|
300 |
] |
|
301 |
]. |
|
302 |
prevUnresolved := newUnresolved. |
|
303 |
newUnresolved := JavaUnresolvedConstant unresolvedClassNames asArray. |
|
304 |
]. |
|
305 |
]. |
|
229 | 306 |
|
255 | 307 |
newUnresolved size == 0 ifTrue:[ |
308 |
"/ nothing unresolved |
|
91 | 309 |
|
255 | 310 |
(classes := Java allClasses) notNil ifTrue:[ |
311 |
"/ init all new classes |
|
312 |
"/ fetch again - there could be new ones ... |
|
91 | 313 |
|
255 | 314 |
classes := Java allClasses. |
315 |
classes do:[:aJavaClass | |
|
316 |
aJavaClass isInitialized ifFalse:[ |
|
317 |
Silent ifFalse:[ |
|
318 |
'performing class initialization of ' print. aJavaClass fullName printCR. |
|
319 |
]. |
|
320 |
aJavaClass classInit |
|
321 |
] |
|
322 |
] |
|
323 |
] |
|
324 |
]. |
|
43 | 325 |
] |
167 | 326 |
|
252 | 327 |
"Created: / 15.8.1997 / 01:01:44 / cg" |
255 | 328 |
"Modified: / 7.1.1998 / 14:13:55 / cg" |
43 | 329 |
! |
330 |
||
54 | 331 |
readFile:aFilename ignoring:classesBeingLoaded |
7 | 332 |
"reads a class from aFilename and returns it. |
91 | 333 |
The JavaClass is NOT installed as global and unresolved |
334 |
refs are NOT patched." |
|
7 | 335 |
|
73 | 336 |
|inStream javaClass| |
1 | 337 |
|
43 | 338 |
Silent ifFalse:[ |
252 | 339 |
'reading ' print. aFilename print. ' ...' printNL. |
43 | 340 |
]. |
21 | 341 |
|
1 | 342 |
inStream := aFilename asFilename readStream. |
91 | 343 |
inStream isNil ifTrue:[ |
252 | 344 |
('no file: ' , aFilename) printCR. |
345 |
self halt. |
|
346 |
^ nil |
|
91 | 347 |
]. |
348 |
||
349 |
javaClass := self new readStream:inStream ignoring:classesBeingLoaded. |
|
73 | 350 |
javaClass notNil ifTrue:[ |
252 | 351 |
javaClass setBinaryFilePath:(inStream pathName). |
73 | 352 |
]. |
1 | 353 |
inStream close. |
27 | 354 |
|
91 | 355 |
AbsolutelySilent ifFalse:[ |
252 | 356 |
' ... loaded ' print. javaClass displayString printNL. |
43 | 357 |
]. |
27 | 358 |
|
73 | 359 |
^ javaClass |
1 | 360 |
|
361 |
"Created: 15.4.1996 / 14:58:53 / cg" |
|
362 |
! |
|
363 |
||
198 | 364 |
readStream:aStream |
365 |
"reads a class from aStream and returns it. |
|
223 | 366 |
The JavaClass is installed as global. |
367 |
If new classes are required to be loaded, a new standard loader |
|
368 |
is created." |
|
198 | 369 |
|
223 | 370 |
^ self readStream:aStream loader:nil |
198 | 371 |
|
223 | 372 |
"Modified: 14.8.1997 / 19:51:50 / cg" |
198 | 373 |
! |
374 |
||
54 | 375 |
readStream:aStream ignoring:classesBeingLoaded |
7 | 376 |
"reads a class from aStream and returns it. |
377 |
The JavaClass is not installed as global" |
|
378 |
||
54 | 379 |
^ self new readStream:aStream ignoring:classesBeingLoaded |
1 | 380 |
|
381 |
" |
|
382 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
383 |
" |
|
384 |
||
385 |
"Modified: 15.4.1996 / 15:01:30 / cg" |
|
223 | 386 |
! |
387 |
||
388 |
readStream:aStream loader:aClassLoader |
|
389 |
"reads a class from aStream and returns it. |
|
390 |
The JavaClass is installed as global. |
|
391 |
If new classes are required to be loaded, aClassLoader is |
|
392 |
asked to do it. If aClassLoader is nil, a new standard loader |
|
393 |
is created." |
|
394 |
||
225 | 395 |
^ self |
252 | 396 |
readStream:aStream |
397 |
loader:aClassLoader |
|
398 |
loadUnresolved:true |
|
225 | 399 |
|
400 |
"Modified: 15.8.1997 / 01:00:35 / cg" |
|
401 |
! |
|
402 |
||
403 |
readStream:aStream loader:aClassLoader loadUnresolved:loadUnresolved |
|
404 |
"reads a class from aStream and returns it. |
|
405 |
The JavaClass is installed as global. |
|
406 |
If new classes are required to be loaded, aClassLoader is |
|
407 |
asked to do it. If aClassLoader is nil, a new standard loader |
|
408 |
is created." |
|
409 |
||
223 | 410 |
|javaClass| |
411 |
||
412 |
javaClass := self readStream:aStream ignoring:(Set new). |
|
413 |
javaClass notNil ifTrue:[ |
|
252 | 414 |
ClassLoaderQuerySignal answer:aClassLoader |
415 |
do:[ |
|
416 |
self postLoadActions:loadUnresolved. |
|
417 |
Java at:(javaClass fullName asSymbol) put:javaClass. |
|
418 |
JavaUnresolvedConstant resolveFor:javaClass. |
|
419 |
]. |
|
223 | 420 |
]. |
421 |
^ javaClass |
|
422 |
||
423 |
"Modified: 3.8.1997 / 19:48:45 / cg" |
|
225 | 424 |
"Created: 15.8.1997 / 00:59:24 / cg" |
1 | 425 |
! ! |
426 |
||
427 |
!JavaClassReader methodsFor:'file reading'! |
|
428 |
||
54 | 429 |
readClassFileIgnoring:classesbeingLoaded |
7 | 430 |
"reads a class from inStream and returns it. |
38 | 431 |
The JavaClass is not installed as global and its constants |
432 |
(especially strings) may not be fully resolved." |
|
7 | 433 |
|
9 | 434 |
|magic |
38 | 435 |
access_flags this_class this_class_index super_class super_class_index |
436 |
realSuperClass this_class_ref existingSuperClass |
|
40 | 437 |
fields interfaces staticFields nStatic| |
1 | 438 |
|
439 |
"/ |
|
440 |
"/ read magic, determine byte order |
|
441 |
"/ |
|
442 |
msb := true. |
|
128 | 443 |
magic := inStream nextUnsignedLongMSB:msb. |
1 | 444 |
magic = 16rCAFEBABE ifFalse:[ |
252 | 445 |
magic = 16rBEBAFECA ifFalse:[ |
446 |
InvalidClassFormatSignal raiseErrorString:'not a java class file'. |
|
447 |
^ nil |
|
448 |
]. |
|
449 |
msb := false. |
|
450 |
Verbose ifTrue:[Transcript showCR:'file is lsb']. |
|
1 | 451 |
] ifTrue:[ |
252 | 452 |
Verbose ifTrue:[Transcript showCR:'file is msb']. |
1 | 453 |
]. |
454 |
||
455 |
"/ |
|
456 |
"/ get version |
|
457 |
"/ |
|
128 | 458 |
minorVsn := inStream nextUnsignedShortMSB:msb. |
459 |
majorVsn := inStream nextUnsignedShortMSB:msb. |
|
9 | 460 |
|
99 | 461 |
(majorVsn ~~ 45 or:[minorVsn ~~ 3]) ifTrue:[ |
252 | 462 |
Transcript show:'warning this file has version '; show:majorVsn; show:'.'; showCR:minorVsn. |
99 | 463 |
]. |
464 |
||
465 |
Verbose ifTrue:[ |
|
252 | 466 |
Transcript show:'version = '; |
467 |
show:(majorVsn printString); |
|
468 |
show:'.'; |
|
469 |
showCR:(minorVsn printString). |
|
99 | 470 |
]. |
1 | 471 |
|
472 |
"/ |
|
473 |
"/ get constant pool |
|
474 |
"/ |
|
475 |
self readConstantPool. |
|
476 |
||
477 |
"/ |
|
478 |
"/ access flags |
|
479 |
"/ |
|
128 | 480 |
access_flags := inStream nextUnsignedShortMSB:msb. |
481 |
this_class_index := inStream nextUnsignedShortMSB:msb. |
|
482 |
super_class_index := inStream nextUnsignedShortMSB:msb. |
|
1 | 483 |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
484 |
super_class_index == 0 ifTrue:[ |
252 | 485 |
super_class := nil |
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
486 |
] ifFalse:[ |
252 | 487 |
super_class := constants at:super_class_index. |
488 |
existingSuperClass := Java classNamed:super_class fullName. |
|
489 |
existingSuperClass notNil ifTrue:[ |
|
490 |
super_class := existingSuperClass |
|
491 |
] ifFalse:[ |
|
492 |
(super_class isMemberOf:JavaUnresolvedClassConstant) ifTrue:[ |
|
493 |
Silent ifFalse:[ |
|
494 |
'load superClass: ' print. super_class fullName printCR. |
|
495 |
]. |
|
91 | 496 |
|
252 | 497 |
existingSuperClass := self class |
498 |
loadClassLazy:(super_class fullName) |
|
499 |
ignoring:classesbeingLoaded. |
|
91 | 500 |
|
252 | 501 |
existingSuperClass isNil ifTrue:[ |
502 |
self halt:('cannot find superclass: ' , super_class fullName). |
|
503 |
]. |
|
504 |
super_class := existingSuperClass |
|
505 |
] ifFalse:[ |
|
506 |
self halt:'oops - superclass ?' |
|
507 |
] |
|
508 |
]. |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
509 |
]. |
1 | 510 |
|
511 |
"/ |
|
512 |
"/ get interfaces |
|
513 |
"/ |
|
38 | 514 |
interfaces := self readInterfaces. |
1 | 515 |
|
516 |
"/ |
|
517 |
"/ get fields |
|
518 |
"/ |
|
38 | 519 |
fields := self readFieldInfofields. |
40 | 520 |
|
521 |
"/ |
|
522 |
"/ create the fields as instVars |
|
523 |
"/ static fields are created as class-InstVars |
|
524 |
"/ |
|
525 |
staticFields := fields select:[:f | f isStatic]. |
|
526 |
nStatic := staticFields size. |
|
527 |
||
528 |
this_class_ref := constants at:this_class_index. |
|
182 | 529 |
this_class := JavaClass fullName:(this_class_ref fullName) numStatic:nStatic. |
530 |
||
40 | 531 |
nStatic ~~ 0 ifTrue:[ |
252 | 532 |
fields := fields select:[:f | f isStatic not]. |
40 | 533 |
|
252 | 534 |
JavaClass setInstanceVariableStringFromFields:staticFields in:this_class class. |
535 |
this_class setStaticFields:staticFields. |
|
536 |
this_class initializeStaticFields. |
|
40 | 537 |
]. |
538 |
||
539 |
this_class setAccessFlags:access_flags. |
|
540 |
this_class setSuperclass:super_class. |
|
541 |
this_class setConstantPool:constants. |
|
542 |
||
52 | 543 |
this_class setFields:fields. |
110 | 544 |
this_class setInterfaces:interfaces. |
1 | 545 |
|
546 |
"/ |
|
547 |
"/ get methods |
|
548 |
"/ |
|
38 | 549 |
self readMethodsFor:this_class. |
1 | 550 |
|
5 | 551 |
self readAttributesFor:this_class. |
552 |
||
91 | 553 |
constants owner:this_class. |
554 |
||
5 | 555 |
^ this_class |
556 |
||
1 | 557 |
" |
558 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
559 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
|
9 | 560 |
|
561 |
JavaClassReader verbose:true. |
|
562 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/java/lang/ArithmeticException.class' |
|
563 |
JavaClassReader readFile:'/phys/ibm3/java/lib/java/lang/ArithmeticException.class' |
|
1 | 564 |
" |
565 |
||
252 | 566 |
"Created: / 15.4.1996 / 15:02:47 / cg" |
567 |
"Modified: / 3.1.1998 / 22:33:16 / cg" |
|
1 | 568 |
! |
569 |
||
5 | 570 |
readSourceFileAttributeFor:aJavaClass |
571 |
|attribute_length sourceFile_index sourceFile| |
|
572 |
||
128 | 573 |
attribute_length := inStream nextUnsignedLongMSB:msb. |
5 | 574 |
|
128 | 575 |
sourceFile_index := inStream nextUnsignedShortMSB:msb. |
5 | 576 |
sourceFile := constants at:sourceFile_index. |
577 |
||
578 |
aJavaClass setSourceFile:sourceFile. |
|
579 |
||
61 | 580 |
Verbose ifTrue:[Transcript show:'sourceFile: '; showCR:sourceFile]. |
5 | 581 |
^ true |
582 |
||
583 |
" |
|
584 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
585 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
|
586 |
" |
|
587 |
||
588 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
589 |
"Created: 15.4.1996 / 15:40:17 / cg" |
|
590 |
! |
|
591 |
||
54 | 592 |
readStream:aStream ignoring:classesBeingLoaded |
7 | 593 |
"reads a class from aStream and returns it. |
594 |
The JavaClass is not installed as global" |
|
595 |
||
5 | 596 |
inStream := aStream. |
597 |
inStream binary. |
|
38 | 598 |
|
54 | 599 |
^ self readClassFileIgnoring:classesBeingLoaded |
5 | 600 |
|
601 |
" |
|
602 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
603 |
" |
|
604 |
||
605 |
"Created: 15.4.1996 / 15:00:55 / cg" |
|
606 |
"Modified: 15.4.1996 / 15:06:18 / cg" |
|
607 |
! ! |
|
608 |
||
609 |
!JavaClassReader methodsFor:'file reading - attributes'! |
|
610 |
||
611 |
readAttribute:attributeName for:something |
|
83 | 612 |
|
5 | 613 |
(attributeName = 'Code') ifTrue:[ |
252 | 614 |
self readCodeAttributeFor:something. |
615 |
^ true. |
|
5 | 616 |
]. |
83 | 617 |
(attributeName = 'Exceptions') ifTrue:[ |
252 | 618 |
self readExceptionsAttributeFor:something. |
619 |
^ true. |
|
83 | 620 |
]. |
5 | 621 |
(attributeName = 'LineNumberTable') ifTrue:[ |
252 | 622 |
self readLineNumberTableAttributeFor:something. |
623 |
^ true. |
|
5 | 624 |
]. |
625 |
(attributeName = 'LocalVariableTable') ifTrue:[ |
|
252 | 626 |
self readLocalVariableTableAttributeFor:something. |
627 |
^ true. |
|
5 | 628 |
]. |
629 |
(attributeName = 'ConstantValue') ifTrue:[ |
|
252 | 630 |
self readConstantValueAttributeFor:something. |
631 |
^ true. |
|
5 | 632 |
]. |
633 |
(attributeName = 'SourceFile') ifTrue:[ |
|
252 | 634 |
self readSourceFileAttributeFor:something. |
635 |
^ true. |
|
636 |
]. |
|
637 |
(attributeName = 'Deprecated') ifTrue:[ |
|
638 |
^ false. |
|
5 | 639 |
]. |
83 | 640 |
|
641 |
('JAVA: unrecognized attribute: ' , attributeName) infoPrintCR. |
|
5 | 642 |
^ false |
643 |
||
644 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
645 |
"Created: 15.4.1996 / 15:40:17 / cg" |
|
646 |
! |
|
647 |
||
648 |
readAttributeFor:something |
|
649 |
|attribute_name_index attribute_name attribute_length attribute_info| |
|
650 |
||
61 | 651 |
Verbose ifTrue:[Transcript show:'attrib at pos: '; showCR:inStream position]. |
9 | 652 |
|
128 | 653 |
attribute_name_index := inStream nextUnsignedShortMSB:msb. |
9 | 654 |
|
655 |
"/ |
|
656 |
"/ UNDOC feature ? |
|
657 |
"/ |
|
658 |
attribute_name_index > constants size ifTrue:[ |
|
252 | 659 |
attribute_name_index == 16rb700 ifTrue:[ |
660 |
self halt. |
|
661 |
] |
|
9 | 662 |
]. |
663 |
||
5 | 664 |
attribute_name := constants at:attribute_name_index. |
9 | 665 |
|
61 | 666 |
Verbose ifTrue:[Transcript show:'attrib name: '; showCR:attribute_name]. |
9 | 667 |
|
5 | 668 |
(self readAttribute:attribute_name for:something) ifFalse:[ |
252 | 669 |
attribute_length := inStream nextUnsignedLongMSB:msb. |
670 |
attribute_info := ByteArray new:(attribute_length). |
|
671 |
inStream nextBytes:attribute_length into:attribute_info startingAt:1. |
|
5 | 672 |
|
252 | 673 |
Verbose ifTrue:[Transcript show:'skipped '; show:attribute_name; showCR:'-attribute']. |
5 | 674 |
]. |
675 |
||
676 |
" |
|
677 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
678 |
" |
|
679 |
||
680 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
681 |
"Created: 15.4.1996 / 15:40:17 / cg" |
|
682 |
! |
|
683 |
||
684 |
readAttributesFor:something |
|
685 |
|attributes_count| |
|
686 |
||
128 | 687 |
attributes_count := inStream nextUnsignedShortMSB:msb. |
5 | 688 |
|
689 |
1 to:attributes_count do:[:i | |
|
252 | 690 |
self readAttributeFor:something. |
5 | 691 |
]. |
692 |
||
693 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
694 |
"Created: 15.4.1996 / 15:40:17 / cg" |
|
695 |
! ! |
|
696 |
||
697 |
!JavaClassReader methodsFor:'file reading - constants'! |
|
698 |
||
1 | 699 |
readConstant |
700 |
|tag constReader const| |
|
701 |
||
702 |
||
11 | 703 |
constNeeds2Slots := false. |
704 |
||
1 | 705 |
"/ |
706 |
"/ get tag |
|
707 |
"/ |
|
128 | 708 |
tag := inStream nextByte. |
61 | 709 |
Verbose ifTrue:[Transcript show:'tag = '; showCR:tag]. |
1 | 710 |
|
711 |
constReader := #( |
|
252 | 712 |
readConstant_Asciz "/ 1 - now called Utf8 |
713 |
readConstant_Unicode "/ 2 |
|
714 |
readConstant_Integer "/ 3 |
|
715 |
readConstant_Float "/ 4 |
|
716 |
readConstant_Long "/ 5 |
|
717 |
readConstant_Double "/ 6 |
|
718 |
readConstant_Class "/ 7 |
|
719 |
readConstant_String "/ 8 |
|
720 |
readConstant_Fieldref "/ 9 |
|
721 |
readConstant_Methodref "/ 10 |
|
722 |
readConstant_InterfaceMethodref "/ 11 |
|
723 |
readConstant_NameAndType "/ 12 |
|
724 |
) at:tag ifAbsent:[#readConstant_Undef]. |
|
1 | 725 |
|
726 |
^ self perform:constReader. |
|
727 |
||
728 |
" |
|
729 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
730 |
" |
|
731 |
||
732 |
"Created: 15.4.1996 / 15:46:32 / cg" |
|
733 |
"Modified: 15.4.1996 / 15:47:00 / cg" |
|
734 |
! |
|
735 |
||
736 |
readConstantPool |
|
11 | 737 |
|constantPoolCount const i| |
1 | 738 |
|
739 |
"/ |
|
740 |
"/ get constant pool |
|
741 |
"/ |
|
128 | 742 |
constantPoolCount := inStream nextUnsignedShortMSB:msb. |
61 | 743 |
Verbose ifTrue:[Transcript show:'constantPoolCount = '; showCR:constantPoolCount]. |
1 | 744 |
|
91 | 745 |
constants := JavaConstantPool "Array" new:constantPoolCount-1. |
1 | 746 |
|
21 | 747 |
constSlot := 1. |
748 |
[constSlot < constantPoolCount] whileTrue:[ |
|
252 | 749 |
Verbose ifTrue:[Transcript show:'const: '; showCR:constSlot]. |
750 |
const := self readConstant. |
|
751 |
constants at:constSlot put:const. |
|
752 |
constNeeds2Slots ifTrue:[ |
|
753 |
constSlot := constSlot + 1. |
|
754 |
]. |
|
755 |
constSlot := constSlot + 1. |
|
1 | 756 |
]. |
757 |
||
52 | 758 |
constSlot := -1. |
759 |
||
91 | 760 |
"/ preresolve what can be (especially, strings are resolved here) |
761 |
||
1 | 762 |
1 to:constantPoolCount-1 do:[:i | |
252 | 763 |
|const value| |
1 | 764 |
|
252 | 765 |
const := constants at:i. |
766 |
const notNil ifTrue:[ "/ kludge for 2-slot constants (which only take 1 slot in ST/X) |
|
767 |
(const isKindOf:JavaUnresolvedConstant) ifTrue:[ |
|
768 |
value := const preResolve. |
|
769 |
value ~~ const ifTrue:[ |
|
770 |
constants at:i put:value. |
|
771 |
] |
|
772 |
] |
|
773 |
] |
|
1 | 774 |
]. |
775 |
||
776 |
" |
|
777 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
778 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
|
779 |
" |
|
780 |
||
781 |
"Created: 15.4.1996 / 15:14:11 / cg" |
|
782 |
"Modified: 15.4.1996 / 16:41:57 / cg" |
|
783 |
! |
|
784 |
||
785 |
readConstant_Asciz |
|
786 |
|len string| |
|
787 |
||
128 | 788 |
len := inStream nextUnsignedShortMSB:msb. |
1 | 789 |
string := String new:len. |
790 |
inStream nextBytes:len into:string startingAt:1. |
|
791 |
||
61 | 792 |
Verbose ifTrue:[Transcript show:'asciz; string= '; showCR:string]. |
1 | 793 |
|
794 |
^ string |
|
795 |
||
796 |
" |
|
797 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
798 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
|
799 |
" |
|
800 |
||
801 |
"Created: 15.4.1996 / 15:15:35 / cg" |
|
802 |
"Modified: 15.4.1996 / 16:33:45 / cg" |
|
803 |
! |
|
804 |
||
805 |
readConstant_Class |
|
52 | 806 |
|name_index name| |
1 | 807 |
|
128 | 808 |
name_index := inStream nextUnsignedShortMSB:msb. |
1 | 809 |
|
61 | 810 |
Verbose ifTrue:[Transcript show:'class; index= '; showCR:name_index]. |
1 | 811 |
|
52 | 812 |
name := constants at:name_index. |
813 |
name notNil ifTrue:[ |
|
252 | 814 |
Verbose ifTrue:[Transcript showCR:'name in constant_class already resolved']. |
815 |
"/ self halt |
|
52 | 816 |
]. |
817 |
||
21 | 818 |
^ JavaUnresolvedClassConstant |
252 | 819 |
pool:constants |
820 |
poolIndex:constSlot |
|
821 |
nameIndex:name_index |
|
91 | 822 |
|
1 | 823 |
" |
824 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
825 |
" |
|
826 |
||
827 |
"Created: 15.4.1996 / 15:21:13 / cg" |
|
193 | 828 |
"Modified: 1.8.1997 / 21:27:28 / cg" |
1 | 829 |
! |
830 |
||
11 | 831 |
readConstant_Double |
832 |
|high low aFloat| |
|
833 |
||
128 | 834 |
high := inStream nextUnsignedLongMSB:msb. |
835 |
low := inStream nextUnsignedLongMSB:msb. |
|
11 | 836 |
|
837 |
aFloat := Float new. |
|
838 |
UninterpretedBytes isBigEndian ifTrue:[ |
|
252 | 839 |
aFloat basicAt:1 put:((high bitShift:-24) bitAnd:16rFF). |
840 |
aFloat basicAt:2 put:((high bitShift:-16) bitAnd:16rFF). |
|
841 |
aFloat basicAt:3 put:((high bitShift:-8) bitAnd:16rFF). |
|
842 |
aFloat basicAt:4 put:(high bitAnd:16rFF). |
|
843 |
aFloat basicAt:5 put:((low bitShift:-24) bitAnd:16rFF). |
|
844 |
aFloat basicAt:6 put:((low bitShift:-16) bitAnd:16rFF). |
|
845 |
aFloat basicAt:7 put:((low bitShift:-8) bitAnd:16rFF). |
|
846 |
aFloat basicAt:8 put:(low bitAnd:16rFF). |
|
11 | 847 |
] ifFalse:[ |
252 | 848 |
aFloat basicAt:1 put:(low bitAnd:16rFF). |
849 |
aFloat basicAt:2 put:((low bitShift:-8) bitAnd:16rFF). |
|
850 |
aFloat basicAt:3 put:((low bitShift:-16) bitAnd:16rFF). |
|
851 |
aFloat basicAt:4 put:((low bitShift:-24) bitAnd:16rFF). |
|
852 |
aFloat basicAt:5 put:(high bitAnd:16rFF). |
|
853 |
aFloat basicAt:6 put:((high bitShift:-8) bitAnd:16rFF). |
|
854 |
aFloat basicAt:7 put:((high bitShift:-16) bitAnd:16rFF). |
|
855 |
aFloat basicAt:8 put:((high bitShift:-24) bitAnd:16rFF). |
|
11 | 856 |
]. |
857 |
||
858 |
constNeeds2Slots := true. |
|
859 |
||
61 | 860 |
Verbose ifTrue:[Transcript show:'double; value= '; showCR:aFloat]. |
11 | 861 |
^ aFloat |
862 |
||
863 |
" |
|
864 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
865 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
|
866 |
" |
|
867 |
||
868 |
"Modified: 15.4.1996 / 15:42:16 / cg" |
|
869 |
"Created: 15.4.1996 / 16:34:42 / cg" |
|
870 |
! |
|
871 |
||
1 | 872 |
readConstant_Fieldref |
873 |
|class_index name_and_type_index| |
|
874 |
||
128 | 875 |
class_index := inStream nextUnsignedShortMSB:msb. |
876 |
name_and_type_index := inStream nextUnsignedShortMSB:msb. |
|
1 | 877 |
|
61 | 878 |
Verbose ifTrue:[Transcript show:'fieldref; classindex= '; showCR:class_index]. |
879 |
Verbose ifTrue:[Transcript show:'fieldref; name&typeindex= '; showCR:name_and_type_index]. |
|
1 | 880 |
|
91 | 881 |
^ JavaUnresolvedFieldrefConstant |
252 | 882 |
pool:constants |
883 |
poolIndex:constSlot |
|
884 |
classIndex:class_index |
|
885 |
nameandTypeIndex:name_and_type_index |
|
1 | 886 |
|
887 |
" |
|
888 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
889 |
" |
|
890 |
||
891 |
"Created: 15.4.1996 / 15:22:18 / cg" |
|
892 |
"Modified: 15.4.1996 / 16:07:01 / cg" |
|
893 |
! |
|
894 |
||
11 | 895 |
readConstant_Float |
896 |
|high aFloat| |
|
897 |
||
128 | 898 |
high := inStream nextUnsignedLongMSB:msb. |
11 | 899 |
|
900 |
aFloat := ShortFloat basicNew. |
|
901 |
UninterpretedBytes isBigEndian ifTrue:[ |
|
252 | 902 |
aFloat basicAt:1 put:((high bitShift:-24) bitAnd:16rFF). |
903 |
aFloat basicAt:2 put:((high bitShift:-16) bitAnd:16rFF). |
|
904 |
aFloat basicAt:3 put:((high bitShift:-8) bitAnd:16rFF). |
|
905 |
aFloat basicAt:4 put:(high bitAnd:16rFF). |
|
11 | 906 |
] ifFalse:[ |
252 | 907 |
aFloat basicAt:1 put:(high bitAnd:16rFF). |
908 |
aFloat basicAt:2 put:((high bitShift:-8) bitAnd:16rFF). |
|
909 |
aFloat basicAt:3 put:((high bitShift:-16) bitAnd:16rFF). |
|
910 |
aFloat basicAt:4 put:((high bitShift:-24) bitAnd:16rFF). |
|
11 | 911 |
]. |
912 |
||
61 | 913 |
Verbose ifTrue:[Transcript show:'float; value= '; showCR:aFloat]. |
11 | 914 |
^ aFloat |
915 |
||
916 |
" |
|
917 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
918 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
|
919 |
" |
|
920 |
||
921 |
"Modified: 15.4.1996 / 15:42:16 / cg" |
|
922 |
"Created: 15.4.1996 / 16:34:42 / cg" |
|
923 |
! |
|
924 |
||
1 | 925 |
readConstant_Integer |
926 |
|value| |
|
927 |
||
128 | 928 |
value := inStream nextLongMSB:msb. |
1 | 929 |
|
61 | 930 |
Verbose ifTrue:[Transcript show:'integer; value= '; showCR:value]. |
1 | 931 |
|
932 |
^ value |
|
933 |
||
934 |
" |
|
935 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
936 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
|
937 |
" |
|
938 |
||
939 |
"Modified: 15.4.1996 / 15:42:16 / cg" |
|
940 |
"Created: 15.4.1996 / 16:34:42 / cg" |
|
941 |
! |
|
942 |
||
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
943 |
readConstant_InterfaceMethodref |
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
944 |
|class_index name_and_type_index| |
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
945 |
|
128 | 946 |
class_index := inStream nextUnsignedShortMSB:msb. |
947 |
name_and_type_index := inStream nextUnsignedShortMSB:msb. |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
948 |
|
61 | 949 |
Verbose ifTrue:[Transcript show:'methodref; classindex= '; showCR:class_index]. |
950 |
Verbose ifTrue:[Transcript show:'methodref; name&typeindex= '; showCR:name_and_type_index]. |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
951 |
|
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
952 |
^ JavaUnresolvedInterfaceMethodrefConstant |
252 | 953 |
pool:constants |
954 |
poolIndex:constSlot |
|
955 |
classIndex:class_index |
|
956 |
nameandTypeIndex:name_and_type_index |
|
14
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
957 |
|
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
958 |
" |
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
959 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
960 |
" |
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
961 |
|
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
962 |
"Created: 15.4.1996 / 15:22:37 / cg" |
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
963 |
"Modified: 15.4.1996 / 16:07:19 / cg" |
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
964 |
! |
c1d9f60eb650
can now load all java.class files (see JavaClassReader>>loadFile:)
cg
parents:
11
diff
changeset
|
965 |
|
11 | 966 |
readConstant_Long |
967 |
|high low value| |
|
968 |
||
128 | 969 |
high := inStream nextUnsignedLongMSB:msb. |
970 |
low := inStream nextUnsignedLongMSB:msb. |
|
11 | 971 |
|
972 |
value := (high bitShift:32) bitOr:low. |
|
60 | 973 |
(high bitTest:16r80000000) ifTrue:[ |
252 | 974 |
value := value - 16r10000000000000000. |
60 | 975 |
]. |
11 | 976 |
constNeeds2Slots := true. |
977 |
||
61 | 978 |
Verbose ifTrue:[Transcript show:'long; value= '; showCR:value]. |
11 | 979 |
^ value |
980 |
||
981 |
" |
|
982 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
983 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
|
984 |
" |
|
985 |
||
986 |
"Modified: 15.4.1996 / 15:42:16 / cg" |
|
987 |
"Created: 15.4.1996 / 16:34:42 / cg" |
|
988 |
! |
|
989 |
||
1 | 990 |
readConstant_Methodref |
991 |
|class_index name_and_type_index| |
|
992 |
||
128 | 993 |
class_index := inStream nextUnsignedShortMSB:msb. |
994 |
name_and_type_index := inStream nextUnsignedShortMSB:msb. |
|
1 | 995 |
|
61 | 996 |
Verbose ifTrue:[Transcript show:'methodref; classindex= '; showCR:class_index]. |
997 |
Verbose ifTrue:[Transcript show:'methodref; name&typeindex= '; showCR:name_and_type_index]. |
|
1 | 998 |
|
999 |
^ JavaUnresolvedMethodrefConstant |
|
252 | 1000 |
pool:constants |
1001 |
poolIndex:constSlot |
|
1002 |
classIndex:class_index |
|
1003 |
nameandTypeIndex:name_and_type_index |
|
1 | 1004 |
|
1005 |
" |
|
1006 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1007 |
" |
|
1008 |
||
1009 |
"Created: 15.4.1996 / 15:22:37 / cg" |
|
1010 |
"Modified: 15.4.1996 / 16:07:19 / cg" |
|
1011 |
! |
|
1012 |
||
91 | 1013 |
readConstant_NameAndType |
1 | 1014 |
|name_index signature_index| |
1015 |
||
128 | 1016 |
name_index := inStream nextUnsignedShortMSB:msb. |
1017 |
signature_index := inStream nextUnsignedShortMSB:msb. |
|
1 | 1018 |
|
61 | 1019 |
Verbose ifTrue:[Transcript show:'methodref; nameindex= '; showCR:name_index]. |
1020 |
Verbose ifTrue:[Transcript show:'methodref; signatureindex= '; showCR:signature_index]. |
|
1 | 1021 |
|
1022 |
^ JavaUnresolvedNameandTypeConstant |
|
252 | 1023 |
pool:constants |
1024 |
poolIndex:constSlot |
|
1025 |
nameIndex:name_index |
|
1026 |
signatureIndex:signature_index |
|
1 | 1027 |
|
1028 |
" |
|
1029 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1030 |
" |
|
1031 |
||
1032 |
"Created: 15.4.1996 / 15:23:43 / cg" |
|
1033 |
"Modified: 15.4.1996 / 16:17:16 / cg" |
|
1034 |
! |
|
1035 |
||
1036 |
readConstant_String |
|
1037 |
|tag string_index| |
|
1038 |
||
128 | 1039 |
string_index := inStream nextUnsignedShortMSB:msb. |
1 | 1040 |
|
61 | 1041 |
Verbose ifTrue:[Transcript show:'string; index= '; showCR:string_index]. |
1 | 1042 |
|
91 | 1043 |
^ JavaUnresolvedStringConstant |
252 | 1044 |
pool:constants |
1045 |
poolIndex:constSlot |
|
1046 |
stringIndex:string_index |
|
1 | 1047 |
|
1048 |
" |
|
43 | 1049 |
Verbose := true. |
1050 |
JavaClassReader readFile:'/phys/ibm3/java/lib/java/lang/System.class' |
|
1 | 1051 |
" |
1052 |
||
1053 |
"Created: 15.4.1996 / 15:20:33 / cg" |
|
1054 |
"Modified: 15.4.1996 / 16:01:37 / cg" |
|
5 | 1055 |
! ! |
1056 |
||
1057 |
!JavaClassReader methodsFor:'file reading - fields'! |
|
1058 |
||
1059 |
readConstantValueAttributeFor:aField |
|
1060 |
|attribute_length constantvalue_index constantValue| |
|
1061 |
||
128 | 1062 |
attribute_length := inStream nextUnsignedLongMSB:msb. |
5 | 1063 |
|
128 | 1064 |
constantvalue_index := inStream nextUnsignedShortMSB:msb. |
5 | 1065 |
constantValue := constants at:constantvalue_index. |
1066 |
||
59 | 1067 |
aField constantValue:constantValue. |
1068 |
||
61 | 1069 |
Verbose ifTrue:[Transcript show:'constantValue: '; showCR:constantValue]. |
5 | 1070 |
^ true |
1071 |
||
1072 |
" |
|
1073 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1074 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
|
1075 |
" |
|
1076 |
||
1077 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
1078 |
"Created: 15.4.1996 / 15:40:17 / cg" |
|
1 | 1079 |
! |
1080 |
||
1081 |
readFieldInfofield |
|
5 | 1082 |
|access_flags name_index signature_index attributes_count field| |
1 | 1083 |
|
128 | 1084 |
access_flags := inStream nextUnsignedShortMSB:msb. |
1085 |
name_index := inStream nextUnsignedShortMSB:msb. |
|
1086 |
signature_index := inStream nextUnsignedShortMSB:msb. |
|
5 | 1087 |
|
1088 |
field := JavaField new. |
|
1089 |
field setAccessFlags:access_flags. |
|
1090 |
field setName:(constants at:name_index). |
|
1091 |
field setSignature:(constants at:signature_index). |
|
1092 |
||
128 | 1093 |
attributes_count := inStream nextUnsignedShortMSB:msb. |
1 | 1094 |
|
99 | 1095 |
Verbose ifTrue:[Transcript show:' field name: '; show:(constants at:name_index); |
252 | 1096 |
show:' access: '; show:access_flags; |
1097 |
show:' attrib_cnt: '; showCR:attributes_count]. |
|
99 | 1098 |
|
1 | 1099 |
1 to:attributes_count do:[:i | |
252 | 1100 |
self readAttributeFor:field. |
1 | 1101 |
]. |
1102 |
||
27 | 1103 |
^ field |
1104 |
||
1 | 1105 |
" |
1106 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1107 |
" |
|
1108 |
||
1109 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
1110 |
"Created: 15.4.1996 / 15:38:43 / cg" |
|
1111 |
! |
|
1112 |
||
1113 |
readFieldInfofields |
|
38 | 1114 |
|nFields fields| |
1 | 1115 |
|
1116 |
"/ |
|
38 | 1117 |
"/ get fieldInfos |
1 | 1118 |
"/ |
128 | 1119 |
nFields := inStream nextUnsignedShortMSB:msb. |
61 | 1120 |
Verbose ifTrue:[Transcript show:'fieldsCount = '; showCR:nFields]. |
1 | 1121 |
|
27 | 1122 |
fields := Array new:nFields. |
1123 |
||
1124 |
1 to:nFields do:[:i | |
|
252 | 1125 |
Verbose ifTrue:[Transcript show:'field: '; showCR:i]. |
1126 |
fields at:i put:(self readFieldInfofield) |
|
1 | 1127 |
]. |
38 | 1128 |
^ fields |
1 | 1129 |
|
1130 |
" |
|
1131 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1132 |
" |
|
1133 |
||
1134 |
"Created: 15.4.1996 / 15:34:41 / cg" |
|
1135 |
"Modified: 15.4.1996 / 15:35:28 / cg" |
|
5 | 1136 |
! ! |
1137 |
||
38 | 1138 |
!JavaClassReader methodsFor:'file reading - interfaces'! |
1139 |
||
1140 |
readInterfaces |
|
110 | 1141 |
|interfacesCount interface_index interface interfaces| |
38 | 1142 |
|
1143 |
"/ |
|
1144 |
"/ get interfaces |
|
1145 |
"/ |
|
128 | 1146 |
interfacesCount := inStream nextUnsignedShortMSB:msb. |
61 | 1147 |
Verbose ifTrue:[Transcript show:'interfacesCount = '; showCR:interfacesCount]. |
38 | 1148 |
|
1149 |
interfaces := Array new:interfacesCount. |
|
1150 |
||
1151 |
1 to:interfacesCount do:[:i | |
|
252 | 1152 |
Verbose ifTrue:[Transcript show:'interface: '; showCR:i]. |
1153 |
interface_index := inStream nextUnsignedShortMSB:msb. |
|
1154 |
interface := constants at:interface_index. |
|
38 | 1155 |
|
252 | 1156 |
interfaces at:i put:interface. |
38 | 1157 |
]. |
1158 |
^ interfaces |
|
1159 |
||
1160 |
" |
|
1161 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1162 |
" |
|
1163 |
||
1164 |
"Created: 15.4.1996 / 15:31:59 / cg" |
|
1165 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
1166 |
! ! |
|
1167 |
||
5 | 1168 |
!JavaClassReader methodsFor:'file reading - methods'! |
1169 |
||
1170 |
readCodeAttributeFor:aJavaMethod |
|
1171 |
|attribute_length max_stack max_locals code_length code |
|
9 | 1172 |
exception_table_length exception_table unknown1 unknown2| |
1 | 1173 |
|
128 | 1174 |
attribute_length := inStream nextUnsignedLongMSB:msb. |
1 | 1175 |
|
9 | 1176 |
|
61 | 1177 |
Verbose ifTrue:[Transcript show:'attribute_length: 0x'; showCR:(attribute_length printStringRadix:16)]. |
9 | 1178 |
|
99 | 1179 |
minorVsn > 2 ifTrue:[ |
252 | 1180 |
unknown1 := inStream nextByte. |
1181 |
max_stack := inStream nextByte. |
|
1182 |
max_locals := inStream nextUnsignedShortMSB:msb. |
|
1183 |
unknown2 := inStream nextUnsignedShortMSB:msb. |
|
1184 |
Verbose ifTrue:[Transcript show:'?1: '; showCR:unknown1]. |
|
1185 |
Verbose ifTrue:[Transcript show:'?2: '; showCR:unknown2]. |
|
39 | 1186 |
] ifFalse:[ |
252 | 1187 |
max_stack := inStream nextByte. |
1188 |
max_locals := inStream nextByte. |
|
9 | 1189 |
]. |
1190 |
||
128 | 1191 |
code_length := inStream nextUnsignedShortMSB:msb. |
61 | 1192 |
Verbose ifTrue:[Transcript show:'code_length: '; showCR:(code_length printStringRadix:16)]. |
1193 |
Verbose ifTrue:[Transcript show:'code at pos: '; showCR:inStream position]. |
|
38 | 1194 |
|
5 | 1195 |
code := ByteArray new:code_length. |
1196 |
inStream nextBytes:code_length into:code startingAt:1. |
|
1 | 1197 |
|
61 | 1198 |
Verbose ifTrue:[Transcript show:'method code:'; showCR:code.]. |
9 | 1199 |
|
128 | 1200 |
exception_table_length := inStream nextUnsignedShortMSB:msb. |
61 | 1201 |
Verbose ifTrue:[Transcript show:'exception_table_length: '; showCR:(exception_table_length printStringRadix:16)]. |
5 | 1202 |
exception_table_length ~~ 0 ifTrue:[ |
252 | 1203 |
Verbose ifTrue:[Transcript show:'exceptionTable length:'; showCR:exception_table_length.]. |
9 | 1204 |
|
252 | 1205 |
exception_table := Array new:exception_table_length. |
1206 |
1 to:exception_table_length do:[:i | |
|
1207 |
|start_pc end_pc handler_pc catch_type| |
|
1 | 1208 |
|
252 | 1209 |
start_pc := inStream nextUnsignedShortMSB:msb. |
1210 |
end_pc := inStream nextUnsignedShortMSB:msb. |
|
1211 |
handler_pc := inStream nextUnsignedShortMSB:msb. |
|
1212 |
catch_type := constants at:(inStream nextUnsignedShortMSB:msb). |
|
1213 |
exception_table at:i put:(JavaExceptionTableEntry |
|
1214 |
startPC:start_pc |
|
1215 |
endPC:end_pc |
|
1216 |
handlerPC:handler_pc |
|
1217 |
catchType:catch_type). |
|
1218 |
]. |
|
1219 |
aJavaMethod setExceptionHandlerTable:exception_table. |
|
1 | 1220 |
]. |
1221 |
||
29 | 1222 |
aJavaMethod |
252 | 1223 |
setCode:code |
1224 |
maxStack:max_stack |
|
1225 |
maxLocals:max_locals |
|
1226 |
u1:unknown1 |
|
1227 |
u2:unknown2. |
|
5 | 1228 |
|
1229 |
self readAttributesFor:aJavaMethod. |
|
1230 |
^ true |
|
1231 |
||
1 | 1232 |
" |
1233 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
5 | 1234 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/Alignable.class' |
1 | 1235 |
" |
1236 |
||
1237 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
5 | 1238 |
"Created: 15.4.1996 / 15:40:17 / cg" |
1239 |
! |
|
1240 |
||
83 | 1241 |
readExceptionsAttributeFor:aJavaMethod |
1242 |
|attribute_length exception_table_length exception_table| |
|
1243 |
||
128 | 1244 |
attribute_length := inStream nextUnsignedLongMSB:msb. |
83 | 1245 |
|
128 | 1246 |
exception_table_length := inStream nextUnsignedShortMSB:msb. |
83 | 1247 |
exception_table_length ~~ 0 ifTrue:[ |
252 | 1248 |
exception_table := Array new:exception_table_length. |
1249 |
1 to:exception_table_length do:[:i | |
|
1250 |
|idx ex| |
|
83 | 1251 |
|
252 | 1252 |
idx := inStream nextUnsignedShortMSB:msb. |
1253 |
ex := constants at:idx. |
|
1254 |
exception_table at:i put:ex. |
|
1255 |
]. |
|
83 | 1256 |
]. |
1257 |
||
1258 |
Verbose ifTrue:[Transcript showCR:'method has an exceptionTable']. |
|
1259 |
||
1260 |
aJavaMethod setExceptionTable:exception_table. |
|
1261 |
^ true |
|
1262 |
||
1263 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
1264 |
"Created: 15.4.1996 / 15:40:17 / cg" |
|
1265 |
! |
|
1266 |
||
5 | 1267 |
readLineNumberTableAttributeFor:aJavaMethod |
1268 |
|attribute_length line_number_table_length line_number_table| |
|
1269 |
||
128 | 1270 |
attribute_length := inStream nextUnsignedLongMSB:msb. |
5 | 1271 |
|
128 | 1272 |
line_number_table_length := inStream nextUnsignedShortMSB:msb. |
5 | 1273 |
line_number_table_length ~~ 0 ifTrue:[ |
252 | 1274 |
line_number_table := Array new:line_number_table_length. |
1275 |
1 to:line_number_table_length do:[:i | |
|
1276 |
|start_pc line_number| |
|
5 | 1277 |
|
252 | 1278 |
start_pc := inStream nextUnsignedShortMSB:msb. |
1279 |
line_number := inStream nextUnsignedShortMSB:msb. |
|
1280 |
line_number_table at:i put:(start_pc -> line_number). |
|
1281 |
]. |
|
5 | 1282 |
]. |
1283 |
||
61 | 1284 |
Verbose ifTrue:[Transcript showCR:'method has a lineNumberTable']. |
9 | 1285 |
|
5 | 1286 |
aJavaMethod setLineNumberTable:line_number_table. |
1287 |
^ true |
|
1288 |
||
1289 |
" |
|
1290 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1291 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/java/lang/Boolean.class' |
|
1292 |
" |
|
1293 |
||
1294 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
1295 |
"Created: 15.4.1996 / 15:40:17 / cg" |
|
1 | 1296 |
! |
1297 |
||
50 | 1298 |
readLocalVariableTableAttributeFor:aJavaMethod |
1299 |
|attribute_length local_variable_table_length local_variable_table| |
|
1300 |
||
128 | 1301 |
attribute_length := inStream nextUnsignedLongMSB:msb. |
50 | 1302 |
|
128 | 1303 |
local_variable_table_length := inStream nextUnsignedShortMSB:msb. |
50 | 1304 |
local_variable_table_length ~~ 0 ifTrue:[ |
252 | 1305 |
local_variable_table := JavaLocalVariableTable new:local_variable_table_length. |
1306 |
1 to:local_variable_table_length do:[:i | |
|
1307 |
|start_pc length name_index sig_index slot name signature| |
|
50 | 1308 |
|
252 | 1309 |
start_pc := inStream nextUnsignedShortMSB:msb. |
1310 |
length := inStream nextUnsignedShortMSB:msb. |
|
1311 |
name_index := inStream nextUnsignedShortMSB:msb. |
|
1312 |
name := constants at:name_index. |
|
1313 |
sig_index := inStream nextUnsignedShortMSB:msb. |
|
1314 |
signature := constants at:sig_index. |
|
1315 |
slot := inStream nextUnsignedShortMSB:msb. |
|
50 | 1316 |
|
252 | 1317 |
local_variable_table at:i put:(JavaLocalVariableTableEntry new |
1318 |
startPC:start_pc |
|
1319 |
length:length |
|
1320 |
name:name |
|
1321 |
signature:signature |
|
1322 |
slot:slot) |
|
1323 |
]. |
|
50 | 1324 |
]. |
1325 |
||
61 | 1326 |
Verbose ifTrue:[Transcript showCR:'method has a localvariableTable']. |
50 | 1327 |
|
1328 |
aJavaMethod setLocalVariableTable:local_variable_table. |
|
1329 |
^ true |
|
1330 |
||
1331 |
" |
|
1332 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1333 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/java/lang/Boolean.class' |
|
1334 |
" |
|
1335 |
||
1336 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
1337 |
"Created: 15.4.1996 / 15:40:17 / cg" |
|
1338 |
! |
|
1339 |
||
38 | 1340 |
readMethodFor:aJavaClass |
9 | 1341 |
|m access_flags name_index name signature_index signature| |
1 | 1342 |
|
1343 |
"/ |
|
1344 |
"/ get a method |
|
1345 |
"/ |
|
128 | 1346 |
access_flags := inStream nextUnsignedShortMSB:msb. |
1347 |
name_index := inStream nextUnsignedShortMSB:msb. |
|
1348 |
signature_index := inStream nextUnsignedShortMSB:msb. |
|
1 | 1349 |
|
5 | 1350 |
name := constants at:name_index. |
1351 |
signature := constants at:signature_index. |
|
9 | 1352 |
|
61 | 1353 |
Verbose ifTrue:[Transcript show:'method name:'; showCR:name. |
252 | 1354 |
Transcript show:'signature:'; showCR:signature.]. |
9 | 1355 |
|
5 | 1356 |
m := JavaMethod new. |
1357 |
m setAccessFlags:access_flags. |
|
252 | 1358 |
m setName:name signature:signature. |
38 | 1359 |
m setJavaClass:aJavaClass. |
5 | 1360 |
|
1361 |
self readAttributesFor:m. |
|
1362 |
||
38 | 1363 |
aJavaClass addMethod:m name:name signature:signature. |
1 | 1364 |
|
1365 |
" |
|
1366 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1367 |
" |
|
1368 |
||
1369 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
1370 |
"Created: 15.4.1996 / 16:48:49 / cg" |
|
1371 |
! |
|
1372 |
||
38 | 1373 |
readMethodsFor:aJavaClass |
1 | 1374 |
|methodsCount method| |
1375 |
||
1376 |
||
1377 |
"/ |
|
1378 |
"/ get methods |
|
1379 |
"/ |
|
128 | 1380 |
methodsCount := inStream nextUnsignedShortMSB:msb. |
61 | 1381 |
Verbose ifTrue:[Transcript show:'methodsCount = '; showCR:methodsCount]. |
1 | 1382 |
|
1383 |
1 to:methodsCount do:[:i | |
|
252 | 1384 |
Verbose ifTrue:[Transcript show:'method: '; showCR:i]. |
1385 |
method := self readMethodFor:aJavaClass |
|
1 | 1386 |
]. |
1387 |
||
1388 |
" |
|
1389 |
JavaClassReader readFile:'/phys/ibm3/hotjava/classes/browser/AddButton.class' |
|
1390 |
" |
|
1391 |
||
1392 |
"Modified: 15.4.1996 / 15:33:28 / cg" |
|
1393 |
"Created: 15.4.1996 / 16:46:30 / cg" |
|
1394 |
! ! |
|
1395 |
||
135 | 1396 |
!JavaClassReader class methodsFor:'documentation'! |
1 | 1397 |
|
1398 |
version |
|
255 | 1399 |
^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaClassReader.st,v 1.50 1998/01/12 14:24:23 cg Exp $' |
1 | 1400 |
! ! |
1401 |
JavaClassReader initialize! |