<AWT Dev> java.awt.ICC_profile - getStandardProfileFile and getProfileFile break when profiles are symlinked
Spoffy
spoffeh at gmail.com
Thu Oct 22 15:56:12 UTC 2015
Hey there,
When using the Nix package manager, almost all files and folders are
installed as symlinks (for various reasons).
I was attempting to use OpenIMAJ, which calls into
java.awt.color.ICC_Profile.getStandardProfile. However, this throws an
exception when used. This is due to line 1836 in getProfileFile() calling
"isChildOf(File f, String dir)".
This involves expanding the file and its parent to their canonical paths.
However, on a symlinked system, they have different canonical paths and
this returns false.
I was wondering if this was a bug, or exists for a reason?
Many thanks,
--
Callum
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20151022/0109da74/attachment.html>
More information about the awt-dev
mailing list