[
https://issues.apache.org/jira/browse/NETBEANS-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Akhilesh Singh resolved NETBEANS-3786.
--------------------------------------
Fix Version/s: 11.3
Resolution: Fixed
Merged in master
> Hint "add imports" is not in a right place(Record -JDK 14)
> ----------------------------------------------------------
>
> Key: NETBEANS-3786
> URL: https://issues.apache.org/jira/browse/NETBEANS-3786
> Project: NetBeans
> Issue Type: Bug
> Components: java - Editor
> Environment: 14-ea; OpenJDK 64-Bit Server VM 14-ea+27-1339
> Reporter: Akhilesh Singh
> Assignee: Akhilesh Singh
> Priority: Major
> Labels: jdk14, pull-request-available
> Fix For: 11.3
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists