Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8154405 AccessControlException by URLPermission check
  3. JDK-8193697

Release Note: Description for Toolkit.getImage() and Toolkit.createImage()

    Details

      Description

      The changes made under JDK-8033530 introduced an inconsistency between the implementation for and the documentation of the following methods:

       * `java.awt.Toolkit.getImage(URL u)`
       * `java.awt.Toolkit.createimage(URL u)`

      The description in the API document should read:

      >This method first checks if there is a security manager installed. If so, the method calls the security managers `checkPermission()` method with the corresponding permission to ensure that the access to the image or the image creation is allowed. If the connection to the specified URL requires either URLPermission or SocketPermission, then `URLPermission` is used for security checks.

        Attachments

          Activity

            People

            • Assignee:
              dmarkov Dmitry Markov
              Reporter:
              bvaidya Balchandra Vaidya
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: