<AWT Dev> Legacy Apple com.apple.eio.FileManager (in module java.desktop) removed at jdk 16?

Alan Snyder javalists at cbfiddle.com
Thu Mar 18 23:13:15 UTC 2021


I use moveToTrash and revealInFinder, but only with JDK 8. In later JDKs I use Desktop.moveToTrash and browseFileDirectory.

> On Mar 18, 2021, at 2:20 PM, Michael Hall <mik3hall at gmail.com> wrote:
> 
> 
> 
>> On Mar 18, 2021, at 3:29 PM, Philip Race <philip.race at oracle.com> wrote:
>> 
>> I think this is because of https://bugs.openjdk.java.net/browse/JDK-8256299
>> 
>> JDK 16   release notes here : http://jdk.java.net/16/release-notes
>> 
> 
> I think I ran into a couple related issues. I had a check to see if default Toolkit gave me a Sun class for some functionality VirtualBox seemed to have issues with. I turned it off. I’ll still have to test to see if that gives me VirtualBox issues.
> 
> For com.apple.eio.FileManager I personally would argue that it was a public not a internal API. It was meant to provide some Mac specific file niceties to developers.
> 
> I had some code on Github based on the com.apple.eio.FileManager code that I think the macport had as Oracle class exception. I think I reworked it based on a Mac nio FileSystem I did. I can probably with some work get to work for my application. Maybe eve possibly get it to work fairly easily for other apps. If this change is permanent.
> 
> It’s possible you might hear from some other developers who have older Mac java code that made use of this API. 
> 



More information about the awt-dev mailing list