ion-java icon indicating copy to clipboard operation
ion-java copied to clipboard

Misleading Error for Truncated Text Timestamp

Open rmarrowstone opened this issue 1 year ago • 0 comments

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

rmarrowstone avatar Aug 28 '23 18:08 rmarrowstone