com.apple.concurrent.Dispatch in the modular JDK

Phil Race philip.race at oracle.com
Wed May 20 00:01:15 UTC 2015


Apple's JDK 6 provided the non-standard "com.apple.concurrent.Dispatch" 
class
which was a means for Java code to access Apple's "libdispatch".
To quote the documentation at
http://www.coderanch.com/how-to/javadoc/appledoc/api/com/apple/concurrent/Dispatch.html

" Factory for |Executor|s and |ExecutorService|s backed by libdispatch.
Access is controlled through the Dispatch.getInstance() method,
because performed tasks occur on threads owned by libdispatch"

The class carried over into Oracle JDK for OS X and is there all the way up
to current JDk 9 dev builds.

The question is what to do with this class in the 'modular JDK' where
we need to decide on the 'supportedness' of many APIs and what
to do with them as a result.

There is one Eclipse bug from 2010 where one of the methods was
added to support embedding SWT in AWT applets in the browser :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=303869

but that was for JDK 6 and SWT can't be embedded in the current JDK 7/8/9
Java Plugin for OS X which runs out of process .. so that usage is moot.

So the current thinking is that since we do not know of anyone who
uses this class that it should be unsupported in JDK 9 and not
visible in the modular JDK image.

So .. any comments ?

-phil.







More information about the macosx-port-dev mailing list