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

Scala3 support for jms connector #145

Merged
merged 5 commits into from
Jun 10, 2023
Merged

Conversation

pjfanning
Copy link
Contributor

@pjfanning pjfanning commented Jun 8, 2023

Part of #126

Scala 3 compile issues needed fixing.

  • main ones were related to using protected methods on self types
  • also some issues where fields were ambiguous (multiple inheritance in Scala means that a field can be declared on 2 separate traits)

I introduced a GraphStageCompanion trait to give public access to the methods that were needed to get Scala3 compile to work.

@pjfanning pjfanning changed the title [DRAFT] Scala3 support for jms connector Scala3 support for jms connector Jun 8, 2023
@pjfanning pjfanning force-pushed the scala3-jms branch 2 times, most recently from 3079935 to 530736d Compare June 8, 2023 23:10
Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

Some more cases of Any


def graphStageDestination: Destination

def scheduleOnceOnGraphStage(timerKey: Any, delay: FiniteDuration): Unit
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we avoid using Any here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This signature is taken from the function I am delegating to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mdedetrich is this answer ok? The timerKey can be any case class, the 'Any' type is actually what makes sense. This is also an internal class, not an API one.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let me check this now, we really shouldn't have Any like this so something fishy is going on.

Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

Okay I had a deeper look and you are right, it also uses Any with the current version (i.e. scheduleOnce). This probably should be looked into but its not relevant to Scala 3

Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

lgtm

@pjfanning pjfanning merged commit 8674ff5 into apache:scala3 Jun 10, 2023
@pjfanning pjfanning deleted the scala3-jms branch June 10, 2023 10:05
pjfanning added a commit that referenced this pull request Jun 10, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit that referenced this pull request Jun 10, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit that referenced this pull request Jun 26, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit that referenced this pull request Jun 26, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit to pjfanning/incubator-pekko-connectors that referenced this pull request Jun 26, 2023
* try scala 3 (apache#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit to pjfanning/incubator-pekko-connectors that referenced this pull request Jun 26, 2023
* try scala 3 (apache#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala

add scala3 support for s3

Update TestUtils.scala

refactor

Update Dependencies.scala

hex string issue

merge issue

Update Dependencies.scala

more merge issues
pjfanning added a commit to pjfanning/incubator-pekko-connectors that referenced this pull request Jun 26, 2023
* try scala 3 (apache#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala

add scala3 support for s3

Update TestUtils.scala

refactor

Update Dependencies.scala

hex string issue

merge issue

Update Dependencies.scala

more merge issues

Update Formats.scala
pjfanning added a commit that referenced this pull request Jun 27, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit to pjfanning/incubator-pekko-connectors that referenced this pull request Jun 27, 2023
* try scala 3 (apache#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala

add scala3 support for s3

Update TestUtils.scala

refactor

Update Dependencies.scala

hex string issue

merge issue

Update Dependencies.scala

more merge issues

Update Formats.scala
mdedetrich pushed a commit to mdedetrich/pekko-connectors that referenced this pull request Jul 3, 2023
* try scala 3 (apache#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit that referenced this pull request Jul 14, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit to pjfanning/incubator-pekko-connectors that referenced this pull request Jul 14, 2023
* try scala 3 (apache#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala

add scala3 support for s3

Update TestUtils.scala

refactor

Update Dependencies.scala

hex string issue

merge issue

Update Dependencies.scala

more merge issues

Update Formats.scala
pjfanning added a commit that referenced this pull request Aug 3, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit that referenced this pull request Aug 6, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit that referenced this pull request Aug 6, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit that referenced this pull request Aug 11, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
mdedetrich pushed a commit to mdedetrich/pekko-connectors that referenced this pull request Aug 15, 2023
* try scala 3 (apache#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit that referenced this pull request Aug 17, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
pjfanning added a commit that referenced this pull request Aug 19, 2023
* try scala 3 (#123)

* enable scala3 support for jms connector

* refactor

* scala 2.12 compile issue

* enable elasticsearch

Update RestBulkApi.scala

sort imports

revert merge issue

Update CouchbaseFlow.scala
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