Skip to content

Provide compatibility with current Scala 2.12.x (close to RC1) #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2016

Conversation

szeiger
Copy link
Contributor

@szeiger szeiger commented Aug 29, 2016

  • Add the required override modifiers to trait methods that now
    extend default methods of Java interfaces.
  • Add casts in some of these methods because the Scala primitive types
    are not compatible at the type level with the (now inherited) Java
    boxed types.
  • Use the boxed JFunction types in BoxingTest because the generic ones
    do not exist anymore.
  • Tests in LambdaTest need to be commented out because usage from Java
    changed significantly after SD-121 Remove now-unneeded J{Function,Proc}N functional interfaces scala#5298
    but we can still cross-build the actual library against 2.11 and
    2.12.0-M5. At some point we should consider branching.

- Add the required `override` modifiers to trait methods that now
  extend default methods of Java interfaces.

- Add casts in some of these methods because the Scala primitive types
  are not compatible at the type level with the (now inherited) Java
  boxed types.

- Use the boxed JFunction types in BoxingTest because the generic ones
  do not exist anymore.

- Tests in LambdaTest need to be commented out because usage from Java
  changed significantly after scala/scala#5298
  but we can still cross-build the actual library against 2.11 and
  2.12.0-M5. At some point we should consider branching.
szeiger added a commit to szeiger/community-builds that referenced this pull request Aug 29, 2016
Switch to scala/scala-java8-compat#76 which
should work on 2.12.x now that scala/scala#5367
was also merged.
@adriaanm adriaanm mentioned this pull request Aug 30, 2016
2 tasks
@szeiger
Copy link
Contributor Author

szeiger commented Aug 30, 2016

Used in scala/community-build#262. Review by @SethTisue

@SethTisue SethTisue self-assigned this Aug 30, 2016
@SethTisue
Copy link
Member

code LGTM

"usage from Java changed significantly" — shouldn't that mean updates to README.md?

@szeiger
Copy link
Contributor Author

szeiger commented Aug 31, 2016

I'm working on restoring some of the old functionality. Hopefully the end result will only require minor changes compared to M5.

@szeiger szeiger merged commit e84ca18 into scala:master Aug 31, 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.

2 participants