You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
big-guy
changed the title
Incremental java compiler does not detect deleted classes used in type parameters in some cases
Incremental java compiler does not detect changes to classes used in type parameters in some cases
Apr 15, 2022
Expected Behavior
Gradle build should fail when Java compilation should fail.
Current Behavior
Gradle build succeeds when Java compilation should fail.
Context
Given these classes:
If I delete
Deleted
,Sub
should be recompiled (and fail compilation). I found this in the gradle/gradle codebase when deleting some classes.The build fails if
Sub
has a reference toT
or I disable incremental compilation.A similar thing happens in a slightly simpler example:
It looks like we ignore the type parameters in some cases.
Steps to Reproduce
I reproduced the failure in a test:
#20479
Your Environment
This happens everywhere.
I tested 5.0, 6.0, 7.0 and 7.3/7.4/7.5. I think this has never worked.
The text was updated successfully, but these errors were encountered: