equal
deleted
inserted
replaced
138 |
138 |
139 /* |
139 /* |
140 * fix bug # 6433620 the logic here is : try to find URLClassLoader from |
140 * fix bug # 6433620 the logic here is : try to find URLClassLoader from |
141 * class context, check its AccessControlContext to see if |
141 * class context, check its AccessControlContext to see if |
142 * AppletClassLoader is in stack when it's created. for this kind of |
142 * AppletClassLoader is in stack when it's created. for this kind of |
143 * URLClassLoader, return the AppContext assocated with the |
143 * URLClassLoader, return the AppContext associated with the |
144 * AppletClassLoader. |
144 * AppletClassLoader. |
145 */ |
145 */ |
146 for (int i = 0; i < context.length; i++) { |
146 for (int i = 0; i < context.length; i++) { |
147 final ClassLoader currentLoader = context[i].getClassLoader(); |
147 final ClassLoader currentLoader = context[i].getClassLoader(); |
148 |
148 |
302 * This method calls <code>checkPermission</code> with the |
302 * This method calls <code>checkPermission</code> with the |
303 * <code>AWTPermission("accessEventQueue")</code> permission. |
303 * <code>AWTPermission("accessEventQueue")</code> permission. |
304 * |
304 * |
305 * @since JDK1.1 |
305 * @since JDK1.1 |
306 * @exception SecurityException if the caller does not have |
306 * @exception SecurityException if the caller does not have |
307 * permission to accesss the AWT event queue. |
307 * permission to access the AWT event queue. |
308 */ |
308 */ |
309 public void checkAwtEventQueueAccess() { |
309 public void checkAwtEventQueueAccess() { |
310 AppContext appContext = AppContext.getAppContext(); |
310 AppContext appContext = AppContext.getAppContext(); |
311 AppletClassLoader appletClassLoader = currentAppletClassLoader(); |
311 AppletClassLoader appletClassLoader = currentAppletClassLoader(); |
312 |
312 |