From 89d7a594ddea1fafdee246ae0d00a32dd8221edc Mon Sep 17 00:00:00 2001 From: zzz Date: Sat, 2 Dec 2017 23:25:43 +0000 Subject: [PATCH] fix test on Java 9 --- core/java/test/junit/net/i2p/data/LeaseSetTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/java/test/junit/net/i2p/data/LeaseSetTest.java b/core/java/test/junit/net/i2p/data/LeaseSetTest.java index 9147131c7..d8cf59d91 100644 --- a/core/java/test/junit/net/i2p/data/LeaseSetTest.java +++ b/core/java/test/junit/net/i2p/data/LeaseSetTest.java @@ -42,7 +42,9 @@ public class LeaseSetTest extends StructureTest { // should contain no leases now. exception.expect(IndexOutOfBoundsException.class); - exception.expectMessage("Index: 0, Size: 0"); + // Good for Java 7/8, but Java 9 message is "Index 0 out-of-bounds for length 0" + // and do we really need to verify the message? + //exception.expectMessage("Index: 0, Size: 0"); subj.getLease(0); }