Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
14-ea; OpenJDK 64-Bit Server VM 14-ea+27-1339
Description
Write below code snippet on editor and use hint "add import" for List interface.
public record Test(String s, int i, int j)
{ static List list= null; }Actual Result:
Import statement comes at the end of record body. This change shows compile time error on editor.
Excepted Result
Import statement should come after package declaration or before start of record body.
Note : This issue occurs only when there is no other import statement available or declared previously.
Attachments
Issue Links
- is a clone of
-
NETBEANS-3702 Hint "implements all abstract method" is not working with record (JDK 14)
- Closed
- links to