https://issues.apache.org/bugzilla/show_bug.cgi?id=55940
--- Comment #2 from [email protected] --- That explains. Thank you. Germán. (In reply to Stefan Bodewig from comment #1) > That's because of SimpleDateFormat > > <target name="SDF"> > <echo file="SDF.java"><![CDATA[ > import java.text.SimpleDateFormat; > import java.util.Date; > public class SDF { > public static void main(String[] args) throws Exception { > SimpleDateFormat f = new SimpleDateFormat("YYYY"); > System.err.println("YYYY => " + f.format(new Date())); > f = new SimpleDateFormat("yyyy"); > System.err.println("yyyy => " + f.format(new Date())); > } > }]]></echo> > <javac srcdir="." destdir="."> > <include name="SDF.java"/> > </javac> > <java classname="SDF"> > <classpath location="."/> > </java> > </target> > > leads to > > SDF: > [javac] /tmp/date.xml:21: warning: 'includeantruntime' was not set, > defaulting to build.sysclasspath=last; set to false for repeatable builds > [javac] Compiling 1 source file to /tmp > [java] YYYY => 2014 > [java] yyyy => 2013 > > for me. > > Y is the "week year", i.e. the year of the calendar week you are in. Since > this Thursday is in 2014 this week's year is 2014. -- You are receiving this mail because: You are the assignee for the bug.
