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

JDI: typo in LocalVariable.isArgument() spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-svc
    • None
    • beta
    • generic
    • generic
    • Not verified

      Typo: "final" should be "an argument".
      robert.field@Eng 2000-03-28

      -----

       API for LocalVariable.isArgument() states that
       "Determines if this variable is an argument to its method.
        Returns:
               true if this variable is final; false otherwise."

       But using isArgument() method we find that for a variable which is not final
       the method returns "true".
       
       Scenario:
       ---------
       Debugger: ArgumentTest.java
       Debugee: LocalTest.java
       isArgument() method on a local variable(k in LocalTest) which is an argument
       and is non-final returns true. This behaviour is wrong as the method should
       return true only for final variables.)
        
       ***Testing done in JDK1.3.0rc2-W-Hotspot and Classic VM(WinNT and Solaris2.7)

       Steps to reproduce the bug
       ---------------------------
       The bug can be reproduced using the files in the location
       /net/sqesvr/export/disk5/toolsbugs/4324454
       Follow the instructions in README to reproduce the bug.

            rfield Robert Field (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: