United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7134690 remove legacy jnilib support from ClassLoader and System [macosx]
JDK-7134690 : remove legacy jnilib support from ClassLoader and System [macosx]

Details
Type:
Bug
Submit Date:
2012-01-27
Status:
Closed
Updated Date:
2012-09-24
Project Name:
JDK
Resolved Date:
2012-04-11
Component:
core-libs
OS:
os_x
Sub-Component:
java.lang
CPU:
unknown
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4 (b11)

Related Reports
Relates:

Sub Tasks

Description
The initial port of jdk7u to macos included some code in 

src/share/classes/java/lang/System.java and
src/share/classes/java/lang/ClassLoader.java 

which adds support for non-standard native library suffixes on Mac OS. The standard name format is libname.dylib
on macos, but Apple's java supports libname.jnilib as well.

We would like to remove this code, because if such support is really required then it shouldn't be
iplemented in shared code. We will track the requirement to support these legacy names in another CR if necessary.

                                    

Comments
EVALUATION

This has been removed for now via this change-set:
http://hg.openjdk.java.net/jdk7u/jdk7u-osx/jdk/rev/7929ac999cde

Once the Mac port is in 7u4 then a cleaner approach to support .jnilib needs to be examined.
                                     
2012-01-30



Hardware and Software, Engineered to Work Together