private void readObject ( java . io . ObjectInputStream in ) throws IOException , ClassNotFoundException { in . defaultReadObject ( ) ; /* String id = getID(); if (id!=null && !(zone instanceof java.util.SimpleTimeZone && zone.getID().equals(id))) { // System.out.println("*** readjust " + zone.getClass().getName() + // " " + zone.getID() + " ***"); java.util.SimpleTimeZone stz = new java.util.SimpleTimeZone(raw, id); if (dst != 0) { stz.setDSTSavings(dst); // if it is 0, then there shouldn't be start/end rules and the default // behavior should be no dst } if (xinfo != null) { xinfo.applyTo(stz); } zoneJDK = stz; } */ /* set all instance variables in this object * to the values in zone */ if ( xinfo != null ) { xinfo . applyTo ( this ) ; } }
on JDK 1 . 4 and later can t deserialize a SimpleTimeZone as a SimpleTimeZone ...