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

Possible assert in nsk jni001 and jni002 tests due system properties code change

XMLWordPrintable

    • tiger
    • generic
    • generic
    • Verified


      This is regression of system.properties work I did due to a mistake
      of changing string "" to NULL.

      This is failed tests:
      nsk/coverage/jni/jni001 execute_positive jni001
      nsk/coverage/jni/jni002 execute_positive jni002



      e-mail from Coleen Phillimore:

      There is a regression in the nsk tests jni001 and jni002 in
      main/baseline
      where it's asserting because a property value is null.

      ## Java VM: Java HotSpot(TM) Client VM (interp.ws_0728_1955-debug mixed
      mode)
      ##
      ## assert(str != 0, "bad arguments")
      ##
      ## Error ID:
      /net/philli.east/scratch/coleenp/interp.ws/src/share/vm/memory/java
      Classes.cpp, 84 [ Unknown ]


      [t@1 l@1]: frame 12
      Current function is JVM_InitProperties
        217 PUTPROP(props, p->key(), p->value());
      [t@1 l@1]: print *p
      *p = {
          _key = 0x22738 "java.class.path"
          _value = (nil)
          _next = 0x22778
          _writeable = 1
      }



      Fix for this problem is very simple.

      Change NULL to "" in the following statement.


            swamyv Swamy Venkataramanappa
            swamyv Swamy Venkataramanappa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: