Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4419693

(spec) SecurityException is not specified in some methods in RMI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.0, 5.0
    • core-libs
    • Fix Understood
    • sparc
    • solaris_2.6, solaris_7

      In RMI, SecurityException will be thrown from some methods associated with
      registry because
      1) they don't have SocketPermission to connect to or listen to certain registry
      ports or
      2) they don't have FilePermission to download code from certain codebase

      This type of SecurityException needs to be specified for the following
      methods. Also, it is desirable to list the permissions needed for such methods
      in the spec.

      Naming.bind()
      Naming.list()
      Naming.lookup()
      Naming.unbind()
      Naming.rebind()
      RMIClassLoader.loadClass()
      Registry.bind()
      Registry.list()
      Registry.lookup()
      Registry.rebind()
      Registry.unbind()
      UnicastRemoteObject.UnicastRemoteObject(int port)
      UnicastRemoteObject.exportObject(Remote obj, int port)



            Unassigned Unassigned
            xwangsunw Xiaozhong Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: