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

possible problem in CJavaJNI.cpp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.1_07
    • Component/s: deploy
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      07
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description


        From talking with my friends at SAS and from poking around in the code
        I believe I have found a problem in CJavaJNI.cpp.

        The routine:

        jint CJavaJNI::JNI_GetCreatedJavaVMs(JavaVM **vmp, jsize bufLen ,jsize *nVMS) {
          JVM_GETCREATED proc;
          proc =(JVM_GETCREATED) GetProcAddress(m_hMod, "JNI_GetCreatedJavaVMs");
          return proc != 0 ? (*proc)(vmp, bufLen, nVMS) : -1;
          }

        uses the variable `m_hMod', which is not set (it is an auto variable).

        So, my idea is to set `m_hMod' in `LoadJavaVM'.

        If you start the JVM from jpishare.dll you will not see this
        problem. This might explain why we have gone so far without running
        into this yet.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                djayaramsunw Devananda Jayaraman (Inactive)
                Reporter:
                pallenba Peter Allenbach (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: