Skip to content

Include private members in API hash of traits. (sbt/sbt#2160)#4

Merged
eed3si9n merged 2 commits intosbt:1.0from
Duhemm:fix-2155
Sep 8, 2015
Merged

Include private members in API hash of traits. (sbt/sbt#2160)#4
eed3si9n merged 2 commits intosbt:1.0from
Duhemm:fix-2155

Conversation

@Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Aug 27, 2015

This is a port of sbt/sbt#2160.

I've included both commits, particularly the second that simply added back overloads to restore the binary compatibility. It's not required here, should I remove it?

Duhemm added 2 commits August 27, 2015 09:19
During compilation, scalac generates getters and setters for the fields
of traits, regardless of their access modifiers. Therefore, when a
field of a trait is modified, all its implementors must be recompiled to
take these changes into account.

Private fields of traits were not included in the API hash of traits,
and their implementors were thus not recompiled when modified.

This commit changes the way the API hash is computed for traits only, so
that the generated hash includes the private members of traits.

Fixes sbt/sbt#2155
@jsuereth
Copy link
Member

LGTM.

This repos hould have travisCI running, but does not. Please do not merge until TravisCI report success.

@Duhemm
Copy link
Contributor Author

Duhemm commented Sep 3, 2015

Triggering Travis

@Duhemm Duhemm closed this Sep 3, 2015
@Duhemm Duhemm reopened this Sep 3, 2015
@eed3si9n
Copy link
Member

eed3si9n commented Sep 8, 2015

Given that Travis is now enabled: https://travis-ci.org/sbt/incrementalcompiler/builds/78530783, this should be ok to merge.

eed3si9n added a commit that referenced this pull request Sep 8, 2015
Include private members in API hash of traits. (sbt/sbt#2160)
@eed3si9n eed3si9n merged commit e261f05 into sbt:1.0 Sep 8, 2015
@Duhemm Duhemm deleted the fix-2155 branch September 14, 2015 13:42
dwijnand pushed a commit to dwijnand/zinc that referenced this pull request Jun 26, 2017
Clean the build and the warnings
dwijnand pushed a commit to dwijnand/zinc that referenced this pull request Jun 26, 2017
Ref sbt#4. Inferred type was existential. This tightens it.
/review @Duhemm, @dwijnand
dwijnand pushed a commit to dwijnand/zinc that referenced this pull request Jun 26, 2017
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