I'm trying to test the RC.
The UIMAv3 core builds nicely under Java 11.
I can also use it as a dependency for uimaFIT v3.0.0-SNAPSHOT and build under
Java 8.
However, when I try to build DKPro Core v2 against UIMAv3.0.1 and uimaFIT
3.0.0-SNAPSHOT, I get
problems such as this:
[ERROR]
test4Preinitialized(de.tudarmstadt.ukp.dkpro.core.io.bincas.BinaryCasWriterReaderTest)
Time elapsed: 0.177 s <<< ERROR!
java.lang.NoSuchMethodError:
java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
at
de.tudarmstadt.ukp.dkpro.core.io.bincas.BinaryCasWriterReaderTest.read(BinaryCasWriterReaderTest.java:527)
at
de.tudarmstadt.ukp.dkpro.core.io.bincas.BinaryCasWriterReaderTest.test4Preinitialized(BinaryCasWriterReaderTest.java:150)
It seems these are caused by the addition of new methods in JDK9. See the link
below
https://github.com/apache/felix/pull/114
Searching for the error message above on Google yields more results. It seems a
workaround
can be to introduce an explicit cast to Buffer - but it seems fragile to me.
I guess that in order to be properly backwards compatible with Java 1.8, we may
want to
continue preparing releases on a JDK8.
Cheers,
-- Richard
> On 5. Nov 2018, at 23:39, Marshall Schor <[email protected]> wrote:
>
> Hi,
>
> uimaj-3.0.1 rc1 is posted and ready for voting.
>
> By doing this and the v2 2.10.3 together, I hope to gain some efficiency, and
> use only one code-signing-credit when the eclipse plugin jars are signed
> after the vote passes.
>
> The issues fixed are here:
> https://issues.apache.org/jira/projects/UIMA/versions/12340377
>
> Major changes are:
> -----------------
> The code and the build was adjusted to work ok using both Java 8 and Java 11.
> The fixes for 2.10.3 were merged.
> Several select framework bugs were fixed; it should align well with uimaFIT's
> implementation
>
> The source and binary tar/zips are here:
> https://dist.apache.org/repos/dist/dev/uima/uimaj-v3/3.0.1-rc1/artifacts/
>
> The eclipse update subsite is here:
> https://dist.apache.org/repos/dist/dev/uima/uimaj-v3/3.0.1-rc1/uimaj
>
> The maven staging repo is here:
> https://repository.apache.org/content/repositories/orgapacheuima-1204/
>
> SVN tag: https://svn.apache.org/repos/asf/uima/uv3/uimaj-v3/tags/uimaj-3.0.1/
>
> Built using the latest maven (version 3.6.0), and the latest uima-wide parent
> pom (version 12).
> Built using Java 11 :-) !
>
> Please vote on release:
>
> [ ] +1 OK to release
> [ ] 0 Don't care
> [ ] -1 Not OK to release, because ...
>
> Thanks.
>
> -Marshall