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

Java streaming parser/serializer for Ion.

Results 141 ion-java issues
Sort by recently updated
recently updated
newest added

[This test](https://github.com/amzn/ion-java/blame/d5939190808b815ec940ef5d45db0d39e9c3fb63/test/com/amazon/ion/SystemProcessingTestCase.java#L1024) assumes IVMs will be propagated by the user level writer APIs but without any actual userdata serialized we no longer roundtrip anything at all.

There is no way I have been able to find to get an accurate line number from a supported API of IonReader when reading Ion text. There is the `SpanProvider`...

(Isolating a defect identified amidst #226) The reader is computing incorrect line numbers inside multi-line structs and lists (but not sexps). The following test case illustrates: ``` import static com.amazon.ion.util.Spans.currentSpan;...

According to internal policy Copyright header should be: ``` Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not...

Decompressing streams and `byte[]` is an orthogonal concern over parsing and shouldn't be part of ion-java. Supporting this feature has caused memory leaks, see https://github.com/amzn/ion-java/issues/198, and makes its public API...

cleanup

#152 missed a spot. See: https://github.com/amzn/ion-java/blob/master/src/software/amazon/ion/impl/bin/IonRawBinaryWriter.java#L563 This should be changed such that the flag is only set to `true` when the $ion_symbol_table annotation is *first*. This code path gets hit...

The IonValueLite DOM has inconsistent handling of SID-only SymbolTokens across mutation operations. Sometimes it prunes entities entirely (e.g. **annotations** in clone), other times it retains the SID-only structure (e.g. ),...

cleanup

Two observations: * for the code below and per [List.subList()](https://docs.oracle.com/javase/8/docs/api/java/util/List.html#subList-int-int-), the IonList should throw an IndexOutOfBounds exception (and List is apparently incorrectly throwing an IllegalArgumentException...) * the `toString()` method on...

```java String tsText = "0001-01-01T00:00:00Z"; long instantMillis = Instant.parse(tsText).toEpochMilli(); // -62135596800000 long tsMillis = Timestamp.valueOf(tsText).getMillis(); // -62135769600000 Timestamp.forMillis(instantMillis, 0); // 0001-01-03T00:00:00.000Z ``` _Originally posted by @raganhan in https://github.com/amzn/ion-java/issues/160#issuecomment-427997832_

bug

`ValueFactory` has the following two methods: - [newList(IonSequence)](https://github.com/amzn/ion-java/blob/9dc90d41f43b23c8fa9382d9e696665b0054810b/src/software/amazon/ion/ValueFactory.java#L269) - [newSexp(IonSequence)](https://github.com/amzn/ion-java/blob/9dc90d41f43b23c8fa9382d9e696665b0054810b/src/software/amazon/ion/ValueFactory.java#L377) Both of these had the following text in their javadoc: ``` * This method is temporary until {@link #newSexp(Collection)} is...

cleanup