Rewrite Doxygen unit tests for Java using Java 9 API
In particular, do not use com.sun.javadoc deprecated since Java 9 and finally removed in Java 13, to allow the tests to run under modern JRE. They don't run under Java 8 and earlier any more, but this shouldn't be a huge problem nowadays and as SWIG output is independent from the Java version used, it's enough to test it with modern Java versions. Note that the tests themselves were changed only in the most minimal way, to adapt them to the new way of running javadoc (which is now also integrated into CommentParser itself instead of being duplicated in every test).
This commit is contained in:
parent
5a8875ca9d
commit
66a7826192
18 changed files with 140 additions and 180 deletions
|
|
@ -108,13 +108,11 @@ setup = \
|
|||
mkdir $(JAVA_PACKAGE); \
|
||||
fi
|
||||
|
||||
# Doxygen test cases need to be compiled together with the CommentParser class
|
||||
# which depends on com.sun.javadoc package which is located in this JAR.
|
||||
# Doxygen test cases need to be compiled together with the CommentParser class.
|
||||
CommentParser.class:
|
||||
$(COMPILETOOL) $(JAVAC) -classpath $(JAVA_CLASSPATH) -d . $(srcdir)/CommentParser.java
|
||||
|
||||
JAVA_CLASSPATH := .
|
||||
$(DOXYGEN_TEST_CASES:=.cpptest): JAVA_CLASSPATH := "$(JAVA_TOOLS_JAR)$(JAVA_CLASSPATH_SEP)."
|
||||
$(DOXYGEN_TEST_CASES:=.cpptest): CommentParser.class
|
||||
|
||||
# Compiles java files then runs the testcase. A testcase is only run if
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue