あぼーん

Date testDate = new Date(106,11,31);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-ww");
System.out.println(sdf.format(testDate));


と書くと、なぜか2006-01となる。
もちろん、Date(106,0,1)でも2006-01。
JDKのバグらしいけど、JDK 1.3ぐらいから、ずーっとほっぽりっぱなし。


これにやられるのは、TomcatのAccessLogValve、Log4j
他にもありそうな気がするが、どう直したもんかのぉ・・・