Skip to content

Fail to compile when extending JPanel when -Yexplicit-nulls is enabled #8981

Closed
@rcano

Description

@rcano

Minimized code

object Crash {
  class Foo extends javax.swing.JPanel
}

Output (click arrow to expand)

 Found:    Array[("DebugGraphics.NONE_OPTION" : String) | 
   ("DebugGraphics.LOG_OPTION" : String)
  ("DebugGraphics.FLASH_OPTION" : String) | 
   ("DebugGraphics.BUFFERED_OPTION" : String)
 ]
 Required: Array[String | UncheckedNull] | UncheckedNull

Expected

it should compile without errors.

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