Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] ECJ + maven + release 8 flag = unexpected Unnecessary cast

Please create bug report if you can reproduce.

Kind regards,
Andrey Loskutov

Спасение утопающих - дело рук самих утопающих

https://www.eclipse.org/user/aloskutov


> Gesendet: Donnerstag, 15. April 2021 um 18:08 Uhr
> Von: "Piotr Żygieło" <piotr@xxxxxxxxxx>
> An: jdt-dev@xxxxxxxxxxx
> Betreff: Re: [jdt-dev] ECJ + maven + release 8 flag = unexpected Unnecessary cast
>
> On Sun, 7 Mar 2021 at 00:21, Piotr Żygieło <piotr@xxxxxxxxxx> wrote:
> > I prepared a reproducer: https://github.com/pzrep/ecj-release-8.
> 
> Just for completeness - similar case of method removed in newer API.
> 
> There is a class like this one:
> 
>   class T extends Thread {
>     @Override
>     public void destroy() {
>     }
>   }
> 
> When ecj (executed under JDK11) is used manually it works as expected
> - for release 8 the class is compiled successfully, for release 11 -
> compilation fails
> (as Thread.destroy() no longer exists and @Override is not met).
> 
> maven executed under JDK11, with release set to 8 - fails.
> 
> -- 
> Piotrek
> _______________________________________________
> jdt-dev mailing list
> jdt-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev
>


Back to the top