[OpenJDK 2D-Dev] <AWT Dev> java.awt.ICC_profile - getStandardProfileFile and getProfileFile break when profiles are symlinked
Phil Race
philip.race at oracle.com
Thu Oct 22 19:43:34 UTC 2015
This should be asked on the 2d-dev list.
But no, its not a bug. This was done for a good reason and that is all I
can say ..
-phil.
On 10/22/2015 08:56 AM, Spoffy wrote:
> 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/2d-dev/attachments/20151022/a42b6613/attachment.html>
More information about the 2d-dev
mailing list