commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Spero (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COMPRESS-416) Tests failing under jdk 9 : one reflection issue, one change to ZipEntry related issue
Date Mon, 03 Jul 2017 15:35:00 GMT

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

Simon Spero commented on COMPRESS-416:
--------------------------------------

It's an oracle issue. 

{code:java}
    @Test
    public void testJUZTimes() throws Exception {
        final File archive = getFile("COMPRESS-210_unix_time_zip_test.zip");
        try (java.util.zip.ZipFile zf = new java.util.zip.ZipFile(archive)) {
          ZipEntry entry =  zf.getEntry("COMPRESS-210_unix_time_zip_test/2105");
            Calendar girl = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
            girl.setTime(new Date(entry.getTime()));
            int year = girl.get(Calendar.YEAR);
            assertEquals(2105,year);
        }
    }
{code}

java.lang.AssertionError: 
Expected :2105
Actual   :1968  

1968-11-24T00:00:00.000Z to be precise.   So I'm weeks away from being conceived, and the
 Nixon transition team is busy picking out hidden tape recorders.


> Tests failing under jdk 9 : one reflection issue, one change to ZipEntry related issue
> --------------------------------------------------------------------------------------
>
>                 Key: COMPRESS-416
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-416
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.14, 1.15
>         Environment: JDK 9 ( jdk9 tree tip - I believe this is what will be the RC, or
if not, what would have been RC). 
>     java.runtime.version = 9-internal+0-adhoc.ses.jdk9
>     java.specification.version = 9
>     java.version = 9-internal
>     java.vm.specification.version = 9
>     os.arch = amd64
>     os.name = Linux
>     os.version = 4.4.0-81-generic
>            Reporter: Simon Spero
>             Fix For: 1.15
>
>         Attachments: surefire-reports.zip
>
>
> X5455_ExtendedTimestampTest is failing under JDK 9 , due to what appears to be a bogus
value returned from getTime().  It seems like the test failure might be due to the changes
introduced for this: 
> https://bugs.openjdk.java.net/browse/JDK-8073497
> Tests were run using intelliJ TestRunner, using the openjdk9 build from the tip of the
jdk9 tree (not dev).  I believe that this is at most one commit away from what will be the
RC (which was delayed at the last minute due to two issues, one of which was javadoc related,
and the other hotspot. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message