eclipse-jdtls / eclipse-jdt-core-incubator

Eclipse Public License 2.0
8 stars 1 forks source link

[javac] Improper generics usage is not properly reported #764

Closed fbricon closed 1 month ago

fbricon commented 2 months ago

Given:

public class Test<T> {
    public static void main(String[] args) {
        Test test = new Test();
    }
}

The javac plugin reports no problem:

Screenshot 2024-08-28 at 16 26 00

while ECJ complains about generics:

Screenshot 2024-08-28 at 16 27 45
mickaelistria commented 2 months ago

The errors seem well reported as part of the reconcile process, however, errors from the build don't seem to be reported back as problems on the resource.

mickaelistria commented 2 months ago

Sorry, my last comment is incorrect. The issue was that I had "Build automatically" disabled. With build automatically turned on, I see the warnings from the reconcilers and then as markers on the resource.

mickaelistria commented 1 month ago

Is this still happening? I couldn't reproduce.

mickaelistria commented 1 month ago

Cannot reproduce