Skip to content

False invalidation by inheritance on JDK 11 #998

@lrytz

Description

@lrytz

steps

  • clone https://github.com/lrytz/sbtproj
  • use JDK 11 (OpenJDK 64-Bit Server VM Temurin-11.0.12+7)
  • sbt
    • clean
    • compile
    • debug
    • un-commment the println in A.scala
    • compile

A is recompiled, then the log shows

[debug] Invalidated by transitive inheritance dependency: Set(B)

and B is recompiled in a second round.

Doesn't happen on JDK 8.

Metadata

Metadata

Assignees

Labels

area/over_compilationZinc picks up more compilation than needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions