You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Wrong highlighting on 'new' keyword on inner classes #228
Activity
sadikovi commentedon Jul 16, 2020
The code does not compile, not an issue.
Eskibear commentedon Jul 16, 2020
It compiles.
sadikovi commentedon Jul 16, 2020
Is that OpenJDK 14? I compile on JDK 8, which is what we keep as a baseline. This is a new feature then. Please update the issue accordingly.
sadikovi commentedon Jul 16, 2020
Also, shouldn't it be like this?
Eskibear commentedon Jul 16, 2020
See https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html , section "Inner Classes".
It's strange, and I don't know why
new example1.Bar()compiles for you. It doesn't compiles for me, with either JDK 8 or 14.sadikovi commentedon Jul 16, 2020
Yeah, I came up with a working example, similar to your code. Looks like a bug.