179 This condition can occur, for example, if C is a class that was originally declared to be |
179 This condition can occur, for example, if C is a class that was originally declared to be |
180 public but was changed to be non-public after D was compiled. |
180 public but was changed to be non-public after D was compiled. |
181 |
181 |
182 If steps 1 and 2 succeed but step 3 fails, C is still valid and usable. Nevertheless, resolution |
182 If steps 1 and 2 succeed but step 3 fails, C is still valid and usable. Nevertheless, resolution |
183 fails, and D is prohibited from accessing C." |
183 fails, and D is prohibited from accessing C." |
184 (self checkPermissionsFrom: aJavaClassRef owner to: result) |
184 |
|
185 |
|
186 "JV@2011-08-10: HACK FOR SAXON DEMO!!!!!!" |
|
187 "(self checkPermissionsFrom: aJavaClassRef owner to: result)"true |
185 ifTrue: [ ^ result ] |
188 ifTrue: [ ^ result ] |
186 ifFalse: [ self throwIllegalAccessError ]. |
189 ifFalse: [ self throwIllegalAccessError ]. |
187 |
190 |
188 "Created: / 11-04-2011 / 19:07:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
191 "Created: / 11-04-2011 / 19:07:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
189 "Modified: / 23-05-2011 / 21:11:32 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
192 "Modified: / 23-05-2011 / 21:11:32 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
190 "Modified: / 06-08-2011 / 16:43:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
193 "Modified: / 10-08-2011 / 23:53:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
191 ! ! |
194 ! ! |
192 |
195 |
193 !JavaResolver methodsFor:'class resolving helpers'! |
196 !JavaResolver methodsFor:'class resolving helpers'! |
194 |
197 |
195 checkIfArrayRef: aJavaClassRef andWrap: result |
198 checkIfArrayRef: aJavaClassRef andWrap: result |