< prev index next >

src/java.desktop/share/classes/java/awt/Toolkit.java

Print this page

        

@@ -676,15 +676,10 @@
      * {@code checkPermission} method with the corresponding
      * permission to ensure that the access to the image is allowed.
      * If the connection to the specified URL requires
      * either {@code URLPermission} or {@code SocketPermission},
      * then {@code URLPermission} is used for security checks.
-     * For compatibility with pre-1.2 security managers, if the access
-     * is denied with {@code FilePermission} or {@code SocketPermission},
-     * the method throws the {@code SecurityException}
-     * if the corresponding 1.1-style SecurityManager.checkXXX method
-     * also denies permission.
      * @param     url   the URL to use in fetching the pixel data.
      * @return    an image which gets its pixel data from
      *                         the specified URL.
      * @throws SecurityException  if a security manager exists and its
      *                            checkPermission method doesn't allow

@@ -722,15 +717,10 @@
      * {@code checkPermission} method with the corresponding
      * permission to ensure that the image creation is allowed.
      * If the connection to the specified URL requires
      * either {@code URLPermission} or {@code SocketPermission},
      * then {@code URLPermission} is used for security checks.
-     * For compatibility with pre-1.2 security managers, if the access
-     * is denied with {@code FilePermission} or {@code SocketPermission},
-     * the method throws {@code SecurityException}
-     * if the corresponding 1.1-style SecurityManager.checkXXX method
-     * also denies permission.
      * @param     url   the URL to use in fetching the pixel data.
      * @return    an image which gets its pixel data from
      *                         the specified URL.
      * @throws SecurityException  if a security manager exists and its
      *                            checkPermission method doesn't allow
< prev index next >