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
Description record is a java keyword since java 14, but unlike other keyword, it can be used as variable name.
Prism marked it as keyword when it is variable name or method name.
package com.company;
public class Main {
//"record" is used as variable name,but Prism marked it keyword
public static void main(String[] record) {
System.out.println(record);
}
//"record" is used as method name,but Prism marked it keyword
public void record(String aaa){
}
//"record" is keyword since java 14
public static record A() {
}
// it can not be used as class name in java syntax
// public static class record() {
// }
}
The text was updated successfully, but these errors were encountered:
Information
Description
record
is a java keyword since java 14, but unlike other keyword, it can be used as variable name.Prism marked it as keyword when it is variable name or method name.
Code snippet
Test page
The code being highlighted incorrectly.
The text was updated successfully, but these errors were encountered: