Skip to content

Commit

Permalink
AVRO-1823: Java: Do not swallow IOException while reading magic bytes…
Browse files Browse the repository at this point in the history
…. Contributed by Koji Noguchi.
  • Loading branch information
rdblue committed Apr 16, 2016
1 parent 58daaf0 commit f4f2263
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Trunk (not yet released)

AVRO-1701: Fix for "warning: comparison between 'const enum testgen_r::ExampleEnum' and 'const enum testgen::ExampleEnum'" (peter liu via thiru)

AVRO-1823: Java: Do not swallow IOException while reading magic bytes.
(Koji Noguchi via blue)

BUG FIXES

AVRO-1493. Java: Avoid the "Turkish Locale Problem". Schema fingerprints are
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void initialize(InputStream in) throws IOException {
try {
vin.readFixed(magic); // read magic
} catch (IOException e) {
throw new IOException("Not a data file.");
throw new IOException("Not a data file.", e);
}
if (!Arrays.equals(DataFileConstants.MAGIC, magic))
throw new IOException("Not a data file.");
Expand Down

0 comments on commit f4f2263

Please sign in to comment.