[jira] [Commented] (NETBEANS-491) Turn off exception reporter

2018-04-05 Thread Jaroslav Tulach (JIRA)

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

Jaroslav Tulach commented on NETBEANS-491:
--

I believe I designed the system to be fully configurable online. E.g. you guys 
should be able to disable exception reporter for NetBeans 8.2 or older versions 
of the IDE as well. It may be good idea to read the architecture description 
for the uihandler module. Jirko, Reema, please find it here:

[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml]

As far as I can tell, there is the ERROR_URL which is then branded by

ide.branding/uihandler/src/org/netbeans/modules/uihandler/Bundle_nb.properties:ERROR_URL=[https://netbeans.org/nonav/uigestures/error2.html]

E.g. if you change the [http://netbeans.org/nonav/uigestures/error2.html] page 
and remove the submit button, no reporting shall happen.

 

 

> Turn off exception reporter
> ---
>
> Key: NETBEANS-491
> URL: https://issues.apache.org/jira/browse/NETBEANS-491
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code
>Affects Versions: 9.0
>Reporter: Jiří Kovalský
>Assignee: Reema Taneja
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Apache NetBeans 9.0 tries to send exception reports even though the backend 
> infrastructure is no longer available. In case of an exception NetBeans IDE 
> should no longer display the *Review and Report Problem* button and report 
> URL in the error message should instead read: 
> [https://issues.apache.org/jira/secure/CreateIssue!default.jspa]
> *Steps to reproduce:*
>  # Launch development build #20180320 of Apache NetBeans 9.0.
>  # Type e.g. _properties_ into the *Search* field in the upper right corner 
> of the IDE.
>  # Press Enter.
> *Expected:*
> Due to another bug NetBeans opens an exception dialog which contains old link 
> to _issues.html_ page and *Review and Report Problem* button.
> *Actual:*
> NetBeans opens an exception dialog only instructing user to report the 
> exception to Apache Jira and no *Review and Report Problem* button is shown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Comment Edited] (NETBEANS-491) Turn off exception reporter

2018-04-05 Thread Jaroslav Tulach (JIRA)

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

Jaroslav Tulach edited comment on NETBEANS-491 at 4/5/18 7:48 AM:
--

I believe I designed the system to be fully configurable online. E.g. you guys 
should be able to disable exception reporter for NetBeans 8.2 or older versions 
of the IDE as well. It may be good idea to read the architecture description 
for the uihandler module. Jirko, Reema, please find it here:

[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml]

As far as I can tell, there is the ERROR_URL which is then branded by

ide.branding/uihandler/src/org/netbeans/modules/uihandler/Bundle_nb.properties:ERROR_URL=[https://netbeans.org/nonav/uigestures/error2.html]

E.g. if you change the [http://netbeans.org/nonav/uigestures/error2.html] page 
and remove the submit button, no reporting shall happen. There is currently:
{code:java}
http://statistics.netbeans.org/analytics/upload.jsp"; 
method="post">



{code}
 In the above page. The description of the behavior of these buttons seems to 
be at line 148: 
https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml#L148

 


was (Author: jtulach):
I believe I designed the system to be fully configurable online. E.g. you guys 
should be able to disable exception reporter for NetBeans 8.2 or older versions 
of the IDE as well. It may be good idea to read the architecture description 
for the uihandler module. Jirko, Reema, please find it here:

[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml]

As far as I can tell, there is the ERROR_URL which is then branded by

ide.branding/uihandler/src/org/netbeans/modules/uihandler/Bundle_nb.properties:ERROR_URL=[https://netbeans.org/nonav/uigestures/error2.html]

E.g. if you change the [http://netbeans.org/nonav/uigestures/error2.html] page 
and remove the submit button, no reporting shall happen.

 

 

> Turn off exception reporter
> ---
>
> Key: NETBEANS-491
> URL: https://issues.apache.org/jira/browse/NETBEANS-491
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code
>Affects Versions: 9.0
>Reporter: Jiří Kovalský
>Assignee: Reema Taneja
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Apache NetBeans 9.0 tries to send exception reports even though the backend 
> infrastructure is no longer available. In case of an exception NetBeans IDE 
> should no longer display the *Review and Report Problem* button and report 
> URL in the error message should instead read: 
> [https://issues.apache.org/jira/secure/CreateIssue!default.jspa]
> *Steps to reproduce:*
>  # Launch development build #20180320 of Apache NetBeans 9.0.
>  # Type e.g. _properties_ into the *Search* field in the upper right corner 
> of the IDE.
>  # Press Enter.
> *Expected:*
> Due to another bug NetBeans opens an exception dialog which contains old link 
> to _issues.html_ page and *Review and Report Problem* button.
> *Actual:*
> NetBeans opens an exception dialog only instructing user to report the 
> exception to Apache Jira and no *Review and Report Problem* button is shown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Comment Edited] (NETBEANS-491) Turn off exception reporter

2018-04-05 Thread Jaroslav Tulach (JIRA)

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

Jaroslav Tulach edited comment on NETBEANS-491 at 4/5/18 7:49 AM:
--

I believe I designed the system to be fully configurable online. E.g. you guys 
should be able to disable exception reporter for NetBeans 8.2 or older versions 
of the IDE as well. It may be good idea to read the architecture description 
for the uihandler module. Jirko, Reema, please find it here:

[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml]

As far as I can tell, there is the ERROR_URL which is then branded by
{code:java}
ide.branding/uihandler/src/org/netbeans/modules/uihandler/Bundle_nb.properties:ERROR_URL=https://netbeans.org/nonav/uigestures/error2.html
{code}
E.g. if you change the [http://netbeans.org/nonav/uigestures/error2.html] page 
and remove the submit button, no reporting shall happen. There is currently:
{code:java}
http://statistics.netbeans.org/analytics/upload.jsp"; 
method="post">



{code}
 In the above page. The description of the behavior of these buttons seems to 
be at line 148: 
[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml#L148]

 


was (Author: jtulach):
I believe I designed the system to be fully configurable online. E.g. you guys 
should be able to disable exception reporter for NetBeans 8.2 or older versions 
of the IDE as well. It may be good idea to read the architecture description 
for the uihandler module. Jirko, Reema, please find it here:

[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml]

As far as I can tell, there is the ERROR_URL which is then branded by

ide.branding/uihandler/src/org/netbeans/modules/uihandler/Bundle_nb.properties:ERROR_URL=[https://netbeans.org/nonav/uigestures/error2.html]

E.g. if you change the [http://netbeans.org/nonav/uigestures/error2.html] page 
and remove the submit button, no reporting shall happen. There is currently:
{code:java}
http://statistics.netbeans.org/analytics/upload.jsp"; 
method="post">



{code}
 In the above page. The description of the behavior of these buttons seems to 
be at line 148: 
https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml#L148

 

> Turn off exception reporter
> ---
>
> Key: NETBEANS-491
> URL: https://issues.apache.org/jira/browse/NETBEANS-491
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code
>Affects Versions: 9.0
>Reporter: Jiří Kovalský
>Assignee: Reema Taneja
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Apache NetBeans 9.0 tries to send exception reports even though the backend 
> infrastructure is no longer available. In case of an exception NetBeans IDE 
> should no longer display the *Review and Report Problem* button and report 
> URL in the error message should instead read: 
> [https://issues.apache.org/jira/secure/CreateIssue!default.jspa]
> *Steps to reproduce:*
>  # Launch development build #20180320 of Apache NetBeans 9.0.
>  # Type e.g. _properties_ into the *Search* field in the upper right corner 
> of the IDE.
>  # Press Enter.
> *Expected:*
> Due to another bug NetBeans opens an exception dialog which contains old link 
> to _issues.html_ page and *Review and Report Problem* button.
> *Actual:*
> NetBeans opens an exception dialog only instructing user to report the 
> exception to Apache Jira and no *Review and Report Problem* button is shown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Comment Edited] (NETBEANS-491) Turn off exception reporter

2018-04-05 Thread Jaroslav Tulach (JIRA)

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

Jaroslav Tulach edited comment on NETBEANS-491 at 4/5/18 7:52 AM:
--

I believe I designed the system to be fully configurable online. E.g. you guys 
should be able to disable exception reporter for NetBeans 8.2 or older versions 
of the IDE as well. It may be good idea to read the architecture description 
for the uihandler module. Jirko, Reema, please find it here:

[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml]

As far as I can tell, there is the ERROR_URL which is then branded by
{code:java}
ide.branding/uihandler/src/org/netbeans/modules/uihandler/Bundle_nb.properties:ERROR_URL=https://netbeans.org/nonav/uigestures/error2.html
{code}
E.g. if you change the [http://netbeans.org/nonav/uigestures/error2.html] page 
and remove the submit button, no reporting shall happen. There is currently:
{code:java}
http://statistics.netbeans.org/analytics/upload.jsp"; 
method="post">



{code}
 In the above page. The description of the behavior of these buttons seems to 
be at line 148: 
[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml#L148
 
|https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml#L148]given
 your desire to redirect the user to Apache JIRA, I recommend following line to 
your attention: _If the returned page contains tag like  an (external) browser is opened 
with the specified URL and the user can then interact directly with the server, 
thru pages it serves_.


was (Author: jtulach):
I believe I designed the system to be fully configurable online. E.g. you guys 
should be able to disable exception reporter for NetBeans 8.2 or older versions 
of the IDE as well. It may be good idea to read the architecture description 
for the uihandler module. Jirko, Reema, please find it here:

[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml]

As far as I can tell, there is the ERROR_URL which is then branded by
{code:java}
ide.branding/uihandler/src/org/netbeans/modules/uihandler/Bundle_nb.properties:ERROR_URL=https://netbeans.org/nonav/uigestures/error2.html
{code}
E.g. if you change the [http://netbeans.org/nonav/uigestures/error2.html] page 
and remove the submit button, no reporting shall happen. There is currently:
{code:java}
http://statistics.netbeans.org/analytics/upload.jsp"; 
method="post">



{code}
 In the above page. The description of the behavior of these buttons seems to 
be at line 148: 
[https://github.com/apache/incubator-netbeans/blob/master/uihandler/arch.xml#L148]

 

> Turn off exception reporter
> ---
>
> Key: NETBEANS-491
> URL: https://issues.apache.org/jira/browse/NETBEANS-491
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code
>Affects Versions: 9.0
>Reporter: Jiří Kovalský
>Assignee: Reema Taneja
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Apache NetBeans 9.0 tries to send exception reports even though the backend 
> infrastructure is no longer available. In case of an exception NetBeans IDE 
> should no longer display the *Review and Report Problem* button and report 
> URL in the error message should instead read: 
> [https://issues.apache.org/jira/secure/CreateIssue!default.jspa]
> *Steps to reproduce:*
>  # Launch development build #20180320 of Apache NetBeans 9.0.
>  # Type e.g. _properties_ into the *Search* field in the upper right corner 
> of the IDE.
>  # Press Enter.
> *Expected:*
> Due to another bug NetBeans opens an exception dialog which contains old link 
> to _issues.html_ page and *Review and Report Problem* button.
> *Actual:*
> NetBeans opens an exception dialog only instructing user to report the 
> exception to Apache Jira and no *Review and Report Problem* button is shown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Updated] (NETBEANS-462) Java Help class cannot be found

2018-04-05 Thread Jaroslav Tulach (JIRA)

 [ 
https://issues.apache.org/jira/browse/NETBEANS-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jaroslav Tulach updated NETBEANS-462:
-
Summary: Java Help class cannot be found  (was: Jaha Help class cannot be 
found)

> Java Help class cannot be found
> ---
>
> Key: NETBEANS-462
> URL: https://issues.apache.org/jira/browse/NETBEANS-462
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Help System
>Reporter: Zoran Sevarac
>Priority: Critical
>
> While building NetBeans Platform application that has module with Java Help 
> I'm getting the following exception:
> An annotation processor threw an uncaught exception.
> Consult the following stack trace for details.
> java.lang.NoClassDefFoundError: com/sun/java/help/search/Indexer
>     at 
> org.netbeans.modules.javahelp.HelpSetRegistrationProcessor.handleProcess(HelpSetRegistrationProcessor.java:145)
>     at 
> org.openide.filesystems.annotations.LayerGeneratingProcessor.process(LayerGeneratingProcessor.java:99)
>     at com.sun.tools.javac
> 
> There is no this problem with NetBeans 8.2
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Updated] (NETBEANS-587) Netbeans php debugger crash anonymous function use by reference

2018-04-05 Thread Derk (JIRA)

 [ 
https://issues.apache.org/jira/browse/NETBEANS-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Derk updated NETBEANS-587:
--
Affects Version/s: 8.2

> Netbeans php debugger crash anonymous function use by reference
> ---
>
> Key: NETBEANS-587
> URL: https://issues.apache.org/jira/browse/NETBEANS-587
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Debugger
>Affects Versions: 8.2
> Environment: Linux Ubuntu 16.04LTS
> php --version: PHP 7.0.28-0ubuntu0.16.04.1 (cli) ( NTS )
> Netbeans 8.2
>Reporter: Derk
>Priority: Minor
> Attachments: bug.tgz
>
>
> How to reproduce:
> Take the files from the attachment and load the project in netbeans.
>  Put a breakpoint on the last line (the "echo $var;" line)
>  Click the "Debug Project" button in netbeans
>  I run this script from the command line like so: 
> {code:java}
> export XDEBUG_CONFIG="idekey=netbeans-xdebug"
> php -d xdebug.remote_enable=1 index.php
> {code}
> Press the green "play" button.
>  Actual output "Socket Exception occured"
>  Expected output: not to get this error but to have normal debugging output.
>  Actual output in the console: Segmentation fault (core dumped)
>  Expected output in the console: "1"
>  
> Now look at line 3. Remove the & in front of $var to make the line look like 
> this: 
> {code:java}
> $anon_function = function() use ($var)
> {code}
> Try this how to reproduce again. 
>  Actual output: no error, everything works fine.
>  Actual output in the console: "0"
>  Note: The xdebug.log is included in the tarball, as requested from the error 
> dialog from netbeans.
>  If you can't get the attachment from this issue:
> Create a new netbeans php project (I choose "php project with existing 
> sources").
> Have this php script as index.php:
> {code:java}
>  $var = 0;
> $anon_function = function() use (&$var)
> {
>   $var++;
> };
> $anon_function();
> echo $var;
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Updated] (NETBEANS-587) Netbeans php debugger crash anonymous function use by reference

2018-04-05 Thread Derk (JIRA)

 [ 
https://issues.apache.org/jira/browse/NETBEANS-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Derk updated NETBEANS-587:
--
Component/s: php - Debugger

> Netbeans php debugger crash anonymous function use by reference
> ---
>
> Key: NETBEANS-587
> URL: https://issues.apache.org/jira/browse/NETBEANS-587
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Debugger
>Affects Versions: 8.2
> Environment: Linux Ubuntu 16.04LTS
> php --version: PHP 7.0.28-0ubuntu0.16.04.1 (cli) ( NTS )
> Netbeans 8.2
>Reporter: Derk
>Priority: Minor
> Attachments: bug.tgz
>
>
> How to reproduce:
> Take the files from the attachment and load the project in netbeans.
>  Put a breakpoint on the last line (the "echo $var;" line)
>  Click the "Debug Project" button in netbeans
>  I run this script from the command line like so: 
> {code:java}
> export XDEBUG_CONFIG="idekey=netbeans-xdebug"
> php -d xdebug.remote_enable=1 index.php
> {code}
> Press the green "play" button.
>  Actual output "Socket Exception occured"
>  Expected output: not to get this error but to have normal debugging output.
>  Actual output in the console: Segmentation fault (core dumped)
>  Expected output in the console: "1"
>  
> Now look at line 3. Remove the & in front of $var to make the line look like 
> this: 
> {code:java}
> $anon_function = function() use ($var)
> {code}
> Try this how to reproduce again. 
>  Actual output: no error, everything works fine.
>  Actual output in the console: "0"
>  Note: The xdebug.log is included in the tarball, as requested from the error 
> dialog from netbeans.
>  If you can't get the attachment from this issue:
> Create a new netbeans php project (I choose "php project with existing 
> sources").
> Have this php script as index.php:
> {code:java}
>  $var = 0;
> $anon_function = function() use (&$var)
> {
>   $var++;
> };
> $anon_function();
> echo $var;
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-601) branding failed: An API incompatibility was encountered while executing org.codehaus.mojo:nbm-maven-plugin:4.1:branding

2018-04-05 Thread Rami Swailem (JIRA)
Rami Swailem created NETBEANS-601:
-

 Summary: branding failed: An API incompatibility was encountered 
while executing org.codehaus.mojo:nbm-maven-plugin:4.1:branding
 Key: NETBEANS-601
 URL: https://issues.apache.org/jira/browse/NETBEANS-601
 Project: NetBeans
  Issue Type: Bug
  Components: apisupport - Maven
Affects Versions: 9.0
 Environment: Product Version: Apache NetBeans IDE Dev (Build 
incubator-netbeans-release-260-on-20180404)
Java: 10; OpenJDK 64-Bit Server VM 10+46
Runtime: OpenJDK Runtime Environment 10+46
System: Mac OS X version 10.13.4 running on x86_64; UTF-8; en_DE (nb)
Reporter: Rami Swailem
 Attachments: jdk10.zip, stacktrace.txt

 

with JDK 9 no problems.
steps to reproduce:
1. create maven project (Maven -> Netbeans Application)
2. build branding module

The following error occurred while executing:

--- nbm-maven-plugin:4.1:branding (default-branding) @ jdk10-branding ---
Configuring mojo org.codehaus.mojo:nbm-maven-plugin:4.1:branding from plugin 
realm ClassRealm[extension>org.codehaus.mojo:nbm-maven-plugin:4.1, parent: 
jdk.internal.loader.ClassLoaders$AppClassLoader@1de0aca6]
Configuring mojo 'org.codehaus.mojo:nbm-maven-plugin:4.1:branding' with basic 
configurator -->
(f) brandingSources = 
/Users/rami/NetBeansProjects/jdk10/branding/src/main/nbm-branding
(f) brandingToken = jdk10
(f) cluster = jdk10
(f) nbmBuildDir = /Users/rami/NetBeansProjects/jdk10/branding/target/nbm
(f) outputDirectory = /Users/rami/NetBeansProjects/jdk10/branding/target
(f) project = MavenProject: org.swailem:jdk10-branding:0.0.1 @ 
/Users/rami/NetBeansProjects/jdk10/branding/pom.xml
-- end configuration --

BUILD FAILURE

Total time: 5.499 s
Finished at: 2018-04-05T13:27:55+02:00

Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:branding 
(default-branding) on project jdk10-branding: Execution default-branding of 
goal org.codehaus.mojo:nbm-maven-plugin:4.1:branding failed: An API 
incompatibility was encountered while executing 
org.codehaus.mojo:nbm-maven-plugin:4.1:branding: 
java.lang.ExceptionInInitializerError: null
-
realm = extension>org.codehaus.mojo:nbm-maven-plugin:4.1
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-602) Wrong module name detected with multi-release JAR

2018-04-05 Thread Robert Fitzsimons (JIRA)
Robert Fitzsimons created NETBEANS-602:
--

 Summary: Wrong module name detected with multi-release JAR
 Key: NETBEANS-602
 URL: https://issues.apache.org/jira/browse/NETBEANS-602
 Project: NetBeans
  Issue Type: Bug
  Components: java - Source
Affects Versions: 9.0
 Environment: JDK 9.0.4 and JDK 10 on Linux
NetBeans jenkins build
Reporter: Robert Fitzsimons
 Attachments: multirel.png

I was doing a quick experiment with lwjgl (Lightweight Java Game Library) and 
Java modules an a recent jenkins build of netbeans 9.0.

The screenshot shows the error condition.  !multirel.png!

The reproducer is to:
 * Create a new Java Modular Project with a JDK9 or JDK10 platform.
 * Create a new module
 * In the module add the lwjgl-3.1.6.jar downloaded from 
[http://search.maven.org/remotecontent?filepath=org/lwjgl/lwjgl/3.1.6/lwjgl-3.1.6.jar|maven].

At this point netbeans shows the project as valid but the project fails to 
build. Updating the modules-info.java from 'requires lwjgl;' causes netbeans to 
show an invalid project but the project now builds correctly.

With a maven project the projects is also shown as invalid.



Digging through the code it looks like the getModuleName(URL,boolean) method in 
java.source.base/src/org/netbeans/modules/java/source/ModuleNames.java needs to 
be updated to support the Multi-release JAR files section from the 
[https://docs.oracle.com/javase/9/docs/specs/jar/jar.html#multi-release-jar-files|JAR
 File Spec].

Probable change in Binary logic is to first look for Multi-Release attribute in 
the MANIFEST.MF.  If true, starting with current source version (not currently 
supplied to the method), work backwards in source versions looking for a 
module-info.class in the versions directories, use it's module name if found. 
Otherwise (or false) use the current logic, root module-info module name, 
Automatic-Module-Name, or compute an automatic module name.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[incubator-netbeans-website] branch master updated (9e63008 -> 621aa6c)

2018-04-05 Thread vieiro
This is an automated email from the ASF dual-hosted git repository.

vieiro pushed a change to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git.


from 9e63008  Merge pull request #30 from apache/dev-faq-wiki-index
 add 4eb0e5a  Experiment adding redirections in main .htaccess file
 new 621aa6c  Merge pull request #31 from vieiro/update-center-redirects

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 netbeans.apache.org/src/content/.htaccess | 3 +++
 1 file changed, 3 insertions(+)

-- 
To stop receiving notification emails like this one, please contact
vie...@apache.org.

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

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



[incubator-netbeans-website] 01/01: Merge pull request #31 from vieiro/update-center-redirects

2018-04-05 Thread vieiro
This is an automated email from the ASF dual-hosted git repository.

vieiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git

commit 621aa6ca131a92211bd062d5728efa7c6697845b
Merge: 9e63008 4eb0e5a
Author: Antonio Vieiro 
AuthorDate: Thu Apr 5 20:28:19 2018 +0200

Merge pull request #31 from vieiro/update-center-redirects

Experiment adding redirections in main .htaccess file

 netbeans.apache.org/src/content/.htaccess | 3 +++
 1 file changed, 3 insertions(+)

-- 
To stop receiving notification emails like this one, please contact
vie...@apache.org.

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

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



[incubator-netbeans-website] branch asf-site updated: Automated site publishing by Jenkins build 40

2018-04-05 Thread git-site-role
This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
 new f3ec58c  Automated site publishing by Jenkins build 40
f3ec58c is described below

commit f3ec58c4d3f81c7933b53366d9a82e38c242317b
Author: jenkins 
AuthorDate: Thu Apr 5 18:29:14 2018 +

Automated site publishing by Jenkins build 40
---
 content/.htaccess | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/content/.htaccess b/content/.htaccess
index c74bac8..5ff656e 100644
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -1 +1,4 @@
 DirectoryIndex index.html index.asciidoc
+Redirect 302 /download/9.0-beta/source 
https://www.apache.org/dyn/closer.cgi/incubator/netbeans/incubating-netbeans-java/incubating-9.0-beta/incubating-netbeans-java-9.0-beta-source.zip
+Redirect 302 /download/9.0-beta/binary 
https://www.apache.org/dyn/closer.cgi/incubator/netbeans/incubating-netbeans-java/incubating-9.0-beta/incubating-netbeans-java-9.0-beta-bin.zip
+Redirect 301 /updates/8.2/uc/final/certified/catalog.xml.gz 
http://updates.netbeans.org/netbeans/updates/8.2/uc/final/certified/catalog.xml.gz

-- 
To stop receiving notification emails like this one, please contact
git-site-r...@apache.org.

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

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



[jira] [Updated] (NETBEANS-603) Team Menu item not updating

2018-04-05 Thread Leo Donahue (JIRA)

 [ 
https://issues.apache.org/jira/browse/NETBEANS-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leo Donahue updated NETBEANS-603:
-
Environment: 
Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux 
NetBeans-dev-incubator-netbeans-linux-392-on-20180403-basic

  was:NetBeans-dev-incubator-netbeans-linux-392-on-20180403-basic


> Team Menu item not updating
> ---
>
> Key: NETBEANS-603
> URL: https://issues.apache.org/jira/browse/NETBEANS-603
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Subversion
>Affects Versions: 9.0
> Environment: Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux 
> NetBeans-dev-incubator-netbeans-linux-392-on-20180403-basic
>Reporter: Leo Donahue
>Priority: Major
>
> Checkout a project from subversion.
> Select java source file.
> Select: Team | Lock
> Enter Lock comments. Click Lock
> With same source file selected : Team | Unlock 
> Team menu gives the wrong option for locking.
> If you click the project root and then the source file, the Team menu is 
> correct.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-603) Team Menu item not updating

2018-04-05 Thread Leo Donahue (JIRA)
Leo Donahue created NETBEANS-603:


 Summary: Team Menu item not updating
 Key: NETBEANS-603
 URL: https://issues.apache.org/jira/browse/NETBEANS-603
 Project: NetBeans
  Issue Type: Bug
  Components: versioncontrol - Subversion
Affects Versions: 9.0
 Environment: 
NetBeans-dev-incubator-netbeans-linux-392-on-20180403-basic
Reporter: Leo Donahue


Checkout a project from subversion.

Select java source file.

Select: Team | Lock

Enter Lock comments. Click Lock

With same source file selected : Team | Unlock 

Team menu gives the wrong option for locking.

If you click the project root and then the source file, the Team menu is 
correct.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-604) Cannot set same size to visual components

2018-04-05 Thread John Kostaras (JIRA)
John Kostaras created NETBEANS-604:
--

 Summary: Cannot set same size to visual components 
 Key: NETBEANS-604
 URL: https://issues.apache.org/jira/browse/NETBEANS-604
 Project: NetBeans
  Issue Type: Bug
  Components: apisupport - Project
Affects Versions: 9.0
 Environment: MacOSX
Reporter: John Kostaras
 Fix For: 9.0


h1. Resizing Components test case failed.

Selecting any two visual components in the visual editor, and right-click, 
_Same Size > Same Width_ or _Same Size > Same Height_ are disabled.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-605) Permit the user to select initialized fields when generating a conscructor

2018-04-05 Thread Austin Stephens (JIRA)
Austin Stephens created NETBEANS-605:


 Summary: Permit the user to select initialized fields when 
generating a conscructor
 Key: NETBEANS-605
 URL: https://issues.apache.org/jira/browse/NETBEANS-605
 Project: NetBeans
  Issue Type: Bug
  Components: java - Editor
Affects Versions: 8.2, 9.0, Next
Reporter: Austin Stephens


You can Generate a constructor via Source->Insert Code->Constructor. However, 
the list of variables it gives you only consists of fields that do not have a 
default value assigned to them. It would be nice if those were in the list as 
well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Updated] (NETBEANS-605) Permit the user to select initialized fields when generating a constructor

2018-04-05 Thread Austin Stephens (JIRA)

 [ 
https://issues.apache.org/jira/browse/NETBEANS-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Austin Stephens updated NETBEANS-605:
-
Summary: Permit the user to select initialized fields when generating a 
constructor  (was: Permit the user to select initialized fields when generating 
a conscructor)

> Permit the user to select initialized fields when generating a constructor
> --
>
> Key: NETBEANS-605
> URL: https://issues.apache.org/jira/browse/NETBEANS-605
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 8.2, 9.0, Next
>Reporter: Austin Stephens
>Priority: Minor
>
> You can Generate a constructor via Source->Insert Code->Constructor. However, 
> the list of variables it gives you only consists of fields that do not have a 
> default value assigned to them. It would be nice if those were in the list as 
> well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-606) Reintegrate Branch

2018-04-05 Thread Leo Donahue (JIRA)
Leo Donahue created NETBEANS-606:


 Summary: Reintegrate Branch
 Key: NETBEANS-606
 URL: https://issues.apache.org/jira/browse/NETBEANS-606
 Project: NetBeans
  Issue Type: Bug
  Components: versioncontrol - Subversion
Affects Versions: 9.0
 Environment: Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux 
NetBeans-dev-incubator-netbeans-linux-383-on-20180329-basic
Reporter: Leo Donahue


I stumbled upon this after doing all test cases using the CLI subversion client 
as I thought I had configured JavaHL.

Using the CLI client, this test case fails with message:
Reintegrating branch is not supported with commandline client.
Please switch to SVNKit or JavaHL.
 
First noticed in: 
NetBeans-dev-incubator-netbeans-linux-383-on-20180329-basic



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-607) Diff between branches

2018-04-05 Thread Leo Donahue (JIRA)
Leo Donahue created NETBEANS-607:


 Summary: Diff between branches
 Key: NETBEANS-607
 URL: https://issues.apache.org/jira/browse/NETBEANS-607
 Project: NetBeans
  Issue Type: Bug
  Components: versioncontrol - Subversion
Affects Versions: 9.0
 Environment: Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux 
NetBeans-dev-incubator-netbeans-linux-383-on-20180329-basic
Reporter: Leo Donahue


This test case fails with same message as:

https://issues.apache.org/jira/browse/NETBEANS-606



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-608) Modify Locked File

2018-04-05 Thread Leo Donahue (JIRA)
Leo Donahue created NETBEANS-608:


 Summary: Modify Locked File
 Key: NETBEANS-608
 URL: https://issues.apache.org/jira/browse/NETBEANS-608
 Project: NetBeans
  Issue Type: Bug
  Components: versioncontrol - Subversion
Affects Versions: 9.0
 Environment: Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux 
NetBeans-dev-incubator-netbeans-linux-392-on-20180403-basic
Reporter: Leo Donahue


On step #5 of this test case, "Commit this file", it fails with the following 
error:

 

org.apache.subversion.javahl.ClientException: Can't perform this operation 
without a valid lock token
Commit failed (details follow):
File '/home/user/workspace/netbeans/test2/Project1/src/project1/Main.java' is 
locked in another working copy
No lock token provided
'/svn/repo1/!svn/txr/12-c/Project1/src/project1/Main.java': no lock token 
available



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Updated] (NETBEANS-608) Modify Locked File

2018-04-05 Thread Leo Donahue (JIRA)

 [ 
https://issues.apache.org/jira/browse/NETBEANS-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leo Donahue updated NETBEANS-608:
-
Description: 
On step #5 of this test case, "Commit this file", it fails with the following 
error:

SVN Command Failed

org.apache.subversion.javahl.ClientException: Can't perform this operation 
without a valid lock token
Commit failed (details follow):
File 
'/home/user/workspace/netbeans/test2/JavaApplication5/src/javaapplication5/NewClass.java'
 is locked in another working copy
No lock token provided
'/svn/repo1/!svn/txr/13-g/JavaApplication5/src/javaapplication5/NewClass.java': 
no lock token available

  was:
On step #5 of this test case, "Commit this file", it fails with the following 
error:

 

org.apache.subversion.javahl.ClientException: Can't perform this operation 
without a valid lock token
Commit failed (details follow):
File '/home/user/workspace/netbeans/test2/Project1/src/project1/Main.java' is 
locked in another working copy
No lock token provided
'/svn/repo1/!svn/txr/12-c/Project1/src/project1/Main.java': no lock token 
available


> Modify Locked File
> --
>
> Key: NETBEANS-608
> URL: https://issues.apache.org/jira/browse/NETBEANS-608
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Subversion
>Affects Versions: 9.0
> Environment: Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux 
> NetBeans-dev-incubator-netbeans-linux-392-on-20180403-basic
>Reporter: Leo Donahue
>Priority: Major
>
> On step #5 of this test case, "Commit this file", it fails with the following 
> error:
> SVN Command Failed
> org.apache.subversion.javahl.ClientException: Can't perform this operation 
> without a valid lock token
> Commit failed (details follow):
> File 
> '/home/user/workspace/netbeans/test2/JavaApplication5/src/javaapplication5/NewClass.java'
>  is locked in another working copy
> No lock token provided
> '/svn/repo1/!svn/txr/13-g/JavaApplication5/src/javaapplication5/NewClass.java':
>  no lock token available



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Updated] (NETBEANS-607) Diff between branches

2018-04-05 Thread Leo Donahue (JIRA)

 [ 
https://issues.apache.org/jira/browse/NETBEANS-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leo Donahue updated NETBEANS-607:
-
Description: 
This test case fails with message similar to:

https://issues.apache.org/jira/browse/NETBEANS-606

Not supported with CLI.

  was:
This test case fails with same message as:

https://issues.apache.org/jira/browse/NETBEANS-606


> Diff between branches
> -
>
> Key: NETBEANS-607
> URL: https://issues.apache.org/jira/browse/NETBEANS-607
> Project: NetBeans
>  Issue Type: Bug
>  Components: versioncontrol - Subversion
>Affects Versions: 9.0
> Environment: Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux 
> NetBeans-dev-incubator-netbeans-linux-383-on-20180329-basic
>Reporter: Leo Donahue
>Priority: Major
>
> This test case fails with message similar to:
> https://issues.apache.org/jira/browse/NETBEANS-606
> Not supported with CLI.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-610) Import failed due to Invalid refspec

2018-04-05 Thread Tim (JIRA)
Tim created NETBEANS-610:


 Summary: Import failed due to Invalid refspec
 Key: NETBEANS-610
 URL: https://issues.apache.org/jira/browse/NETBEANS-610
 Project: NetBeans
  Issue Type: Bug
  Components: versioncontrol - Git
Affects Versions: 9.0
Reporter: Tim


wildcard refspecs break imports, removing them from a project requires push 
wrapper script.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-612) NullPointerException during editing

2018-04-05 Thread will mason (JIRA)
will mason created NETBEANS-612:
---

 Summary: NullPointerException during editing
 Key: NETBEANS-612
 URL: https://issues.apache.org/jira/browse/NETBEANS-612
 Project: NetBeans
  Issue Type: Bug
  Components: editor - Refactoring
Affects Versions: 9.0
 Environment: Product Version: Apache NetBeans IDE Dev (Build 
incubator-netbeans-release-205-on-20180202)
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
Java: 10; Java HotSpot(TM) 64-Bit Server VM 10+46
Runtime: Java(TM) SE Runtime Environment 10+46
System: Windows 10 version 10.0 running on amd64; Cp1252; en_AU (nb)
User directory: Z:\tmp\.other\user\netbeans\v09.00-beta\watchdog
Cache directory: Z:\tmp\.other\cache\netbeans\watchdog-09
Reporter: will mason
 Attachments: netbeans-9.0-beta.logs

h2. expected

* Continue editing

h2. actual

* I was shown a NullPointerException in the middle of doing not very much 
actually
* I wasa ABOUT to do some refactoring, so I may have used CONTROL/SPACEBAR

h2.  supporting information

*  attachment contains ...
**  stacktrace
**  UI log
**  IDE log





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Created] (NETBEANS-613) Please Identify Netbeans Pre-releases

2018-04-05 Thread will mason (JIRA)
will mason created NETBEANS-613:
---

 Summary: Please Identify Netbeans Pre-releases
 Key: NETBEANS-613
 URL: https://issues.apache.org/jira/browse/NETBEANS-613
 Project: NetBeans
  Issue Type: Task
Affects Versions: 9.0
 Environment: all
Reporter: will mason



.h2 comment

* You have not marked the version as a BETA
* As things have been working  out I feel you will need 3 or more beta releases
* I suggest that release cycles be identified such as...
**  9.0-beta1,  9.0-beta2,  etc.
** 9.0-rc1  9.0-rc2,  etc.

It will make checking errors and reporting much clearer



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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



[jira] [Resolved] (NETBEANS-479) New Java Hint to replace explicit type of variable with var

2018-04-05 Thread ARUNAVA SINHA (JIRA)

 [ 
https://issues.apache.org/jira/browse/NETBEANS-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA resolved NETBEANS-479.

   Resolution: Fixed
Fix Version/s: Next

merged into apacehe:master through 
https://github.com/apache/incubator-netbeans/pull/463

> New Java Hint to replace explicit type of variable with var
> ---
>
> Key: NETBEANS-479
> URL: https://issues.apache.org/jira/browse/NETBEANS-479
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Trivial
>  Labels: JDK10-LVTI
> Fix For: Next
>
>
> The IDE will include a prompt to replace the explicit types with ‘var’, when 
> the type can be inferred from the context.
> e.g.., String str = new String("Hello");
> can be replaced with var str = new String("hello");
> Preconditions for the hint:
>  # hint will be enabled only for JDK10 or higher
>  # hint willwork only inside local scope
>  # hint will be disabled if var type is already present.
>  # hint will not support generic array.
>  e.g., Arraylist[] arr = new ArrayList[5];
> Explicit type of local variable will be converted to var type if type of 
> variable is same as assignment type
>  Below Scenarios will be covered:
>  # Object Initialization:
>  Integer i = new Integer("10");
>  Fix : var i = new Integer("10");
> HashMap map= new HashMap();
>  Fix : var map= new HashMap();
>  # Array Initialization
>  int[][]arr = new int[3][];
>  Fix : var arr = new int[3][];
>  # Assignment of literal:
>  int a = 10;
>  Fix: var a = 10;
>  # Assignment to a method call
>  var list = Collections.unmodifiableList(new ArrayList()) ;
> Below Assignment scenarios will be excluded :
>  # Anonymous Object
>  # Lambda expression
>  # Diamond interface



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

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