Skip to content

Merge the three no-plexus-utils ITs - #656

Merged
slachiewicz merged 1 commit into
masterfrom
agent/modello-it-merge-no-plexus-utils
Nov 22, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/modello-it-merge-no-plexus-utils

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

The dom4j, jdom and stax fixtures shared one model and differed only in goals and the XML library, so they are one no-plexus-utils IT 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.

@slachiewicz slachiewicz added the maintenance Cleanup, refactoring or other internal change label Nov 22, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 22, 2026 19:37

@slachiewicz slachiewicz left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@slachiewicz
slachiewicz force-pushed the agent/modello-it-merge-no-plexus-utils branch from e2ceff4 to 3347a96 Compare November 22, 2026 20:34

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. others map completeness — the map covers cross-library contamination (dom4j, jdom, stax), but doesn't include org/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.

  2. Variable name others — the name echoes the inline comment ("must not refer to the others"), which makes it contextually reasonable, but forbiddenPrefixes or disallowedPrefixes would 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.

@slachiewicz
slachiewicz merged commit 08649e1 into master Nov 22, 2026
11 checks passed
@slachiewicz
slachiewicz deleted the agent/modello-it-merge-no-plexus-utils branch November 22, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Cleanup, refactoring or other internal change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants