Skip to content

JSpecify: generic method type inference crash #1176

@msridhar

Description

@msridhar

Crashing on the following (adapted from Caffeine):

import org.jspecify.annotations.NullMarked;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;

@NullMarked
class Foo {
    protected final Set<CompletableFuture<?>> inFlight;

    public Foo() {
        inFlight = ConcurrentHashMap.newKeySet();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions