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

Clarification in Javadoc for java.rmi.AlreadyBoundException

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 15
    • 5.0
    • core-libs
    • b23

    Description

      FULL PRODUCT VERSION :
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
      Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      The javadoc reads 'An AlreadyBoundException is thrown if an attempt is made to bind an object in the registry to a name that already has an associated binding'.

      I suggest that the phrase 'object in the registry' is pretty confusing as it suggests that the object is already in the registry.

      It should read 'An AlreadyBoundException is thrown if an attempt is made to bind an object to a name that already has an associated binding in the registry'.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Read the javadoc and confuse yourself.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It should read 'An AlreadyBoundException is thrown if an attempt is made to bind an object to a name that already has an associated binding in the registry'.
      ACTUAL -
      'An AlreadyBoundException is thrown if an attempt is made to bind an object in the registry to a name that already has an associated binding.'

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Activity

          People

            smarks Stuart Marks
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: