GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — Let the setUp methods actually run by slachiewicz · Pull Request #587 · codehaus-plexus/modello Conversation
Member
Follow-up to #584, where this turned up while debugging a Java 8 failure. It predates that PR and #583 — both methods were already unannotated before either. Neither Annotating is not quite enough on its own. The java override does not call
Evidence that it really was deadRather than argue from reading the code, I put an unconditional
A method that throws unconditionally cannot be executing. The second row also confirms both paths reach it: xdoc extends the base directly, java reaches it through the new Verification
Use Draft until CI confirms, jdk-8 included. Generated-by: Claude Opus 5 (1M context)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsNeither AbstractModelloGeneratorTest.setUp() nor its override in AbstractModelloJavaGeneratorTest carried @beforeeach, so under JUnit Jupiter neither was ever called. Both delete and recreate the test's output directory, which meant target/generator-results/<name> was never cleaned between runs and generated classes from an earlier run could survive into a later one and hide a failure. The directories existed at all only because the compiler happened to create them. Annotating them is not quite enough on its own: the java override does not call super, so the sources directory would still go untouched. It now chains, and the two levels clean the two directories they each own. AbstractStaxGeneratorTestCase existed only to add the annotation and delegate to super - the workaround for this bug in the one place it was noticed. It is no longer needed. Verified by putting an unconditional throw at the top of the base setUp: on master the affected modules still pass, which is only possible if the method never runs; with this change the same probe fails every test that inherits it, through both the direct and the chained path. Generated-by: Claude Opus 5 (1M context)
slachiewicz
marked this pull request as ready for review
Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |