Skip to content

fix: exceptions, main->test visibility, reason for android lint jars.#1708

Merged
autonomousapps merged 1 commit into
mainfrom
trobalik.bugs
May 20, 2026
Merged

fix: exceptions, main->test visibility, reason for android lint jars.#1708
autonomousapps merged 1 commit into
mainfrom
trobalik.bugs

Conversation

@autonomousapps

@autonomousapps autonomousapps commented May 20, 2026

Copy link
Copy Markdown
Owner

Three separate bugfixes:

  1. reason output said "implies implementation" when it should have been "implies runtimeOnly" in the android lint jar case.
  2. The new "exceptions are special" handling was over-eager and flagging things that only referenced exceptions. We only want to flag things that provide the exception types.
  3. MutableSet<Usage>.simplify(visibility, bucket) in StandardTransform wasn't properly handling the case when a usage was visible on both compile and runtime classpaths. In such a case, we can filter out all usages.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Separate bug discovered when using reason.

@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test :: gradle
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
build-logic buildHealth 9.4.1 Build Scan not published
build-logic check 9.4.1 Build Scan not published
dependency-analysis-gradle-pl…
buildHealth 9.4.1 Build Scan published
testkit buildHealth 9.4.1 Build Scan published
dependency-analysis-gradle-pl…
check 9.4.1 Build Scan published

@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test :: gradle
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
build-logic buildHealth 9.4.1 Build Scan not published
build-logic check 9.4.1 Build Scan not published
dependency-analysis-gradle-pl…
buildHealth 9.4.1 Build Scan published
testkit buildHealth 9.4.1 Build Scan published
dependency-analysis-gradle-pl…
check 9.4.1 Build Scan published
testkit check 9.4.1 Build Scan published
dependency-analysis-gradle-pl…
:functionalTest 9.4.1 Build Scan published
dependency-analysis-gradle-pl…
:functionalTest 9.4.1 Build Scan published

1. reason output said "implies implementation" when it should have been "implies runtimeOnly" in the android lint jar case.
2. The new "exceptions are special" handling was over-eager and flagging things that only referenced exceptions. We only want to flag things that provide the exception types.
3. MutableSet<Usage>.simplify(visibility, bucket) in StandardTransform wasn't properly handling the case when a usage was visible on both compile and runtime classpaths. In such a case, we can filter out all usages.
@autonomousapps autonomousapps changed the title wip fix: exceptions, main->test visibility, reason for android lint jars. May 20, 2026
@autonomousapps autonomousapps marked this pull request as ready for review May 20, 2026 20:24
@autonomousapps autonomousapps merged commit 5e3eb8c into main May 20, 2026
1 check passed
@autonomousapps autonomousapps deleted the trobalik.bugs branch May 20, 2026 21:37
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.

1 participant