Skip to content

Incorrect raw type warning on sealed classes #2283

@charpov

Description

@charpov

On code of the form:

sealed interface I<T> permits C {...}
class C<T> implements I<T> {...}

VS Code issues a warning until one writes:

sealed interface I<T> permits C<T> {...}

However, this is not valid Java syntax.

Environment
  • Operating System: MacOS 12.1
  • JDK version: 17
  • Visual Studio Code version: 1.63.2
  • Java extension version: 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions