Skip to content

Conversation

swankjesse
Copy link
Collaborator

We had a bug when @TestInterceptor was applied to a superclass from another module. The compiler plug-in didn't reliabily see the rewritten superclass, so the superclass interceptors were not executed.

We had a bug when @TestInterceptor was applied to a superclass
from another module. The compiler plug-in didn't reliabily
see the rewritten superclass, so the superclass interceptors
were not executed.
@swankjesse swankjesse requested a review from JakeWharton August 25, 2025 18:49
@Test
fun happyPath() {
val tester = GradleTester("interceptor")
val result = tester.cleanAndBuildAndFail(":lib:test")
assertThat(result.outcome).isEqualTo(TaskOutcome.FAILED)
Copy link
Collaborator

@JakeWharton JakeWharton Aug 25, 2025

Choose a reason for hiding this comment

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

These assertions seem redundant. Gradle's buildAndFail will already throw if the build did not fail.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nuked!

@swankjesse swankjesse merged commit 85790b8 into main Aug 25, 2025
1 check passed
@swankjesse swankjesse deleted the jwilson.0825.cross_modules branch August 25, 2025 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants