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

Javadoc for java.awt.dnd.DropTargetDropEvent.isLocalTransfer() is incorrect

    XMLWordPrintable

Details

    • Fix Understood
    • x86
    • windows_2000

    Description

      Name: js151677 Date: 08/17/2004


      A DESCRIPTION OF THE PROBLEM :
      The method returns a boolean not an int as the javadoc suggests.

      public boolean isLocalTransfer()

        This method returns an int indicating if the source is in the same JVM as the target.
                                                    ^^^

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      public boolean isLocalTransfer()

        This method returns a boolean indicating if the source is in the same JVM as the target.
                       
      ACTUAL -
      "This method returns an int "...

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.4.2/docs/api/java/awt/dnd/DropTargetDropEvent.html#isLocalTransfer()
      (Incident Review ID: 297178)
      ======================================================================

      Attachments

        Activity

          People

            denis Denis Fokin (Inactive)
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Imported:
              Indexed: