You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying out Heritrix on the first JDK 17 release encountered this exception:
$ java -version
openjdk version "17" 2021-09-14
OpenJDK Runtime Environment Temurin-17+35 (build 17+35)
OpenJDK 64-Bit Server VM Temurin-17+35 (build 17+35, mixed mode, sharing)
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 2
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4601)
at java.base/java.lang.String.substring(String.java:2704)
at org.archive.crawler.Heritrix.instanceMain(Heritrix.java:198)
at org.archive.crawler.selftest.SelfTestBase.startHeritrix(SelfTestBase.java:207)
at org.archive.crawler.selftest.SelfTestBase.open(SelfTestBase.java:113)
at org.archive.crawler.selftest.SelfTestBase.testSomething(SelfTestBase.java:151)
I think we should just remove the version check. It's ensuring we're running Java 1.6 or later, but since we target Java 8 for compilation the class can't even be loaded on the old JVMs this check would trigger on, so this code is effectively unreachable.
Trying out Heritrix on the first JDK 17 release encountered this exception:
I think we should just remove the version check. It's ensuring we're running Java 1.6 or later, but since we target Java 8 for compilation the class can't even be loaded on the old JVMs this check would trigger on, so this code is effectively unreachable.
heritrix3/engine/src/main/java/org/archive/crawler/Heritrix.java
Lines 196 to 204 in 698341a
The text was updated successfully, but these errors were encountered: