Skip to content

Conversation

@retronym
Copy link
Member

@retronym retronym commented Jul 8, 2015

Adding tests for the selective use of boxing bridge methods
and to show that specialization is not subverted by indylambda.

Other aspects of indylambda are tested by tests like:

  • run/lambda-serialization.scala
  • run/indylambda-boxing

When those tests were written, they only tested the old backend.
However, now that we have Java 8 and the new backend avaialble
by default to partest, they provide the intended coverage.

Adding tests for the selective use of boxing bridge methods
and to show that specialization is not subverted by indylambda.

Other aspects of indylambda are tested by tests like:

  - run/lambda-serialization.scala
  - run/indylambda-boxing

When those tests were written, they only tested the old backend.
However, now that we have Java 8 and the new backend avaialble
by default to partest, they provide the intended coverage.
@scala-jenkins scala-jenkins added this to the 2.12.0-M3 milestone Jul 8, 2015
@retronym
Copy link
Member Author

retronym commented Jul 8, 2015

Review by @SethTisue or @lrytz

@adriaanm adriaanm modified the milestones: 2.12.0-M2, 2.12.0-M3 Jul 8, 2015
@lrytz
Copy link
Member

lrytz commented Jul 8, 2015

see also #4603

Copy link
Member

Choose a reason for hiding this comment

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

You need some more boilerplate: the class needs to extend ClearAfterClass, and ClearAfterClass.stateToClear needs to be set. Maybe this can be improved..

class IndyLambdaTest extends ClearAfterClass {
  ClearAfterClass.stateToClear = IndyLambdaTest
  ...

@lrytz
Copy link
Member

lrytz commented Jul 8, 2015

otherwise, LGTM

@adriaanm
Copy link
Contributor

adriaanm commented Jul 8, 2015

(admin note: please don't start your comment with LGTM until it's actually good to merge -- at some point the bot will start merging PRs as soon as the reviewer signs off, so may as well get into this habit now)

@adriaanm adriaanm removed the reviewed label Jul 8, 2015
@adriaanm
Copy link
Contributor

adriaanm commented Jul 8, 2015

I'm going to push this to M3, since all other M2 PRs have been merged and this can wait.

@adriaanm adriaanm modified the milestones: 2.12.0-M3, 2.12.0-M2 Jul 8, 2015
  - Add requisite boilerplate for test cleanup to IndyLambdaTest
  - ... and to the spot where I copy/pasted the wrong code from
  - Fix comment.
@retronym
Copy link
Member Author

retronym commented Jul 9, 2015

@lrytz I've addressed your comments.

@lrytz
Copy link
Member

lrytz commented Jul 9, 2015

LGTM

@lrytz lrytz modified the milestones: 2.12.0-M2, 2.12.0-M3 Jul 9, 2015
lrytz added a commit that referenced this pull request Jul 9, 2015
@lrytz lrytz merged commit 0576648 into scala:2.12.x Jul 9, 2015
@adriaanm adriaanm added 2.12 and removed 2.12 labels Oct 29, 2016
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.

4 participants