Skip to content

JSpecify: work around missing type annotations in cast expression types #1022

@msridhar

Description

@msridhar

E.g., for this:

Object o = ...;
var x = (A<@Nullable String>) o;

The type of (A<@Nullable String>) o provided by javac is A<String>, not A<@Nullable String>. We should work around this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    jspecifyRelated to support for jspecify standard (see jspecify.dev)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions