JDK-6267283 : Windows plugin source relies on JVMPI (jvmpi.h), needs to be removed
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-05-09
  • Updated: 2010-04-02
  • Resolved: 2005-05-12
Related Reports
Duplicate :  
Description
The source file:
    deploy/src/plugin/win32/jpishare/CJavaJNI.cpp.

Has some very questionable code with regards to JVMPI (jvmpi.h). See the end of the file.

It appears to be simulating a JVMPI VM shutdown event to trigger JCov to dump
it's tables. 
This needs to be removed. Besides making the deploy build dependent on the JDK having
jvmpi.h, at runtime it's looking for any JVMPI environment and sending an event that
the VM is about to shutdown, something normally the VM should do.

See suggested fix.
###@###.### 2005-05-09 15:37:43 GMT

Comments
EVALUATION This is a duplicate of #6266948. ###@###.### 2005-05-12 21:44:56 GMT
12-05-2005

SUGGESTED FIX The whole point seems to be making JCov dump it's tables. My suggestion is to get JVMPI (an interface used by JCov) out of the picture and somehow make a direct call to the JCov external that triggers the dump of the data. ###@###.### 2005-05-09 15:37:43 GMT
09-05-2005