You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Arunava Sinha (Jira)" <ji...@apache.org> on 2020/04/13 11:58:00 UTC
[jira] [Comment Edited] (NETBEANS-3965) Source code "var" issue
[ https://issues.apache.org/jira/browse/NETBEANS-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17082125#comment-17082125 ]
Arunava Sinha edited comment on NETBEANS-3965 at 4/13/20, 11:57 AM:
--------------------------------------------------------------------
sure, I will look into it
1. var [] files1 = file.list();
2. var files2 [] = file.list();
In NB Editor, for both lines we should get error, but currently getting error for only first line.
was (Author: arusinha):
sure, I will look into it
> Source code "var" issue
> -----------------------
>
> Key: NETBEANS-3965
> URL: https://issues.apache.org/jira/browse/NETBEANS-3965
> Project: NetBeans
> Issue Type: Bug
> Components: java - Compiler, java - Editor, platform - Action Items
> Affects Versions: 11.2, 11.3
> Environment: Apache Netbeans 11.2 and even 11.3
> OpenJDK 11.0.2
> Reporter: Netbeans User 2019
> Assignee: Arunava Sinha
> Priority: Minor
> Labels: compile-error
>
> var File[] = file.list();
> on editor: do no show any issue
> on action items: there is no issue visible about that
> on gradle: fails in compile
> on old-style project (Java with Ant > Java Application): run without issue, but if you explicitly try build you get "error: 'var' is not allowed as an element type of an array
--
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