[ 
https://issues.apache.org/jira/browse/IGNITE-28571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Pereslegin updated IGNITE-28571:
--------------------------------------
    Description: 
The project does not compile under Java 11.

The issue is here 
https://github.com/apache/ignite-3/pull/7987/changes#diff-6367281ae0f24cf7b43a2f0df789f4c90928c0b52bad3952c20f5b1ccc03a6fcR120

Method Stream.toList() was introduced in java 16.

{noformat}
> ./gradlew build testClasses -x check

ignite-3/modules/transactions/src/test/java/org/apache/ignite/internal/tx/impl/PersistentTxStateVacuumizerTest.java:120:
 error: cannot find symbol
                requestCaptor.getAllValues().stream().map(r -> 
r.transactionIds().size()).toList(),
                                                                                
         ^
  symbol:   method toList()
  location: interface Stream<Integer>
{noformat}


  was:
The project does not compile under Java 11.

The issue is here 
https://github.com/apache/ignite-3/pull/7987/changes#diff-6367281ae0f24cf7b43a2f0df789f4c90928c0b52bad3952c20f5b1ccc03a6fcR120

Method Stream.toList() was introduced in java 16.

{noformat}
ignite-3/modules/transactions/src/test/java/org/apache/ignite/internal/tx/impl/PersistentTxStateVacuumizerTest.java:120:
 error: cannot find symbol
                requestCaptor.getAllValues().stream().map(r -> 
r.transactionIds().size()).toList(),
                                                                                
         ^
  symbol:   method toList()
  location: interface Stream<Integer>
{noformat}



> Fix tests compilation under java 11
> -----------------------------------
>
>                 Key: IGNITE-28571
>                 URL: https://issues.apache.org/jira/browse/IGNITE-28571
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Pavel Pereslegin
>            Assignee: Pavel Pereslegin
>            Priority: Major
>              Labels: ignite-3
>
> The project does not compile under Java 11.
> The issue is here 
> https://github.com/apache/ignite-3/pull/7987/changes#diff-6367281ae0f24cf7b43a2f0df789f4c90928c0b52bad3952c20f5b1ccc03a6fcR120
> Method Stream.toList() was introduced in java 16.
> {noformat}
> > ./gradlew build testClasses -x check
> ignite-3/modules/transactions/src/test/java/org/apache/ignite/internal/tx/impl/PersistentTxStateVacuumizerTest.java:120:
>  error: cannot find symbol
>                 requestCaptor.getAllValues().stream().map(r -> 
> r.transactionIds().size()).toList(),
>                                                                               
>            ^
>   symbol:   method toList()
>   location: interface Stream<Integer>
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to