Skip to content

Wrong highlighting on 'new' keyword on inner classes #1195

Closed
@Meir017

Description

@Meir017

creating a new instance of an inner class doesn't highlight the new keyword properly

Environment
  • Operating System: Win10
  • JDK version: 1.8
  • Visual Studio Code version: 1.41
  • Java extension version: 0.54.2
Steps To Reproduce
  1. Create a class and an inner class
// Outer.java
class Outer {
    class Inner {
    }
}

// Program.java
class Program {
    public static void main(String[] args) {
        Outer outer = new Outer();
        Outer.Inner inner = outer.new Inner();
    }
}
Current Result

image

Expected Result

image

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions