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

TTY: "Arguments match no method" error returned for String.equals(String)

    Details

    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      (Another test for this bug is jtreg test EvalArgs.sh)

      Name: dkR10014 Date: 04/04/2002


      The following testbase_nsk test:
         nsk/jdb/eval/eval001
      fails on all platforms (Solsparc, Solx86, Win, Linux) in all debugged VM mode.

      The test checks jdb 'eval <expr>' command and therefore tries to get values for
      various
      expressions using checked command. When trying to evaluate result of equals(String)
      method
      for the String object the unexpected error message is returned:

      main[1] eval myClass.toString().equals("abcde")
      Arguments match no method
       myClass.toString().equals("abcde") = null
      main[1]

      There are two programs in the test:
        eval001.java - launches jdb and debuggee, writes commands to jdb, reads the jdb
      output,
        eval001a.java - the debugged application.

      Below is test jdb stdout log redirected to jdb.stdout file:
      ------------------------------------------------------------------
      Initializing jdb ...
      >
      <<COMMAND>>stop in nsk.jdb.eval.eval001a.main

      Deferring breakpoint nsk.jdb.eval.eval001a.main.
      It will be set after the class is loaded.
      >
      <<COMMAND>>run

      run nsk.jdb.eval.eval001a
      >
      VM Started: Set deferred breakpoint nsk.jdb.eval.eval001a.main

      Breakpoint hit: "thread=main", nsk.jdb.eval.eval001a.main(), line=19 bci=0

      main[1]
      <<COMMAND>>stop in nsk.jdb.eval.eval001a.lastBreak

      Set breakpoint nsk.jdb.eval.eval001a.lastBreak
      main[1]
      <<COMMAND>>cont

      >
      Breakpoint hit: "thread=main", nsk.jdb.eval.eval001a.lastBreak(), line=22 bci=0

      main[1]
      <<COMMAND>>step

      >
      Step completed: "thread=main", nsk.jdb.eval.eval001a.runIt(), line=35 bci=53

      main[1]
      <<COMMAND>>eval nsk.jdb.eval.eval001a.myStaticField

       nsk.jdb.eval.eval001a.myStaticField = -2147483648
      main[1]
      <<COMMAND>>eval nsk.jdb.eval.eval001a._eval001a.myInstanceField

       nsk.jdb.eval.eval001a._eval001a.myInstanceField = 9223372036854775807
      main[1]
      <<COMMAND>>eval nsk.jdb.eval.eval001a._eval001a.myArrayField[0][0].toString()

       nsk.jdb.eval.eval001a._eval001a.myArrayField[0][0].toString() = "ABCDE"
      main[1]
      <<COMMAND>>eval nsk.jdb.eval.eval001a._eval001a.myMethod()

       nsk.jdb.eval.eval001a._eval001a.myMethod() = 2147483647
      main[1]
      <<COMMAND>>eval myClass.toString().equals("abcde")

      Arguments match no method
       myClass.toString().equals("abcde") = null
      main[1]
      <<COMMAND>>eval i + j + k

       i + j + k = 777
      main[1]
      <<COMMAND>>eval new java.lang.String("Hello, World").length()

       new java.lang.String("Hello, World").length() = 12
      main[1]
      <<COMMAND>>cont

      >
      The application exited
      ------------------------------------------------------------------
      <<COMMAND>> prefix designates input commands.
         
      How to reproduce:
       1. cd /net/sqesvr.sfbay/export/vsn/GammaBase/Bugs/{this_bug_number}
       2. sh doit.sh <JAVA_HOME>

      The test will appear in the next testbase_nsk r13 relase.

      ======================================================================

      Name: agR10195 Date: 09/01/2002



      Alexey Gibadullin, ###@###.###

      A testcase has been added into testbase_nsk (since release 16) to verify
      this bug and to execute it regularly. The test name is:

          nsk/regression/b4663146

      The current location of the testbase is
          
          /net/sqesvr.sfbay/export/vsn/VM/testbase/testbase_nsk


      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                duke J. Duke (Inactive)
                Reporter:
                kdossunw Kdos Kdos (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: