Skip to content

Fixed ant test failure due to missing Java 25 --enable-preview flag#177

Merged
OpenPj merged 1 commit into
trunkfrom
fix/ant-test-failure-due-to-preview-flag-on-CONNECTORS-1784
Jul 6, 2026
Merged

Fixed ant test failure due to missing Java 25 --enable-preview flag#177
OpenPj merged 1 commit into
trunkfrom
fix/ant-test-failure-due-to-preview-flag-on-CONNECTORS-1784

Conversation

@mingchun-zhao

Copy link
Copy Markdown
Contributor

I've run ant test and noticed that the CMIS SanityHSQLDBTest failed with the following error:

run-tests-HSQLDB:
... ...
BUILD FAILED
... ...
/home/m-cho/manifoldcf/dist/connector-build.xml:1458: Test org.apache.manifoldcf.crawler.connectors.cmis.tests.SanityHSQLDBTest failed

After investigating the full stack trace, I found the root cause:
The CMIS connector classes were compiled with Java 25 preview features, but the tests with ant were executed without the --enable-preview flag.
When I added --enable-preview to the build configuration, the failure was resolved.

I confirmed that all test cases passed for both ant and mvn test.

@mingchun-zhao mingchun-zhao requested a review from OpenPj July 5, 2026 07:49
@mingchun-zhao mingchun-zhao self-assigned this Jul 5, 2026
@OpenPj OpenPj merged commit bd373d6 into trunk Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants