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

On Sun, 7 Mar 2021 at 00:21, Piotr Żygieło <piotr@xxxxxxxxxx> wrote:
> I prepared a reproducer:

Just for completeness - similar case of method removed in newer API.

There is a class like this one:

  class T extends Thread {
    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.


Back to the top