This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/11248] New: java.util.Date is incorrect on Solaris


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11248

           Summary: java.util.Date is incorrect on Solaris
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hamano@hyper.linc.or.jp
                CC: gcc-bugs@gcc.gnu.org

gij and the native executable through gcj display incorrect "Date" on
Solaris(sparc, IA) systems.  It seems to invert the sign of offset from GMT.

----- Test program -----
import java.util.*;
public class Test {
    public static void main( String args[]) throws Exception {
        System.out.println(new Date());
    } 
}
----- End -----

----- Test -----
$ javac Test.java
$ java Test
Thu Jun 19 12:53:50 JST 2003
$ gij Test 
Wed Jun 18 19:54:02 AKDT 2003
$ gcj Test.class --main=Test -R/usr/local/lib -o Test
$ ./Test
Wed Jun 18 19:54:24 AKDT 2003
$ 
----- End -----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]