This is an automated email from the ASF dual-hosted git repository. dkulp pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push: new da680e4 Fix failing test da680e4 is described below commit da680e43943ef18f12443e2a7b21bb9258dfa827 Author: Daniel Kulp <dk...@apache.org> AuthorDate: Fri May 22 09:48:59 2020 -0400 Fix failing test --- lang/java/tools/src/test/compiler/output/FieldVisibilityTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/java/tools/src/test/compiler/output/FieldVisibilityTest.java b/lang/java/tools/src/test/compiler/output/FieldVisibilityTest.java index 4289405..0f66ed7 100644 --- a/lang/java/tools/src/test/compiler/output/FieldVisibilityTest.java +++ b/lang/java/tools/src/test/compiler/output/FieldVisibilityTest.java @@ -103,7 +103,7 @@ public class FieldVisibilityTest extends org.apache.avro.specific.SpecificRecord case 0: return name; case 1: return favorite_number; case 2: return favorite_color; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); + default: throw new IndexOutOfBoundsException("Invalid index: " + field$); } } @@ -114,7 +114,7 @@ public class FieldVisibilityTest extends org.apache.avro.specific.SpecificRecord case 0: name = (java.lang.CharSequence)value$; break; case 1: favorite_number = (java.lang.Integer)value$; break; case 2: favorite_color = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); + default: throw new IndexOutOfBoundsException("Invalid index: " + field$); } }