Skip to content
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

FTP: enable Scala 2.13 and 2.12.9 compilation #1779

Merged
merged 7 commits into from
Aug 26, 2019
Merged

Conversation

ennru
Copy link
Member

@ennru ennru commented Jun 25, 2019

Purpose

Allow publishing Alpakka FTP for Scala 2.13, and using Scala 2.12.9 for compilation.

References

Issue #1532

Background Context

Using Scala 2.12.8 hits scala/bug#11305
Scala 2.13.0 does not compile the Java tests successfully which looks like the same problem of missing type signatures.

Changes

Due to the changed handling of static forwarders in Scala 2.12.8+ the pattern used to implement the different FTP styles doesn't compile anymore.

  • Make FtpApi just an interface
  • Move type member to type parameter in FtpApi
  • Repeat implementations of the operations in every FTP style

@probot-autolabeler probot-autolabeler bot added the dependency-change For PRs changing the version of a dependency. label Aug 21, 2019
@ennru ennru changed the title WIP FTP: enable Scala 2.13 compilation FTP: enable Scala 2.13 and 2.12.9 compilation Aug 22, 2019
@ennru ennru marked this pull request as ready for review August 22, 2019 09:09
@ennru ennru added this to the 2.0.0 milestone Aug 22, 2019
Copy link
Member

@2m 2m left a comment

Choose a reason for hiding this comment

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

LGTM. It is unfortunate that we were not able to get rid of the duplication.

@2m 2m merged commit c473198 into akka:master Aug 26, 2019
@ennru ennru mentioned this pull request Sep 3, 2019
@ennru ennru deleted the ftp-scala-2.13 branch April 21, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency-change For PRs changing the version of a dependency. p:ftp p:mqtt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants