2929
3030import  tools .jackson .databind .*;
3131import  tools .jackson .databind .annotation .JsonTypeResolver ;
32+ import  tools .jackson .databind .cfg .DateTimeFeature ;
3233import  tools .jackson .databind .cfg .MapperConfig ;
3334import  tools .jackson .databind .jsontype .PolymorphicTypeValidator ;
3435import  tools .jackson .databind .jsontype .TypeIdResolver ;
@@ -271,7 +272,7 @@ public void testWithIonDate() throws IOException {
271272        resolveAllTypes  = true ;
272273        ObjectMapper  mapper  = IonObjectMapper .builder ()
273274                .addModule (new  IonAnnotationModule ())
274-                 .disable (SerializationFeature .WRITE_DATES_AS_TIMESTAMPS )
275+                 .disable (DateTimeFeature .WRITE_DATES_AS_TIMESTAMPS )
275276                .build ();
276277        long  etime  = 1449191916000L ;
277278        java .util .Date  uDate  = new  java .util .Date (etime );
@@ -293,7 +294,7 @@ public void testWithDateAsTimestamp() throws IOException {
293294        resolveAllTypes  = true ;
294295        ObjectMapper  ionDateMapper  = IonObjectMapper .builder ()
295296                .addModule (new  IonAnnotationModule ())
296-                 .enable (SerializationFeature .WRITE_DATES_AS_TIMESTAMPS )
297+                 .enable (DateTimeFeature .WRITE_DATES_AS_TIMESTAMPS )
297298                .build ();
298299        long  etime  = 1449191916000L ;
299300        java .util .Date  uDate  = new  java .util .Date (etime );
@@ -321,7 +322,7 @@ public void testPolymorphicTypeWithDate() throws IOException{
321322                new  ChildBeanSub ("child_field" , "extra_field" , uDate , sDate , null ));
322323
323324        IonObjectMapper  mapper  = IonObjectMapper .builder ()
324-                 .disable (SerializationFeature .WRITE_DATES_AS_TIMESTAMPS )
325+                 .disable (DateTimeFeature .WRITE_DATES_AS_TIMESTAMPS )
325326                .addModule (new  IonAnnotationModule ())
326327                .build ();
327328        // roundtrip 
0 commit comments