diff --git a/release-notes/VERSION b/release-notes/VERSION index 6130f29204..37256520ab 100644 --- a/release-notes/VERSION +++ b/release-notes/VERSION @@ -7,6 +7,7 @@ Versions: 3.x (for earlier see VERSION-2.x) 3.0.0-rc4 (not yet released) +#1484: Changed default of `MapperFeature.DEFAULT_VIEW_INCLUSION` to `false` in 3.0 #5093: Change the way `BeanDescription` passed during serializer construction to use `Supplier` #5094: Change the way `BeanDescription` passed during deserializer construction diff --git a/src/main/java/tools/jackson/databind/DeserializationFeature.java b/src/main/java/tools/jackson/databind/DeserializationFeature.java index 38d7970568..415352049a 100644 --- a/src/main/java/tools/jackson/databind/DeserializationFeature.java +++ b/src/main/java/tools/jackson/databind/DeserializationFeature.java @@ -296,7 +296,7 @@ public enum DeserializationFeature implements ConfigFeature * by ensuring that only the properties relevant to the active view are considered during * deserialization, thereby preventing unintended data from being processed. *
- * Feature is enabled by default. + * Feature is enabled by default in Jackson 3.x (in 2.x it was disabled by default). */ FAIL_ON_UNEXPECTED_VIEW_PROPERTIES(true), diff --git a/src/main/java/tools/jackson/databind/MapperFeature.java b/src/main/java/tools/jackson/databind/MapperFeature.java index 2dac6d3746..51b1bf023d 100644 --- a/src/main/java/tools/jackson/databind/MapperFeature.java +++ b/src/main/java/tools/jackson/databind/MapperFeature.java @@ -259,13 +259,12 @@ public enum MapperFeature * changes between "opt-in" (feature disabled) and * "opt-out" (feature enabled) modes. *
- * Default value is enabled, meaning that non-annotated - * properties are included in all views if there is no + * Feature is disabled by default as of Jackson 3.0 (in 2.x it was enabled), + * meaning that non-annotated + * properties are not included views if there is no * {@link com.fasterxml.jackson.annotation.JsonView} annotation. - *
- * Feature is enabled by default in 2.x: will be disabled in 3.0. */ - DEFAULT_VIEW_INCLUSION(true), + DEFAULT_VIEW_INCLUSION(false), /* /**********************************************************************