File tree Expand file tree Collapse file tree 4 files changed +23
-5
lines changed
src/main/java/com/fasterxml/jackson/databind/ext Expand file tree Collapse file tree 4 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -956,6 +956,10 @@ Hesham Massoud (heshamMassoud@github)
956
956
(2.10.0 )
957
957
958
958
David Connelly (dconnelly@github)
959
- * Reported#2446 : Java 11 : Unable to load JDK7 types (annotations, java.nio.file.Path):
959
+ * Reported #2446 : Java 11 : Unable to load JDK7 types (annotations, java.nio.file.Path):
960
960
no Java7 support added
961
961
(2.10.0 )
962
+
963
+ Wahey (KevynBct@github)
964
+ * Reported #2466 : Didn' t find class "java.nio.file.Path" below Android api 26
965
+ (2.10.0)
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ Project: jackson-databind
4
4
=== Releases ===
5
5
------------------------------------------------------------------------
6
6
7
+ 2.10.0 (not yet released)
8
+
9
+ #2466 : Didn' t find class "java.nio.file.Path" below Android api 26
10
+ (reported by KevynBct@github)
11
+
7
12
2.10.0.pr3 (17-Sep-2019)
8
13
9
14
#1093: Default typing does not work with `writerFor(Object.class)`
Original file line number Diff line number Diff line change 10
10
*/
11
11
public class Java7HandlersImpl extends Java7Handlers
12
12
{
13
+ private final Class <?> _pathClass ;
14
+
15
+ public Java7HandlersImpl () {
16
+ // 19-Sep-2019, tatu: Important to do this here, because otherwise
17
+ // we get [databind#2466]
18
+ _pathClass = Path .class ;
19
+ }
20
+
13
21
@ Override
14
22
public Class <?> getClassJavaNioFilePath () {
15
- return Path . class ;
23
+ return _pathClass ;
16
24
}
17
25
18
26
@ Override
19
27
public JsonDeserializer <?> getDeserializerForJavaNioFilePath (Class <?> rawType ) {
20
- if (rawType == Path . class ) {
28
+ if (rawType == _pathClass ) {
21
29
return new NioPathDeserializer ();
22
30
}
23
31
return null ;
24
32
}
25
33
26
34
@ Override
27
35
public JsonSerializer <?> getSerializerForJavaNioFilePath (Class <?> rawType ) {
28
- if (Path . class .isAssignableFrom (rawType )) {
36
+ if (_pathClass .isAssignableFrom (rawType )) {
29
37
return new NioPathSerializer ();
30
38
}
31
39
return null ;
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ public class Java7SupportImpl extends Java7Support
17
17
private final Class <?> _bogus ;
18
18
19
19
public Java7SupportImpl () {
20
- // Trigger loading of annotations that only JDK 7 has...
20
+ // Trigger loading of annotations that only JDK 7 has, to trigger
21
+ // early fail (see [databind#2466])
21
22
Class <?> cls = Transient .class ;
22
23
cls = ConstructorProperties .class ;
23
24
_bogus = cls ;
You can’t perform that action at this time.
0 commit comments