Commit 63ed3ea
authored
Fix JAXB compilation warnings in geode-wan distributedTest (#7947)
Add javax.xml.bind:jaxb-api dependency to geode-wan's distributedTest
compile classpath to resolve compilation warnings about missing
XmlAccessType enum constant.
Problem:
The geode-wan module's distributedTest compilation was generating
warnings:
warning: unknown enum constant XmlAccessType.FIELD
reason: class file for jakarta.xml.bind.annotation.XmlAccessType
not found
Root Cause:
The distributed test code references JAXB annotations (such as
@XmlAccessorType) through transitive dependencies from geode-core
and other modules, but the JAXB API was not explicitly declared
as a compile-time dependency for the distributedTest source set.
This caused the Java annotation processor to be unable to resolve
the XmlAccessType enum during compilation.
Solution:
Added 'javax.xml.bind:jaxb-api' to distributedTestCompileOnly
configuration in geode-wan/build.gradle. This ensures the JAXB
API is available during compilation of distributed test code,
allowing the annotation processor to properly resolve JAXB
annotations.
The compileOnly scope is appropriate here since:
- JAXB API is only needed at compile time for annotation processing
- Runtime implementation is provided by other modules' dependencies
- Keeps the test classpath minimal
Testing:
Verified with: ./gradlew :geode-wan:compileDistributedTestJava
Build completes successfully without JAXB warnings.
Related modules using similar pattern:
- geode-core: has jaxb-api in implementation scope
- geode-gfsh: has jaxb-api in implementation scope
- geode-connectors: has jaxb-api in implementation scope
- geode-web-api: has jaxb-api in implementation scope1 parent c496e98 commit 63ed3ea
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
0 commit comments