Inspection BUG in IntelliJ IDEA 2023.3.2 (Community Edition)

已回答

```

import static java.util.Arrays.copyOf;

import java.util.AbstractList;

public class Main<T> extends AbstractList<T> {
    
    @Override
    public T get(int index) {
       return null;
    }
    
    @Override
    public int size() {
       return 0;
    }
    
    protected static class Node {
       protected void copy() {
          int[] ary = new int[]{1,2,3,4,5};
          copyOf(ary, 6);
       }
    }
    
    public static void main(String[] args) {
       Main<String> main = new Main<>();
    }
}

```

0

above code can run but have a compile error in IntelliJ IDEA 2023.3.2 (Community Edition)

0
Thank you for reporting the issue: https://youtrack.jetbrains.com/issue/IDEA-355152/Shows-compilation-errors-but-can-actually-run-in-IntelliJ-IDEA-2023.3.2-Community-Edition

We'll follow you there. Please watch the YouTrack item in order to be notified once it has updates. See [this article](https://intellij-support.jetbrains.com/hc/articles/207241135) if you are not familiar with YouTrack.
0

请先登录再写评论。