Re: GridIoManager compile error(2.8.0)

2020-06-24 Thread Denis Magda
This should be a problem of your toolchain. If there were compilations
issues we would not release those versions. The first thing to check is
that you use JDK 8 to build the binary. The produced binary can work on
other versions of JDK 9+.


-
Denis


On Sun, Jun 21, 2020 at 6:21 PM 38797715 <38797...@qq.com> wrote:

> Hi team,
>
> I downloaded the source code of version 2.8.1, but found that it could
> not be compiled successfully, and there were compilation errors in the
> code.
>
> for example:
>
> org.apache.ignite.internal.managers.communication.GridIoManager
>
> line 395:
>
> The method register(String, BooleanSupplier, String) is ambiguous for
> the type MetricRegistry
>  - The type of getSentMessagesCount() from the type CommunicationSpi
> is int, this is incompatible with the descriptor's return type:
>   boolean
>
> But it can be compiled successfully by executing mvn compile.
>
> I use eclipse, I think this code is really problematic, I want to know
> why mvn compile can be compiled successfully? Why can this code be
> released?
>
>


Re: GridIoManager compile error(2.8.0)

2020-06-21 Thread Wesley




38797715 wrote:
I downloaded the source code of version 2.8.1, but found that it could 
not be compiled successfully, and there were compilation errors in the 
code.


We just use the binary package, won't compile that by ourselves. :)

regards


GridIoManager compile error(2.8.0)

2020-06-21 Thread 38797715

Hi team,

I downloaded the source code of version 2.8.1, but found that it could 
not be compiled successfully, and there were compilation errors in the code.


for example:

org.apache.ignite.internal.managers.communication.GridIoManager

line 395:

The method register(String, BooleanSupplier, String) is ambiguous for 
the type MetricRegistry
    - The type of getSentMessagesCount() from the type CommunicationSpi 
is int, this is incompatible with the descriptor's return type:

     boolean

But it can be compiled successfully by executing mvn compile.

I use eclipse, I think this code is really problematic, I want to know 
why mvn compile can be compiled successfully? Why can this code be released?