[
https://issues.apache.org/jira/browse/NETBEANS-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16411361#comment-16411361
]
Christian Lenz commented on NETBEANS-506:
-----------------------------------------
Maybe this is relevant too:
https://netbeans.org/bugzilla/show_bug.cgi?id=224295. The user has a similar
request for adding a hint to the variable, if there is no ctor available. I
think, that this should work for each final variable. The request is only for
final variables, but I think this would be a good enhancement for each variable
type, that you want to add to the ctor to initialize it.
> Add hint for final variable which might not been initialized
> ------------------------------------------------------------
>
> Key: NETBEANS-506
> URL: https://issues.apache.org/jira/browse/NETBEANS-506
> Project: NetBeans
> Issue Type: Bug
> Components: editor - Hints & Annotations, java - Editor, java -
> Hints
> Affects Versions: Next
> Reporter: Christian Lenz
> Priority: Major
> Attachments: error-init-variable.png
>
>
> When I have a ctor, where I initialized 2 out of 3 final variables, NetBeans
> shows me an error at the end of the ctor and not at the end of the variable
> which might not have been initialized.
> So we have 2 things here:
> First: The error/warning should appear at the variable, where that error
> happens.
> Second: There should be a hint while pressing alt + enter, where I can
> add/initialize the variable to the ctor which is already there.
> I addede a screenshot, where the error happens, which is not correct, in my
> opinion. Error is "Variable test might not have been initialized"
> Cheers
> Chris
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
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