logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Womack" <mwom...@apache.org>
Subject Compile error
Date Wed, 05 Apr 2006 05:27:20 GMT
I am getting these compile errors when compiling with 1.3.  The 
getOffset(long) method is not supported in jdk 1.3:

    [javac] 
F:\development\code-svn-apache-projects\logging-log4j\tests\src\java\org\apache\log4j\helpers\DateLayoutTest
.java:239: cannot resolve symbol
    [javac] symbol  : method getOffset  (int)
    [javac] location: class java.util.TimeZone
    [javac]       String actual = format.format(new 
Date(-TimeZone.getDefault().getOffset(0)));
    [javac] 
^
    [javac] 
F:\development\code-svn-apache-projects\logging-log4j\tests\src\java\org\apache\log4j\helpers\DateLayoutTest
.java:249: cannot resolve symbol
    [javac] symbol  : method getOffset  (int)
    [javac] location: class java.util.TimeZone
    [javac]       String actual = format.format(new 
Date(-TimeZone.getDefault().getOffset(0)));

Can we use the old getOffset with all the values set for 1/1/1970?

-Mark 



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message