JDK-7122780 : (macosx) JVMTI Test DemoRun.java doesn't understand macosx .dylibs
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 7u4
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: unknown
  • Submitted: 2011-12-19
  • Updated: 2012-10-06
  • Resolved: 2012-02-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u4 b11Fixed
Description
DemoRun.java needs to be updated to know about macosx .dylibs

Comments
EVALUATION Fix as suggested
19-12-2011

SUGGESTED FIX diff -r d0385c0922ac test/demo/jvmti/DemoRun.java --- a/test/demo/jvmti/DemoRun.java Thu Dec 15 12:44:21 2011 -0800 +++ b/test/demo/jvmti/DemoRun.java Mon Dec 19 03:33:43 2011 -0800 @@ -123,7 +123,8 @@ String os_arch = System.getProperty("os.arch"); String os_name = System.getProperty("os.name"); String libprefix = os_name.contains("Windows")?"":"lib"; - String libsuffix = os_name.contains("Windows")?".dll":".so"; + String libsuffix = os_name.contains("Windows")?".dll": + os_name.equals("Mac OS X")?".dylib":".so"; boolean d64 = ( os_name.contains("Solaris") || os_name.contains("SunOS") ) && ( os_arch.equals("sparcv9") ||
19-12-2011