harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Liang <richard.lian...@gmail.com>
Subject [classlib][luni]Compatibility: java.util.GregorianCalendar
Date Fri, 04 Aug 2006 06:32:37 GMT
Hello All,

Several test cases in tests.api.java.util.GregorianCalendarTest fail on 
RI 5.0 because The maximum and minimum Calendar.ZONE_OFFSET of Harmony 
and RI are different. And I cound not find any related information in 
the specification. Could anybody suggest? Thanks a lot.

Consider the following code:
        GregorianCalendar calendar = new GregorianCalendar();
        System.out.println("Maximun zone offset(hour): " + 
        System.out.println("Minimun zone offset(hour): " + 

*Output on RI 1.5.0_07:*
Maximun zone offset(hour): 14
Minimun zone offset(hour): -13

*Output on Harmony:*
Maximun zone offset(hour): 12
Minimun zone offset(hour): -12

Best regards,

Richard Liang
China Software Development Lab, IBM 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message