author | hlopkmar |
Thu, 12 Apr 2012 08:21:09 +0000 | |
branch | jk_new_structure |
changeset 1469 | 7ff01bef4a36 |
parent 1393 | dc859d4870f1 |
child 1649 | 0af82006c0b2 |
permissions | -rw-r--r-- |
877 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1152 | 3 |
|
1155 | 4 |
New code and modifications done at SWING Research Group [1]: |
1152 | 5 |
|
877 | 6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
7 |
SWING Research Group, Czech Technical University in Prague |
|
8 |
||
9 |
This software is furnished under a license and may be used |
|
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
15 |
||
1155 | 16 |
[1] Code written at SWING Research Group contains a signature |
17 |
of one of the above copright owners. For exact set of such code, |
|
18 |
see the differences between this version and version stx:libjava |
|
1152 | 19 |
as of 1.9.2010 |
877 | 20 |
" |
758 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
23 |
Object subclass:#JavaResolver |
|
761 | 24 |
instanceVariableNames:'exceptionThrower' |
758 | 25 |
classVariableNames:'uniqueInstance' |
26 |
poolDictionaries:'' |
|
27 |
category:'Languages-Java-Reader-Support-new' |
|
28 |
! |
|
29 |
||
877 | 30 |
!JavaResolver class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1152 | 35 |
|
1155 | 36 |
New code and modifications done at SWING Research Group [1]: |
1152 | 37 |
|
877 | 38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
39 |
SWING Research Group, Czech Technical University in Prague |
|
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
1155 | 48 |
[1] Code written at SWING Research Group contains a signature |
49 |
of one of the above copright owners. For exact set of such code, |
|
50 |
see the differences between this version and version stx:libjava |
|
1152 | 51 |
as of 1.9.2010 |
877 | 52 |
|
53 |
" |
|
54 |
! ! |
|
758 | 55 |
|
56 |
!JavaResolver class methodsFor:'initialization'! |
|
57 |
||
58 |
initialize |
|
59 |
uniqueInstance := JavaResolver new. |
|
761 | 60 |
uniqueInstance exceptionThrower: JavaVM. |
61 |
||
758 | 62 |
"/has methods at: and at: put: |
759
66d28d2fa62e
JavaResolver: fixed bug in JavaResolver class>>#initialize
vranyj1
parents:
758
diff
changeset
|
63 |
"/uniqueInstance resolvedClasses: Java. |
758 | 64 |
|
759
66d28d2fa62e
JavaResolver: fixed bug in JavaResolver class>>#initialize
vranyj1
parents:
758
diff
changeset
|
65 |
"Modified: / 10-04-2011 / 10:23:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
761 | 66 |
"Modified: / 13-04-2011 / 14:07:35 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
758 | 67 |
! ! |
68 |
||
69 |
!JavaResolver class methodsFor:'instance creation'! |
|
70 |
||
71 |
uniqueInstance |
|
761 | 72 |
^uniqueInstance. |
758 | 73 |
|
74 |
"Created: / 08-04-2011 / 17:36:37 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
761 | 75 |
"Modified: / 11-04-2011 / 19:06:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
76 |
! ! |
|
77 |
||
78 |
!JavaResolver methodsFor:'accessing'! |
|
79 |
||
80 |
exceptionThrower |
|
81 |
^ exceptionThrower |
|
82 |
! |
|
83 |
||
84 |
exceptionThrower:something |
|
85 |
exceptionThrower := something. |
|
758 | 86 |
! ! |
87 |
||
88 |
!JavaResolver methodsFor:'class resolving'! |
|
89 |
||
817
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
90 |
checkIfPrimitiveArrayRef: aJavaClassRef andWrap: result |
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
91 |
|
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
92 |
^ (JavaDescriptor readFromString: aJavaClassRef name) javaClass. |
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
93 |
|
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
94 |
"Created: / 23-05-2011 / 21:12:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
95 |
! |
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
96 |
|
912
e651488f5741
Many fixes in reflection, expecially for generic types support
vranyj1
parents:
908
diff
changeset
|
97 |
resolveClassIndentifiedByRef: aJavaClassRef init: doInit |
1014 | 98 |
"marcel is back working harder then ever :)" |
1225
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
99 |
|
992 | 100 |
| result | |
761 | 101 |
self validateClassRef: aJavaClassRef. |
1225
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
102 |
JavaClassReader classLoaderQuerySignal answer: (aJavaClassRef classLoader) |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
103 |
do: [ |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
104 |
result := self lookupClassIfAlreadyResolved: aJavaClassRef javaClassName. |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
105 |
|
1041 | 106 |
"/ result notNil ifTrue:[ |
107 |
"/ "/wrap result with array(s) if needed and return it |
|
108 |
"/ "/FIXME: Marcel, can you have a look? Is that correct? |
|
109 |
"/ ^self checkIfArrayRef: aJavaClassRef andWrap: result. |
|
110 |
"/ ]. |
|
1225
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
111 |
]. |
758 | 112 |
" |
113 |
To resolve an unresolved symbolic reference from D to a class or interface C denoted by N, |
|
114 |
the following steps are performed: |
|
115 |
The defining class loader of D is used to create a class or interface denoted by N. |
|
116 |
This class or interface is C. Any exception that can be thrown as a result of failure |
|
117 |
of class or interface creation can thus be thrown as a result of failure of class and |
|
118 |
interface resolution. The details of the process are given in Section 5.3. |
|
119 |
" |
|
1225
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
120 |
result isNil ifTrue: [ |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
121 |
JavaClassReader classLoaderQuerySignal answer: (aJavaClassRef classLoader) |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
122 |
do: [ |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
123 |
"#loadUnresolvedClass: wraps the class!!!!!!" |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
124 |
result := self loadUnresolvedClass: aJavaClassRef. |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
125 |
((aJavaClassRef name first == $[) and: [ result isJavaArrayClass not ]) ifTrue: [ |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
126 |
self breakPoint: #jv. |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
127 |
] |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
128 |
]. |
1368 | 129 |
] ifFalse: [ |
130 |
result := self checkIfArrayRef: aJavaClassRef andWrap: result. |
|
131 |
]. |
|
1225
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
132 |
result isNil ifTrue: [ self breakPoint: #mh ]. |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
133 |
result isJavaPrimitiveType ifTrue: [ |
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
134 |
^ self checkIfPrimitiveArrayRef: aJavaClassRef andWrap: result |
883 | 135 |
]. |
1225
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
136 |
(doInit and: [ result isJavaArrayClass not ]) ifTrue: [ result classInit ]. |
758 | 137 |
" |
138 |
If C is an array class and its element type is a reference type, then the symbolic reference |
|
139 |
to the class or interface representing the element type is resolved by invoking the algorithm |
|
1225
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
140 |
in Section 5.4.3.1 recursively.""Finally, access permissions to C are checked: |
761 | 141 |
If C is not accessible (5.4.4) to D, class or interface resolution throws an IllegalAccessError. |
758 | 142 |
This condition can occur, for example, if C is a class that was originally declared to be |
143 |
public but was changed to be non-public after D was compiled. |
|
144 |
||
145 |
If steps 1 and 2 succeed but step 3 fails, C is still valid and usable. Nevertheless, resolution |
|
1238 | 146 |
fails, and D is prohibited from accessing C." |
147 |
||
148 |
"JV@2011-08-10: HACK FOR SAXON DEMO!!!!!!" |
|
149 |
"(self checkPermissionsFrom: aJavaClassRef owner to: result)" |
|
150 |
||
151 |
"JV@2011-12-07: HACK FOR TOMCAT DEMO :-))" |
|
152 |
OperatingSystem getLoginName = 'm' ifTrue:[ |
|
153 |
(self checkPermissionsFrom: aJavaClassRef owner to: result) ifTrue: [ ^ result ] ifFalse: [ self throwIllegalAccessError ]. |
|
154 |
] ifFalse:[ |
|
155 |
^result |
|
156 |
]. |
|
758 | 157 |
|
761 | 158 |
"Created: / 11-04-2011 / 19:07:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
912
e651488f5741
Many fixes in reflection, expecially for generic types support
vranyj1
parents:
908
diff
changeset
|
159 |
"Created: / 12-08-2011 / 22:19:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1014 | 160 |
"Modified (comment): / 03-10-2011 / 23:03:01 / m" |
1225
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
161 |
"Modified: / 06-12-2011 / 16:26:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1238 | 162 |
"Modified: / 07-12-2011 / 21:30:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1368 | 163 |
"Modified (format): / 18-02-2012 / 19:22:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
758 | 164 |
! ! |
165 |
||
166 |
!JavaResolver methodsFor:'class resolving helpers'! |
|
167 |
||
1041 | 168 |
checkIfArrayRef: aJavaClassRef andWrap: nonArrayClass |
169 |
||
170 |
"/wrap result with array(s) if needed and return it |
|
171 |
| class| |
|
172 |
class := nonArrayClass. |
|
173 |
aJavaClassRef name do:[:c| |
|
174 |
c ~~ $[ ifTrue:[ ^ class ]. |
|
175 |
class := class javaArrayClass. |
|
176 |
]. |
|
177 |
^class |
|
761 | 178 |
|
179 |
"Modified: / 11-04-2011 / 19:31:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1041 | 180 |
"Modified: / 23-10-2011 / 23:46:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
761 | 181 |
! |
182 |
||
183 |
checkPermissionsFrom: refOwner to: resolvedClass |
|
1469 | 184 |
OperatingSystem getLoginName = 'm' ifFalse: [ ^ true ]. |
1275 | 185 |
(JavaDescriptor isJavaPrimitiveArrayName: resolvedClass javaName) ifTrue: [ |
186 |
^ true |
|
187 |
]. |
|
761 | 188 |
resolvedClass isPublic ifTrue: [ ^ true ]. |
1225
30600ca8173c
ok now we enabled permissions and groovy maybe does not work :/
hlopkmar
parents:
1224
diff
changeset
|
189 |
resolvedClass classLoader = refOwner classLoader ifFalse: [ ^ false. ]. |
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
190 |
refOwner javaPackage = resolvedClass javaPackage ifTrue: [ ^ true ]. |
1224
b8a0cc35baaa
permission testing enabled again, groovy works => we are awesome
hlopkmar
parents:
1155
diff
changeset
|
191 |
|
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
192 |
"/a little bit too verbose here just so it's clear what's in query |
1224
b8a0cc35baaa
permission testing enabled again, groovy works => we are awesome
hlopkmar
parents:
1155
diff
changeset
|
193 |
|
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
194 |
JavaVM privilegedAccessQuery query ifTrue: [ ^ true ] ifFalse: [ ^ false ]. |
761 | 195 |
|
196 |
"Created: / 11-04-2011 / 19:35:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
197 |
"Modified (format): / 09-10-2011 / 17:27:30 / m" |
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
198 |
"Modified (comment): / 09-10-2011 / 23:11:54 / Marcel Hlopko <hlopik@gmail.com>" |
1469 | 199 |
"Modified (format): / 12-04-2012 / 10:12:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
761 | 200 |
! |
201 |
||
202 |
loadUnresolvedClass: aJavaClassRef |
|
1393 | 203 |
| nm cls i | |
812
62e917825364
- JavaDescriptor, JavaResolver, JavaArray: fixes for primitive and array types
vranyj1
parents:
809
diff
changeset
|
204 |
|
1026
5badd1d31864
introduced JavaClassRegistry, taken loading responsibilities from JavaClassReader, got rid of stringConstants and started using StringRefs.. Bugs very likely :)
hlopkmar
parents:
1021
diff
changeset
|
205 |
nm := aJavaClassRef name. |
1393 | 206 |
nm size == 1 ifTrue:[ |
207 |
JavaDescriptor baseTypes at: nm first ifPresent: [:cls | ^ cls ] |
|
208 |
]. |
|
209 |
"Note, that JavaVM>>classForName: itself deals with class loaders. |
|
992 | 210 |
The caller of me should set one using code like: |
1026
5badd1d31864
introduced JavaClassRegistry, taken loading responsibilities from JavaClassReader, got rid of stringConstants and started using StringRefs.. Bugs very likely :)
hlopkmar
parents:
1021
diff
changeset
|
211 |
|
1393 | 212 |
JavaClassReader classLoaderQuerySignal answer: loader do:[call me] |
992 | 213 |
" |
1393 | 214 |
cls := JavaVM classForName: nm. |
215 |
(nm startsWith:$[) ifTrue:[ |
|
216 |
i := 1. |
|
217 |
[ (nm at:i) == $[ ] whileTrue:[ |
|
218 |
cls := cls javaArrayClass. |
|
219 |
i := i + 1. |
|
220 |
]. |
|
221 |
self assert: (nm at:i) == $L. |
|
222 |
]. |
|
223 |
||
224 |
^cls. |
|
761 | 225 |
|
226 |
"Created: / 11-04-2011 / 19:27:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
817
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
227 |
"Modified: / 23-05-2011 / 21:06:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1393 | 228 |
"Modified: / 29-02-2012 / 09:20:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
761 | 229 |
! |
230 |
||
231 |
lookupClassIfAlreadyResolved: javaClassName |
|
1036 | 232 |
^ JavaVM classNamed: javaClassName |
761 | 233 |
|
883 | 234 |
"Modified: / 06-08-2011 / 16:44:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1036 | 235 |
"Modified: / 21-10-2011 / 13:40:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
761 | 236 |
! |
237 |
||
238 |
validateClassRef: aJavaClassRef |
|
817
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
239 |
self assert: aJavaClassRef isJavaRef. |
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
240 |
self assert: aJavaClassRef isJavaClassRef . |
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
241 |
|
3f2405c6ef88
its nice to work after jv :) after writing tests I surprisedly realized, that he already implemented primitives and primitive arrays in JavaClassRef2 :)
hlopkmar
parents:
816
diff
changeset
|
242 |
"Modified: / 23-05-2011 / 21:04:00 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
758 | 243 |
! ! |
244 |
||
761 | 245 |
!JavaResolver methodsFor:'common helpers'! |
246 |
||
796
9b3e00dd3196
Small fix, so JavaFields have their javaClass always set.
hlopkmar
parents:
784
diff
changeset
|
247 |
checkPermissionsForMethodOrField: aJavaMethodOrField from: accessingJavaClass to: resolvedJavaClass |
761 | 248 |
"A class or interface C is accessible to a class or interface D if |
249 |
and only if either of the following conditions are true: |
|
250 |
C is public. |
|
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
251 |
C and D are members of the same runtime package (§5.3). |
761 | 252 |
A field or method R is accessible to a class or interface D if and only |
253 |
if any of the following conditions is true: |
|
254 |
R is public. |
|
255 |
R is protected and is declared in a class C, and D is either a subclass |
|
256 |
of C or C itself. |
|
257 |
R is either protected or package private (that is, neither public nor |
|
258 |
protected nor private), and is declared by a class in the same runtime |
|
259 |
package as D. |
|
260 |
R is private and is declared in D. |
|
261 |
This discussion of access control omits a related restriction on the target |
|
262 |
of a protected field access or method invocation (the target must be of class |
|
263 |
D or a subtype of D). That requirement is checked as part of the verification |
|
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
264 |
process (§5.4.1); it is not part of link-time access control." |
761 | 265 |
|
846 | 266 |
(self checkPermissionsFrom: accessingJavaClass to: resolvedJavaClass) ifFalse: [ |
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
267 |
JavaVM privilegedAccessQuery query ifTrue: [ ^ true ]. |
846 | 268 |
^ false |
269 |
]. |
|
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
270 |
aJavaMethodOrField isPublic ifTrue: [ ^ true ]. |
846 | 271 |
((aJavaMethodOrField isProtected |
272 |
and: [ |
|
273 |
resolvedJavaClass javaComponentClass |
|
274 |
equalsOrIsSubclassOf: aJavaMethodOrField javaClass |
|
275 |
]) |
|
276 |
and: [ |
|
277 |
accessingJavaClass javaComponentClass |
|
278 |
equalsOrIsSubclassOf: aJavaMethodOrField javaClass |
|
279 |
]) |
|
821
560f60ad3a2a
fixed (hopefully:) bug in permissions (new resolving)
hlopkmar
parents:
819
diff
changeset
|
280 |
ifTrue: [ ^ true ]. |
796
9b3e00dd3196
Small fix, so JavaFields have their javaClass always set.
hlopkmar
parents:
784
diff
changeset
|
281 |
((aJavaMethodOrField isPrivate not |
761 | 282 |
and: [ resolvedJavaClass javaPackage = accessingJavaClass javaPackage ]) |
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
283 |
and: [ |
1224
b8a0cc35baaa
permission testing enabled again, groovy works => we are awesome
hlopkmar
parents:
1155
diff
changeset
|
284 |
resolvedJavaClass classLoader = accessingJavaClass classLoader |
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
285 |
]) |
761 | 286 |
ifTrue: [ ^ true ]. |
796
9b3e00dd3196
Small fix, so JavaFields have their javaClass always set.
hlopkmar
parents:
784
diff
changeset
|
287 |
(aJavaMethodOrField isPrivate |
846 | 288 |
and: [ aJavaMethodOrField javaClass name = accessingJavaClass name ]) |
821
560f60ad3a2a
fixed (hopefully:) bug in permissions (new resolving)
hlopkmar
parents:
819
diff
changeset
|
289 |
ifTrue: [ ^ true ]. |
1224
b8a0cc35baaa
permission testing enabled again, groovy works => we are awesome
hlopkmar
parents:
1155
diff
changeset
|
290 |
|
b8a0cc35baaa
permission testing enabled again, groovy works => we are awesome
hlopkmar
parents:
1155
diff
changeset
|
291 |
"/a little bit too verbose here just so it's clear what's in query |
b8a0cc35baaa
permission testing enabled again, groovy works => we are awesome
hlopkmar
parents:
1155
diff
changeset
|
292 |
|
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
293 |
JavaVM privilegedAccessQuery query ifTrue: [ ^ true ] ifFalse: [ ^ false ]. |
761 | 294 |
|
295 |
"Created: / 14-04-2011 / 14:19:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1016
2b20730b8717
work on ticket #28(illegal access after evaluating expresion in workspace).
hlopkmar
parents:
1014
diff
changeset
|
296 |
"Modified (comment): / 09-10-2011 / 23:12:48 / Marcel Hlopko <hlopik@gmail.com>" |
1224
b8a0cc35baaa
permission testing enabled again, groovy works => we are awesome
hlopkmar
parents:
1155
diff
changeset
|
297 |
"Modified: / 06-12-2011 / 16:19:35 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
761 | 298 |
! ! |
299 |
||
300 |
!JavaResolver methodsFor:'exceptions'! |
|
301 |
||
302 |
throwAbstractMethodError |
|
303 |
exceptionThrower throwAbstractMethodError. |
|
304 |
||
305 |
"Created: / 11-04-2011 / 20:19:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
306 |
"Modified: / 13-04-2011 / 14:07:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
307 |
! |
|
308 |
||
309 |
throwIllegalAccessError |
|
310 |
exceptionThrower throwIllegalAccessError. |
|
311 |
||
312 |
"Created: / 11-04-2011 / 19:39:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
313 |
"Modified: / 13-04-2011 / 23:06:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
314 |
! |
|
315 |
||
316 |
throwIncompatibleClassChangeError |
|
317 |
exceptionThrower throwIncompatibleClassChangeError. |
|
318 |
||
319 |
"Created: / 11-04-2011 / 20:02:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
320 |
"Modified: / 13-04-2011 / 14:07:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
321 |
! |
|
322 |
||
323 |
throwNoSuchFieldException |
|
324 |
exceptionThrower throwNoSuchFieldException. |
|
325 |
||
326 |
"Created: / 11-04-2011 / 21:35:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
327 |
"Modified: / 13-04-2011 / 14:07:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
328 |
! |
|
329 |
||
330 |
throwNoSuchMethodError |
|
331 |
exceptionThrower throwNoSuchMethodError. |
|
332 |
||
333 |
"Created: / 11-04-2011 / 20:19:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
334 |
"Modified: / 13-04-2011 / 14:08:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
335 |
! ! |
|
336 |
||
337 |
!JavaResolver methodsFor:'field resolving'! |
|
338 |
||
339 |
resolveFieldIndentifiedByRef: aJavaFieldRef |
|
340 |
| result class | |
|
341 |
||
342 |
self validateFieldRef: aJavaFieldRef. |
|
343 |
result := self lookupFieldIfAlreadyResolved: aJavaFieldRef. |
|
344 |
result ifNotNil: [ ^ result ]. |
|
1392 | 345 |
class := aJavaFieldRef classRef resolve: false. |
761 | 346 |
class ifNil: [ self halt: 'should not happen - tell mh' ]. |
347 |
result := class lookupFieldByNameAndType: aJavaFieldRef nameAndType. |
|
348 |
result ifNil: [ self throwNoSuchFieldException ]. |
|
349 |
(self |
|
350 |
checkPermissionsForField: result |
|
351 |
from: aJavaFieldRef classRef owner |
|
352 |
to: class) ifFalse: [ self throwIllegalAccessError ]. |
|
353 |
^ result. |
|
354 |
||
355 |
" |
|
356 |
To resolve an unresolved symbolic reference from D to a field in a class |
|
357 |
or interface C, the symbolic reference to C given by the field reference |
|
358 |
must first be resolved (§5.4.3.1). Therefore, any exception that can be |
|
359 |
thrown as a result of failure of resolution of a class or interface reference |
|
360 |
can be thrown as a result of failure of field resolution. If the reference |
|
361 |
to C can be successfully resolved, an exception relating to the failure of |
|
362 |
resolution of the field reference itself can be thrown. |
|
363 |
When resolving a field reference, field resolution first attempts to look |
|
364 |
up the referenced field in C and its superclasses: |
|
365 |
||
366 |
If C declares a field with the name and descriptor specified by the field |
|
367 |
reference, field lookup succeeds. The declared field is the result of the |
|
368 |
field lookup. |
|
369 |
||
370 |
Otherwise, field lookup is applied recursively to the direct superinterfaces |
|
371 |
of the specified class or interface C. |
|
372 |
||
373 |
Otherwise, if C has a superclass S, field lookup is applied recursively to S. |
|
374 |
||
375 |
Otherwise, field lookup fails. |
|
376 |
If field lookup fails, field resolution throws a NoSuchFieldError. Otherwise, |
|
377 |
if field lookup succeeds but the referenced field is not accessible (§5.4.4) |
|
378 |
to D, field resolution throws an IllegalAccessError. |
|
379 |
Otherwise, let <E, L1> be the class or interface in which the referenced |
|
380 |
field is actually declared and let L2 be the defining loader of D. Let T be |
|
381 |
the name of the type of the referenced field. The Java virtual machine must |
|
382 |
impose the loading constraint that TL1=TL2(§5.3.4)." |
|
383 |
||
384 |
"Created: / 11-04-2011 / 21:15:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
385 |
"Modified: / 13-04-2011 / 11:57:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
386 |
! |
|
387 |
||
388 |
resolveStaticFieldIndentifiedByRef: aJavaFieldRef |
|
389 |
| result class | |
|
390 |
self validateFieldRef: aJavaFieldRef. |
|
391 |
result := self lookupFieldIfAlreadyResolved: aJavaFieldRef. |
|
392 |
result ifNotNil: [ ^ result ]. |
|
1392 | 393 |
class := aJavaFieldRef classRef resolve: false. |
761 | 394 |
class ifNil: [ self halt: 'should not happen - tell mh' ]. |
395 |
result := class lookupStaticFieldByNameAndType: aJavaFieldRef nameAndType. |
|
396 |
result ifNil: [ self throwNoSuchFieldException ]. |
|
397 |
(self |
|
398 |
checkPermissionsForField: result |
|
399 |
from: aJavaFieldRef classRef owner |
|
400 |
to: class) ifFalse: [ self throwIllegalAccessError ]. |
|
401 |
^ result. |
|
402 |
||
403 |
" |
|
404 |
To resolve an unresolved symbolic reference from D to a field in a class |
|
405 |
or interface C, the symbolic reference to C given by the field reference |
|
406 |
must first be resolved (§5.4.3.1). Therefore, any exception that can be |
|
407 |
thrown as a result of failure of resolution of a class or interface reference |
|
408 |
can be thrown as a result of failure of field resolution. If the reference |
|
409 |
to C can be successfully resolved, an exception relating to the failure of |
|
410 |
resolution of the field reference itself can be thrown. |
|
411 |
When resolving a field reference, field resolution first attempts to look |
|
412 |
up the referenced field in C and its superclasses: |
|
413 |
||
414 |
If C declares a field with the name and descriptor specified by the field |
|
415 |
reference, field lookup succeeds. The declared field is the result of the |
|
416 |
field lookup. |
|
417 |
||
418 |
Otherwise, field lookup is applied recursively to the direct superinterfaces |
|
419 |
of the specified class or interface C. |
|
420 |
||
421 |
Otherwise, if C has a superclass S, field lookup is applied recursively to S. |
|
422 |
||
423 |
Otherwise, field lookup fails. |
|
424 |
If field lookup fails, field resolution throws a NoSuchFieldError. Otherwise, |
|
425 |
if field lookup succeeds but the referenced field is not accessible (§5.4.4) |
|
426 |
to D, field resolution throws an IllegalAccessError. |
|
427 |
Otherwise, let <E, L1> be the class or interface in which the referenced |
|
428 |
field is actually declared and let L2 be the defining loader of D. Let T be |
|
429 |
the name of the type of the referenced field. The Java virtual machine must |
|
430 |
impose the loading constraint that TL1=TL2(§5.3.4)." |
|
431 |
||
432 |
"Created: / 28-04-2011 / 22:31:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
433 |
! ! |
|
434 |
||
435 |
!JavaResolver methodsFor:'field resolving helpers'! |
|
436 |
||
437 |
checkPermissionsForField: aJavaField from: accessingJavaClass to: resolvedJavaClass |
|
1469 | 438 |
OperatingSystem getLoginName = 'm' ifFalse: [ ^ true ]. |
761 | 439 |
^ self |
1469 | 440 |
checkPermissionsForMethodOrField: aJavaField |
441 |
from: accessingJavaClass |
|
761 | 442 |
to: resolvedJavaClass. |
443 |
||
444 |
"Created: / 11-04-2011 / 21:46:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1469 | 445 |
"Modified (format): / 12-04-2012 / 10:14:40 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
761 | 446 |
! |
447 |
||
448 |
lookupFieldIfAlreadyResolved: aJavaFieldRef |
|
449 |
^ nil. |
|
450 |
||
451 |
"Created: / 11-04-2011 / 21:16:45 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
452 |
"Modified: / 13-04-2011 / 11:57:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
453 |
! |
|
454 |
||
455 |
validateFieldRef: aJavaFieldRef |
|
456 |
aJavaFieldRef isJavaRef ifFalse:[self halt:'I expected Java Ref']. |
|
457 |
aJavaFieldRef isJavaFieldRef ifFalse:[self halt:'I expected Java Field Ref']. |
|
458 |
||
459 |
"Created: / 11-04-2011 / 21:16:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
460 |
! ! |
|
461 |
||
462 |
!JavaResolver methodsFor:'interface method resolving'! |
|
463 |
||
464 |
resolveInterfaceMethodIdentifiedByRef: aJavaInterfaceMethodRef |
|
465 |
| result class | |
|
466 |
||
467 |
self validateInterfaceMethodRef: aJavaInterfaceMethodRef. |
|
468 |
result := self |
|
469 |
lookupInterfaceMethodIfAlreadyResolved: aJavaInterfaceMethodRef. |
|
470 |
result ifNotNil: [ ^ result ]. |
|
1392 | 471 |
class := aJavaInterfaceMethodRef classRef resolve: false. |
761 | 472 |
class ifNil: [ self halt: 'should not happen - tell mh' ]. |
816
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
473 |
class isInterface ifFalse: [ self throwIncompatibleClassChangeError ]. |
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
474 |
result := class |
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
475 |
lookupMethodByNameAndType: aJavaInterfaceMethodRef nameAndType. |
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
476 |
result ifNil: [ self throwNoSuchMethodError ]. |
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
477 |
(self |
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
478 |
checkPermissionsForMethod: result |
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
479 |
from: aJavaInterfaceMethodRef classRef owner |
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
480 |
to: class) ifFalse: [ self throwIllegalAccessError ]. |
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
481 |
^ result. |
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
482 |
" |
761 | 483 |
To resolve an unresolved symbolic reference from D to an interface method in an |
484 |
interface C, the symbolic reference to C given by the interface method reference is |
|
485 |
first resolved (§5.4.3.1). Therefore, any exceptions that can be thrown as a result |
|
486 |
of failure of resolution of an interface reference can be thrown as a result of |
|
487 |
failure of interface method resolution. If the reference to C can be successfully |
|
488 |
resolved, exceptions relating to the resolution of the interface method reference |
|
489 |
itself can be thrown. |
|
490 |
When resolving an interface method reference: |
|
816
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
491 |
|
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
492 |
If C is not an interface, interface method resolution throws an IncompatibleClassChangeError.""Otherwise, if the referenced method does not have the same name and descriptor as |
761 | 493 |
a method in C or in one of the superinterfaces of C, or in class Object, interface |
494 |
method resolution throws a NoSuchMethodError. |
|
495 |
Otherwise, let <E, L1> be the interface in which the referenced interface method is |
|
496 |
actually declared and let L2 be the defining loader of D. Let T0 be the name of |
|
497 |
the type returned by the referenced method, and let T1, ..., Tn be the names of the |
|
498 |
argument types of the referenced method. The Java virtual machine must impose the |
|
499 |
loading constraints TiL1 = TiL2 for i = 0 to n (§5.3.4)." |
|
500 |
||
816
4e3072021201
all tests fixed.. updated interfaceMethodRef to checkPermissions (which were not checked until now ehm)
hlopkmar
parents:
814
diff
changeset
|
501 |
"Modified: / 23-05-2011 / 17:56:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
761 | 502 |
! ! |
503 |
||
504 |
!JavaResolver methodsFor:'interface method resolving helpers'! |
|
505 |
||
506 |
lookupInterfaceMethodIfAlreadyResolved: aJavaInterfaceMethodRef |
|
507 |
^ nil. |
|
508 |
||
509 |
"Created: / 13-04-2011 / 11:53:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
510 |
! |
|
511 |
||
512 |
validateInterfaceMethodRef: aJavaInterfaceMethodRef |
|
513 |
aJavaInterfaceMethodRef isJavaRef |
|
514 |
ifFalse: [ self halt: 'I expected JavaRef instance as an argument' ]. |
|
515 |
aJavaInterfaceMethodRef isJavaInterfaceMethodRef |
|
516 |
ifFalse: [ self halt: 'I expected JavaMethodRef instance as an argument' ]. |
|
517 |
||
518 |
"Created: / 13-04-2011 / 11:53:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
519 |
! ! |
|
520 |
||
521 |
!JavaResolver methodsFor:'method resolving'! |
|
522 |
||
523 |
resolveMethodIndentifiedByRef: aJavaMethodRef |
|
524 |
| result class | |
|
525 |
||
526 |
self validateMethodRef: aJavaMethodRef. |
|
527 |
result := self lookupMethodIfAlreadyResolved: aJavaMethodRef. |
|
528 |
result ifNotNil: [ ^ result ]. |
|
1392 | 529 |
class := aJavaMethodRef classRef resolve: false. |
850 | 530 |
class ifNil: [ self error: 'should not happen - tell mh' ]. |
1033 | 531 |
"Array types responds to all method of class java.lang.Object" |
532 |
class isJavaArrayClass ifTrue: [ |
|
533 |
class := JavaVM classForName: 'java.lang.Object'. |
|
850 | 534 |
]. |
761 | 535 |
" |
536 |
To resolve an unresolved symbolic reference from D to a method in |
|
537 |
a class C, the symbolic reference to C given by the method reference |
|
1033 | 538 |
is first resolved (§5.4.3.1). Therefore, any exceptions that can be |
761 | 539 |
thrown due to resolution of a class reference can be thrown as a result |
540 |
of method resolution. If the reference to C can be successfully resolved, |
|
541 |
exceptions relating to the resolution of the method reference itself |
|
542 |
can be thrown. |
|
543 |
When resolving a method reference: |
|
544 |
||
545 |
Method resolution checks whether C is a class or an interface. |
|
546 |
If C is an interface, method resolution throws an IncompatibleClassChangeError." |
|
547 |
class isInterface ifTrue: [ self throwIncompatibleClassChangeError ]. |
|
548 |
"Method resolution attempts to look up the referenced method in C and its |
|
549 |
superclasses: |
|
550 |
If C declares a method with the name and descriptor specified by the method |
|
551 |
reference, method lookup succeeds. |
|
552 |
Otherwise, if C has a superclass, step 2 of method lookup is recursively |
|
553 |
invoked on the direct superclass of C. |
|
554 |
||
555 |
Otherwise, method lookup attempts to locate the referenced method in any of |
|
556 |
the superinterfaces of the specified class C. |
|
557 |
If any superinterface of C declares a method with the name and descriptor |
|
558 |
specified by the method reference, method lookup succeeds. |
|
559 |
Otherwise, method lookup fails. |
|
560 |
If method lookup fails, method resolution throws a NoSuchMethodError. If method |
|
561 |
lookup succeeds and the method is abstract, but C is not abstract, method resolution |
|
562 |
throws an AbstractMethodError. Otherwise, if the referenced method is not accessible |
|
1033 | 563 |
(§5.4.4) to D, method resolution throws an IllegalAccessError." |
761 | 564 |
result := class lookupMethodByNameAndType: aJavaMethodRef nameAndType. |
565 |
result ifNil: [ self throwNoSuchMethodError ]. |
|
1033 | 566 |
(result isAbstract |
567 |
and: [ result javaClass isInterface not and: [ class isAbstract not ] ]) |
|
568 |
ifTrue: [ self throwAbstractMethodError ]. |
|
761 | 569 |
(self |
570 |
checkPermissionsForMethod: result |
|
571 |
from: aJavaMethodRef classRef owner |
|
572 |
to: class) ifFalse: [ self throwIllegalAccessError ]. |
|
573 |
^ result. |
|
574 |
||
575 |
"Otherwise, let <E, L1> be the class or interface in which the referenced method is |
|
576 |
actually declared and let L2 be the defining loader of D. Let T0 be the name of |
|
577 |
the type returned by the referenced method, and let T1, ..., Tn be the names of |
|
578 |
the argument types of the referenced method. The Java virtual machine must impose |
|
1033 | 579 |
the loading constraints TiL1=TiL2 for i = 0 to n (§5.3.4)." |
761 | 580 |
"Created: / 11-04-2011 / 19:45:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
581 |
"Modified: / 14-04-2011 / 00:01:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
905 | 582 |
"Modified: / 10-08-2011 / 22:44:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
761 | 583 |
! ! |
584 |
||
585 |
!JavaResolver methodsFor:'method resolving helpers'! |
|
586 |
||
587 |
checkPermissionsForMethod: aJavaMethod from: accessingJavaClass to: resolvedJavaClass |
|
1469 | 588 |
OperatingSystem getLoginName = 'm' ifFalse: [ ^ true ]. |
589 |
^ self |
|
1353 | 590 |
checkPermissionsForMethodOrField: aJavaMethod |
591 |
from: accessingJavaClass |
|
1469 | 592 |
to: resolvedJavaClass. |
761 | 593 |
|
594 |
"Created: / 11-04-2011 / 20:20:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
819 | 595 |
"Modified: / 24-05-2011 / 14:06:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1353 | 596 |
"Modified: / 09-02-2012 / 23:15:48 / mh <hlopik@gmail.com>" |
1469 | 597 |
"Modified (format): / 12-04-2012 / 10:14:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
761 | 598 |
! |
599 |
||
600 |
lookupMethodIfAlreadyResolved: aJavaMethodRef |
|
601 |
^ nil. |
|
602 |
||
603 |
"Created: / 11-04-2011 / 19:50:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
604 |
"Modified: / 13-04-2011 / 11:57:00 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
605 |
! |
|
606 |
||
607 |
validateMethodRef: aJavaMethodRef |
|
608 |
aJavaMethodRef isJavaRef ifFalse:[self halt: 'I expected JavaRef instance as an argument']. |
|
609 |
aJavaMethodRef isJavaMethodRef ifFalse: [self halt: 'I expected JavaMethodRef instance as an argument']. |
|
610 |
||
611 |
"Created: / 11-04-2011 / 19:47:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
612 |
! ! |
|
613 |
||
758 | 614 |
!JavaResolver class methodsFor:'documentation'! |
615 |
||
616 |
version_SVN |
|
617 |
^ '$Id$' |
|
618 |
! ! |
|
619 |
||
620 |
JavaResolver initialize! |