uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-5369) java9 javadoc requires defs for annotations
Date Fri, 14 Apr 2017 15:17:41 GMT

    [ https://issues.apache.org/jira/browse/UIMA-5369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15969128#comment-15969128

Marshall Schor commented on UIMA-5369:

I've managed to install a version of Eclipse that works with Java 9 (4.7 milestone 6 build
+ a Java9 addon enablement).  It has bugs (e.g., I could not install the subversion plugin
because the site it was picking this up from was https  and there was some missing module
for handling the https protocol).

After adding an argument to both the compiler and the surefire running to include the javax.xml.bind
"module" (which was part of standard Java 8 but no longer there in Java 9), most of the test
cases ran.  The failures were of 2 kinds: one where the test was using reflection to set "accessible"
an otherwise unaccessable method, and the other having to do with XML formatting.

The first has been locked down by Java 9, so not sure what to do other than drop that particular

The second failure kind is an xml generation failure; the generated XML is having different
notions of using whitespace to 'format' the output (putting in extra newlines and blanks),
so the compare fails.

I'm probably going to temporarily disable these tests with a conditional that will only be
active for the "early-access" version of Java 9; this way we'll get a good reminder to attend
to these issues (if they're still issues) when Java 9 is officially released.

> java9 javadoc requires defs for annotations
> -------------------------------------------
>                 Key: UIMA-5369
>                 URL: https://issues.apache.org/jira/browse/UIMA-5369
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.10.1SDK, 3.0.0SDK-beta
> Several things need fixups to allow Java 9 builds.
> # add a <profile> which triggers on <jdk>9
> # the compiler target level needs to be set to 1.9
> # the compiler needs an additional argument to include the javax.xml.bind module, which
is otherwise no longer available.
> # The javadoc needs to specify the javadocVersion, otherwise it fails to discover it
and uses 0, which causes the "tag" options to be ignored.
> # The file FSRBTIndex is completely commented out in v3.  Javadoc complains.  Move this
to the unused-saved folder...
> # Some javadoc errors involving trailing </p> and </html> tags.
> # 1 error due to using a no-longer available "setAccessible" on a method
> # 2 xml miscompares of generated formatted XML due to different formatting styles

This message was sent by Atlassian JIRA

View raw message