Repository navigation
Merge the three no-plexus-utils ITs - #656
Conversation
slachiewicz
left a comment
There was a problem hiding this comment.
Two things to settle before merge. The body says a DOM field was added to the model so the dom4j, jdom and stax classes each fail to compile, but no-plexus-utils/src/main/mdo/thing.mdo is a 100%-similarity rename of the dom4j model with no DOM field — please reword. Also, the merged fixture puts dom4j, jdom and stax2 on one classpath, so the old per-variant isolation (one XML library at a time) is no longer asserted; is that intended? The five generated-class assertions are otherwise preserved.
The three fixtures used the same model and differed only in the generator goals and the XML library on the classpath. The merged IT compiles all five reader and writer classes without plexus-utils, so a DOM field in the model makes each variant fail to compile.
e2ceff4 to
3347a96
Compare
gnodet-bot
left a comment
There was a problem hiding this comment.
Sound consolidation — merging three near-identical ITs into one no-plexus-utils IT and switching to constant-pool inspection is clean and testable. Two minor items:
-
othersmap completeness — the map covers cross-library contamination (dom4j, jdom, stax), but doesn't includeorg/codehaus/plexus/itself. If generated readers/writers could accidentally pull in plexus-utils, those packages wouldn't be caught. Worth adding for completeness since the whole point of the IT is to verify plexus-utils is absent. -
Variable name
others— the name echoes the inline comment ("must not refer to the others"), which makes it contextually reasonable, butforbiddenPrefixesordisallowedPrefixeswould make the intent self-documenting without needing to read the comment.
Both are nits — not blocking.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
The dom4j, jdom and stax fixtures shared one model and differed only in goals and the XML library, so they are one
no-plexus-utilsIT that compiles every generated reader and writer without plexus-utils. With the three libraries now on one classpath, the verify script checks each generated class's constant pool instead, so the dom4j, jdom and stax classes still may not refer to another library's packages.