Skip to content

fix: use Collectors.toList() for Java 11 compatibility#6

Merged
saurabhjain1592 merged 1 commit into
mainfrom
fix/java11-compat
Dec 23, 2025
Merged

fix: use Collectors.toList() for Java 11 compatibility#6
saurabhjain1592 merged 1 commit into
mainfrom
fix/java11-compat

Conversation

@saurabhjain1592

Copy link
Copy Markdown
Member

Summary

  • Fix compilation failure on Java 11: cannot find symbol: method toList()
  • Stream.toList() was introduced in Java 16, but SDK targets Java 11

Changes

  • Replace .toList() with .collect(Collectors.toList()) in AxonFlow.java

Test plan

  • Build should pass on Java 11, 17, and 21

Stream.toList() was introduced in Java 16, but the SDK targets Java 11.
This was causing compilation failures on Java 11:

  cannot find symbol
    symbol:   method toList()
    location: interface java.util.stream.Stream<PlanStep>
@saurabhjain1592 saurabhjain1592 merged commit 53a298f into main Dec 23, 2025
9 checks passed
@saurabhjain1592 saurabhjain1592 deleted the fix/java11-compat branch December 23, 2025 20:06
saurabhjain1592 added a commit that referenced this pull request Jan 6, 2026
Stream.toList() was introduced in Java 16, but the SDK targets Java 11.
This was causing compilation failures on Java 11:

  cannot find symbol
    symbol:   method toList()
    location: interface java.util.stream.Stream<PlanStep>
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.

1 participant