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

Warn that exportObject(Remote) does not support auto-generating stubs

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P5
    • None
    • 6
    • core-libs
    • x86
    • windows_xp

    Description

      A DESCRIPTION OF THE PROBLEM :
      The RMI documentations says that since Java5 RMI no longer requires manual stub generation but it does not make it explicitly clear that this isn't always the case (you must use the correct method).

      The Javadoc for exportObject(Remote) should clarify that it does not auto-generate stub files and if the user would like autogenerated stubs he should use exportObject(Remote, int) instead.


      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/javase/6/docs/api/java/rmi/server/UnicastRemoteObject.html#exportObject(java.rmi.Remote)

      Attachments

        Issue Links

          Activity

            People

              smarks Stuart Marks
              tyao Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: