ion-java
ion-java copied to clipboard
Misleading Error for Truncated Text Timestamp
Using ion-java 1.9.6
(scala)
"it" should "provide helpful error with malformed timestamp" in {
ionSystem.singleValue("2019-01-01T00:00:00.000")
}
Throws an error (as expected), but the message is misleading:
a bad character "\xffffffff" was encountered at line 1 offset 24
com.amazon.ion.impl.IonReaderTextRawTokensX$IonReaderTextTokenException: a bad character "\xffffffff" was encountered at line 1 offset 24
Expected the error message to indicate it hit EOF, not the character \xffffffff