File tree 1 file changed +10
-0
lines changed
src/main/java/com/fasterxml/jackson/dataformat/xml/deser
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 13
13
import javax .xml .stream .XMLStreamWriter ;
14
14
15
15
import com .fasterxml .jackson .core .*;
16
+ import com .fasterxml .jackson .core .JsonParser .NumberTypeFP ;
16
17
import com .fasterxml .jackson .core .base .ParserMinimalBase ;
17
18
import com .fasterxml .jackson .core .exc .StreamConstraintsException ;
18
19
import com .fasterxml .jackson .core .io .IOContext ;
@@ -1174,6 +1175,15 @@ public NumberType getNumberType() throws IOException {
1174
1175
return NumberType .BIG_INTEGER ;
1175
1176
}
1176
1177
1178
+ /**
1179
+ * XML has no notion of natural/native floating-point type (has to be
1180
+ * provided externally via Schema or so), so need to ensure we indicate that.
1181
+ */
1182
+ @ Override // added in 2.17
1183
+ public NumberTypeFP getNumberTypeFP () throws IOException {
1184
+ return NumberTypeFP .UNKNOWN ;
1185
+ }
1186
+
1177
1187
@ Override
1178
1188
public Number getNumberValue () throws IOException {
1179
1189
if (_numTypesValid == NR_UNKNOWN ) {
You can’t perform that action at this time.
0 commit comments