[ 
https://issues.apache.org/jira/browse/XGC-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151845#comment-14151845
 ] 

Vincent Hennebert commented on XGC-66:
--------------------------------------

That's because the vendor name of the ImageIO provider has changed between Java 
6 and 7 from Sun Microsystems to Oracle Corporation. Therefore, the method 
ImageLoaderImageIO.checkProviderIgnoresICC method now returns false, which 
makes the loading of the ICC profile go a different route, which results in the 
difference in the test.

Whether it is just a matter of also blacklisting Oracle providers or the 
ImageIO shipped with Java 7 now better supports ICC profiles remains to be 
investigated.

> TestCase testICCProfiles fails with OpenJDK or Oracle Java7
> -----------------------------------------------------------
>
>                 Key: XGC-66
>                 URL: https://issues.apache.org/jira/browse/XGC-66
>             Project: XMLGraphicsCommons
>          Issue Type: Bug
>          Components: image codecs
>    Affects Versions: Trunk
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: James Page
>            Assignee: XML Graphics Project Mailing List
>             Fix For: --
>
>
> Building trunk with OpenJDK or Oracle Java 7 fails with the following test 
> failure:
>     [junit] Testcase: 
> testICCProfiles(org.apache.xmlgraphics.image.loader.ImageLoaderTestCase):     
>   FAILED
>     [junit] Embedded ICC Profiles are not the same size! expected:<632> but 
> was:<912>
>     [junit] junit.framework.AssertionFailedError: Embedded ICC Profiles are 
> not the same size! expected:<632> but was:<912>
>     [junit]   at 
> org.apache.xmlgraphics.image.loader.ImageLoaderTestCase.testICCProfiles(ImageLoaderTestCase.java:176)
> This test case passes on openjdk-6.
> OS: Ubuntu 12.04
> Java SDK: openjdk-7 or oracle-java-7 (makes no difference).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to