GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Type argument inference crashed · Issue #7699 · typetools/checker-framework

Type argument inference crashed #7699

New issue
Copy link
New issue
Copy link
Closed
#7707
Closed
Type argument inference crashed#7699
#7707
Copy link

Description

@cushon
cushon
opened on May 4, 2026
Issue body actions
import java.util.Optional;

public class CrashRepro {
  <T> Optional<T> run(Optional<Object> optional, T t) {
    return optional.flatMap(o -> true ? Optional.of(t) : Optional.empty());
  }
}
$ ~/checker-framework-4.0.0/checker/bin/javac -processor nullness CrashRepro.java 
CrashRepro.java:5: error: [type.argument.inference.crashed] Type argument inference crashed for Optional.flatMap
    return optional.flatMap(o -> true ? Optional.of(t) : Optional.empty());
                           ^
  error: An exception occurred: GLB: subtype: T extends @Initialized @Nullable Object, supertype: T extends @Initialized @Nullable Object
1 error

Activity

  1. smillst
    closed this as completedin #7707on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.