Skip to content

Compilation error with Eclipse 4.39 not with javac or Eclipse 4.38 #4937

@RoiSoleil

Description

@RoiSoleil

This code doesn't compile in Eclipse 4.39

package repro;

import java.util.List;

public class A {

    public static void main(String[] args) {
        System.out.println(List.of(BusinessExtractBuilder.create())); // Error here
    }

    public static class BusinessExtractBuilder<T> {

        public static <U extends BusinessExtractBuilder<U>> U create() {
            return null;
        }

    }

}

I get this :

- Type mismatch: cannot convert from A.BusinessExtractBuilder<BusinessExtract,A.BusinessExtractBuilder<BusinessExtract,U>> to E
Image

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions