[foreign] RFR Libraries.load is broken

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Wed Jun 27 01:53:13 UTC 2018


Panama's Libraries.load, Libraries.loadLibrary are similar to 
System.load, System.loadLibrary respectively - except for caller 
sensitivity and return value (Library interface vs. void). load uses 
absolute path and loadLibrary uses simple name.

Libraries.load is broken - throws UnsatisfiedLinkError for any path. 
Fixed by delegating to JavaLangAccess.load. Also renamed findLibrary as 
loadLibrary in Runtime to be consistent.

Webrev: 
http://cr.openjdk.java.net/~sundar/libraries_load_broken/webrev.00/index.html

Thanks,
-Sundar


More information about the panama-dev mailing list