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

Xcheck ensure static class accessors get a class instead of an instance of a cla

XMLWordPrintable

    • mantis
    • sparc
    • solaris_8

      This is a bug/rfe for Xcheck:jni to help customers find bugs quicker instead
      of filing a bug and asking us to figure out they are doing something wrong.

      The problem is that a test program could pass a "jobject"
      to GetStaticDoubleField rather than a jclass. Since the class is static, the
      GetStatic accessors require the class instead of a instance of the class. We should be more graceful in our detection of this condition rather than crashing.

            foliversunw Fred Oliver (Inactive)
            collins Gary Collins (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: