You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Akhilesh Singh (Jira)" <ji...@apache.org> on 2020/09/17 13:36:00 UTC

[jira] [Comment Edited] (NETBEANS-4804) "Insert Code" is enabled but does not work for Record

    [ https://issues.apache.org/jira/browse/NETBEANS-4804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17197684#comment-17197684 ] 

Akhilesh Singh edited comment on NETBEANS-4804 at 9/17/20, 1:35 PM:
--------------------------------------------------------------------

I tried the option "Insert Code -> Getter" for a simple code snippet _{color:#de350b}public record EmpRecord(int i) {}{color}_ {color:#172b4d}. IDE is generated the getter method for the variable 'i' as expected. PFA screenshots of steps. {color}

Is there any specific scenario or different steps that i missed?  

 

Tested Env:

Java: 1.8.0_231; Java HotSpot(TM) 64-Bit Server VM 25.231-b11
 Runtime: Java(TM) SE Runtime Environment 1.8.0_231-b1
 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)

Java: 14-ea; OpenJDK 64-Bit Server VM 14-ea+27-1339
 Runtime: OpenJDK Runtime Environment 14-ea+27-1339
 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)


was (Author: singh-akhilesh):
I tried the option "Insert Code -> Getter" for a simple code snippet _{color:#de350b}public record EmpRecord(int i) {}{color}_ {color:#172b4d}. IDE is generated the getter method for the variable 'i' as expected. PFA screenshots of steps. {color}

Is there any specific scenario or different steps that i missed?  

!record1.png!

Tested Env:

Java: 1.8.0_231; Java HotSpot(TM) 64-Bit Server VM 25.231-b11
Runtime: Java(TM) SE Runtime Environment 1.8.0_231-b1
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)

Java: 14-ea; OpenJDK 64-Bit Server VM 14-ea+27-1339
Runtime: OpenJDK Runtime Environment 14-ea+27-1339
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)

> "Insert Code" is enabled but does not work for Record
> -----------------------------------------------------
>
>                 Key: NETBEANS-4804
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4804
>             Project: NetBeans
>          Issue Type: Bug
>            Reporter: Geertjan Wielenga
>            Assignee: Akhilesh Singh
>            Priority: Major
>         Attachments: record1.png, record2.png, record3.png, record4.png
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists