<AWT Dev> java.awt.ICC_profile - getStandardProfileFile and getProfileFile break when profiles are symlinked
spoffeh at gmail.com
Thu Oct 22 15:56:12 UTC 2015
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev