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

JDI: methods Accessible.is...() lie about array types

XMLWordPrintable

    • beta2
    • sparc
    • solaris_7
    • Verified



      Name: abR10010 Date: 08/04/2000


      The nsk/jdi/Accessible/isPrivate/isPrivate001 test fails under
      the HotSpot Client VM (build 1.3.0-b24, mixed mode).

      This test checks the isPrivate() method of the Accessible interface
      of the com.sun.jdi package for ArrayType, ClassType, InterfaceType.

      The Java Debug Interface specification for Accessible.isPrivate()
      method says:

      "...For object arrays, the return value is the same as would be
      returned for the component type. ..."

      But the nsk isPrivate001 test shows that this assertion is violated
      by the Accessible.isPrivate() method for arrays when component
      type is private class type or private interface type.

      To reproduce the bug run doit.sh in
      /net/sqesvr/export/vsn/GammaBase/Bugs/<this bug number>.

      The first parameter for doit.sh should be JDK root directory
      (e.g. /java/jdk1.3/solaris) and the other parameter(s) -
      VM option(s) (optional).

      See log:

      % doit.sh /bond/java/dest/Solaris_JDK_1.3-b24
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-b24)
      Java HotSpot(TM) Client VM (build 1.3.0-b24, mixed mode)
      ==> nsk/jdi/Accessible/isPrivate/isPrivate001 test LOG:
      ==> test checks the isPrivate() method of Accessible interface
          of the com.sun.jdi package for ArrayType, ClassType, InterfaceType

      --> isPrivate001: checking debugee's classes by Accessible.isPrivate() method...
      !!--> isPrivate001: UNEXPECTED isPrivate() method result (false) for class: isPrivate001a$s_interf[](private)
      !!--> isPrivate001: UNEXPECTED isPrivate() method result (false) for class: isPrivate001a$s_interf[][](private)
      !!--> isPrivate001: UNEXPECTED isPrivate() method result (false) for class: isPrivate001a$U[](private)
      !!--> isPrivate001: UNEXPECTED isPrivate() method result (false) for class: isPrivate001a$U[][](private)
      --> isPrivate001: checking debugee's classes completed!
      --> isPrivate001: number of checked classes = 68
      !!--> isPrivate001: isPrivate() method ERRORS counter = 4

      ==> nsk/jdi/Accessible/isPrivate/isPrivate001 test FAILED

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

      Name: elR10090 Date: 02/07/2001



      This problem seems to also affect testbase_nsk tests:

          nsk/jdi/Accessible/isPackagePrivate/accipp001
          nsk/jdi/Accessible/isPrivate/isPrivate001
          nsk/jdi/Accessible/isProtected/isProtected001
          nsk/jdi/Accessible/isPublic/isPublic001

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

            tbell Tim Bell
            bondsunw Bond Bond (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: