Skip to content

Can't use with Java runtime with minor version > 255 (e.g. openjdk 8u265) #3

@srstsavage

Description

@srstsavage

Due to this icu bug, this lib currently can't be used with Java runtimes with a minor verison >255, such as openjsk 8u256.

Caused by: java.lang.IllegalArgumentException: Invalid version number: Version number may be negative or greater than 255
at com.ibm.icu.util.VersionInfo.getInstance(VersionInfo.java:188)
at com.ibm.icu.impl.ICUDebug.getInstanceLenient(ICUDebug.java:65)
at com.ibm.icu.impl.ICUDebug.<clinit>(ICUDebug.java:69)

The icu lib is a transitive dependency of com.googlecode.foresite-toolkit:foresite:1.0-SNAPSHOT

[INFO] \- com.googlecode.foresite-toolkit:foresite:jar:1.0-SNAPSHOT:compile
[INFO]    +- com.hp.hpl.jena:jena:jar:2.5.5:compile
[INFO]    |  +- com.hp.hpl.jena:arq:jar:2.2:compile
[INFO]    |  |  \- org.apache.lucene:lucene-core:jar:2.2.0:compile
[INFO]    |  +- com.hp.hpl.jena:arq-extra:jar:2.2:compile
[INFO]    |  |  \- com.hp.hpl.jena:jenatest:jar:2.5.5:compile
[INFO]    |  +- com.hp.hpl.jena:iri:jar:0.5:compile
[INFO]    |  +- antlr:antlr:jar:2.7.5:compile
[INFO]    |  +- com.hp.hpl.jena:concurrent-jena:jar:1.3.2:compile
[INFO]    |  +- com.ibm.icu:icu4j:jar:3.4.4:compile
[INFO]    |  +- com.hp.hpl.jena:json-jena:jar:1.0:compile
[INFO]    |  +- stax:stax-api:jar:1.0:compile
[INFO]    |  +- org.codehaus.woodstox:wstx-asl:jar:3.0.0:compile
[INFO]    |  +- xerces:xercesImpl:jar:2.7.1:compile
[INFO]    |  \- xerces:xmlParserAPIs:jar:2.0.2:compile

icu bug is fixed in 68.1, but the version included here is com.ibm.icu:icu4j:jar:3.4.4 from around 2006.

Also, the dependency on the foresite jar is worrying since it's a SNAPSHOT version and the project appears to no longer be maintained. The org.codehaus.woodstox:wstx-asl:jar:3.0.0 dependency also contains an invalid pom (mismatched groupId) which causes errors with some dependency managers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions