Skip to content

HOTFIX: faile to compile HighwatermarkCheckpointBench by scala 2.13#8361

Closed
chia7712 wants to merge 1 commit into
apache:trunkfrom
chia7712:fix_HighwatermarkCheckpointBench
Closed

HOTFIX: faile to compile HighwatermarkCheckpointBench by scala 2.13#8361
chia7712 wants to merge 1 commit into
apache:trunkfrom
chia7712:fix_HighwatermarkCheckpointBench

Conversation

@chia7712

@chia7712 chia7712 commented Mar 26, 2020

Copy link
Copy Markdown
Member

The source compatibility offered by scala-collection-compat is based on scala implicit conversions. It means the "explicit" reference in java code HighwatermarkCheckpointBench can't join the party (scala.jdk.CollectionConverters is linked to scala 2.13 code and the symbol used by HighwatermarkCheckpointBench is gone)

It seems to me we should have a collection of helper methods to offer the conversion like scala-collection-compat and it servers for jmh java code only.

This PR replaces scala.jdk.CollectionConverters by scala.collection.JavaConverters since scala.collection.JavaConverters methods required by HighwatermarkCheckpointBench exists on both scala 2.12 and scala 2.13.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@chia7712

Copy link
Copy Markdown
Member Author

this issue is related to #6741

@chia7712

chia7712 commented Mar 26, 2020

Copy link
Copy Markdown
Member Author

@ijuma The scala.jdk.CollectionConverters was added by c2c6f3c in #6741. Could you take a look?

@ijuma

ijuma commented Mar 26, 2020

Copy link
Copy Markdown
Member

@chia7712 Thanks for the PR. I fixed this as part of 222726d.

@ijuma ijuma closed this Mar 26, 2020
@chia7712
chia7712 deleted the fix_HighwatermarkCheckpointBench branch March 25, 2024 15:23
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