[jira] [Created] (NETBEANS-2516) Warnings hints for Convert rule switch to Traditional switch

2019-05-07 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-2516:
---

 Summary: Warnings hints for Convert rule switch to Traditional 
switch
 Key: NETBEANS-2516
 URL: https://issues.apache.org/jira/browse/NETBEANS-2516
 Project: NetBeans
  Issue Type: Improvement
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Implementation of warning hints for  "Convert rule switch to Traditional switch"

Use case:

Actual code:

public void test(int i){
 String result;
 switch(i){
 case 1 -> System.out.println("One");
 case 2 -> System.out.println("Two");
 default -> System.out.println("Default");
 }
 }

Warning Hints : "Convert to traditional switch"

After Fix:

public void test(int i){
 String result;
 switch(i){
 case 1 :
 System.out.println("One");
 break;
 case 2 :
 System.out.println("Two");
 break;
 default:
 System.out.println("Default");
 break;
 }
 }



--
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-2350) Null pointer exception while doing auto complete in rule switch block

2019-05-07 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar resolved NETBEANS-2350.
-
Resolution: Fixed

> Null pointer exception while doing auto complete in rule switch block
> -
>
> Key: NETBEANS-2350
> URL: https://issues.apache.org/jira/browse/NETBEANS-2350
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Null pointer exception while doing auto complete in rule switch block
> Code scenario:
> enum Days\{MON, TUES, WED, THUR, FRI};
> private static void test1(Days day) {
> switch (day)
> { case FRI -> 
> System.out.println("javaapplication2.JavaApplication2.test1()");   position>   --> Auto complete press 'Ctrl+Space' throw Null pointer exception 
> }
> }
>  
>  
> java.lang.NullPointerException
> at 
> org.netbeans.modules.java.completion.JavaCompletionTask.insideSwitch(JavaCompletionTask.java:2296)
> at 
> org.netbeans.modules.java.completion.JavaCompletionTask.resolve(JavaCompletionTask.java:412)
> at org.netbeans.modules.java.completion.BaseTask.run(BaseTask.java:93)
> at 
> org.netbeans.modules.java.completion.JavaCompletionTask.run(JavaCompletionTask.java:60)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
> at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
> at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
> at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
> at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
> at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
> at 
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
> Caused: org.netbeans.modules.parsing.spi.ParseException
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:186)
> at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
> [catch] at 
> org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:193)
> at 
> org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:198)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)



--
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] [Closed] (NETBEANS-2350) Null pointer exception while doing auto complete in rule switch block

2019-05-07 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-2350.
---

> Null pointer exception while doing auto complete in rule switch block
> -
>
> Key: NETBEANS-2350
> URL: https://issues.apache.org/jira/browse/NETBEANS-2350
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Null pointer exception while doing auto complete in rule switch block
> Code scenario:
> enum Days\{MON, TUES, WED, THUR, FRI};
> private static void test1(Days day) {
> switch (day)
> { case FRI -> 
> System.out.println("javaapplication2.JavaApplication2.test1()");   position>   --> Auto complete press 'Ctrl+Space' throw Null pointer exception 
> }
> }
>  
>  
> java.lang.NullPointerException
> at 
> org.netbeans.modules.java.completion.JavaCompletionTask.insideSwitch(JavaCompletionTask.java:2296)
> at 
> org.netbeans.modules.java.completion.JavaCompletionTask.resolve(JavaCompletionTask.java:412)
> at org.netbeans.modules.java.completion.BaseTask.run(BaseTask.java:93)
> at 
> org.netbeans.modules.java.completion.JavaCompletionTask.run(JavaCompletionTask.java:60)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
> at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
> at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
> at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
> at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
> at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
> at 
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
> Caused: org.netbeans.modules.parsing.spi.ParseException
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:186)
> at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
> [catch] at 
> org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:193)
> at 
> org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:198)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)



--
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-2349) Convert switch to switch expression

2019-04-09 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-2349:

Summary: Convert switch to switch expression  (was: Convert to switch 
expression)

> Convert switch to switch expression
> ---
>
> Key: NETBEANS-2349
> URL: https://issues.apache.org/jira/browse/NETBEANS-2349
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Convert old switch statement to switch expression in following case:
> Old code:  (Assign same variable in every case with one statement)
> int x = 5;
> String s = "foo";
> switch (x)
> { case 1: s = "bar";break; case 2: s = "baz";break; default: s = "zuq";break; 
> }
>  
> After fix:
> int x = 5;
> String s = switch (x)
> { case 1 -> "bar"; case 2 -> "baz"; default -> "zuq"; }
> ;



--
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-2350) Null pointer exception while doing auto complete in rule switch block

2019-04-04 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-2350:
---

 Summary: Null pointer exception while doing auto complete in rule 
switch block
 Key: NETBEANS-2350
 URL: https://issues.apache.org/jira/browse/NETBEANS-2350
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Null pointer exception while doing auto complete in rule switch block

Code scenario:

enum Days\{MON, TUES, WED, THUR, FRI};

private static void test1(Days day) {
switch (day)

{ case FRI -> System.out.println("javaapplication2.JavaApplication2.test1()");  
   --> Auto complete press 'Ctrl+Space' throw Null pointer 
exception }

}

 

 

java.lang.NullPointerException
at 
org.netbeans.modules.java.completion.JavaCompletionTask.insideSwitch(JavaCompletionTask.java:2296)
at 
org.netbeans.modules.java.completion.JavaCompletionTask.resolve(JavaCompletionTask.java:412)
at org.netbeans.modules.java.completion.BaseTask.run(BaseTask.java:93)
at 
org.netbeans.modules.java.completion.JavaCompletionTask.run(JavaCompletionTask.java:60)
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
at 
org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
at 
org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
at 
org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
at 
org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
at 
org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
at 
org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
at 
org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
at 
org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
Caused: org.netbeans.modules.parsing.spi.ParseException
at 
org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:186)
at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
[catch] at 
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:193)
at 
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:198)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)



--
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-2349) Convert to switch expression

2019-04-04 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-2349:
---

 Summary: Convert to switch expression
 Key: NETBEANS-2349
 URL: https://issues.apache.org/jira/browse/NETBEANS-2349
 Project: NetBeans
  Issue Type: Improvement
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Convert old switch statement to switch expression in following case:

Old code:  (Assign same variable in every case with one statement)

int x = 5;
String s = "foo";
switch (x)

{ case 1: s = "bar";break; case 2: s = "baz";break; default: s = "zuq";break; }

 

After fix:

int x = 5;
String s = switch (x)

{ case 1 -> "bar"; case 2 -> "baz"; default -> "zuq"; }

;



--
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-2315) Switch expression multi cases should have Enum values in auto complete options

2019-04-04 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-2315:

Issue Type: Improvement  (was: Bug)

> Switch expression multi cases should have Enum values in auto complete options
> --
>
> Key: NETBEANS-2315
> URL: https://issues.apache.org/jira/browse/NETBEANS-2315
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The multi cases in switch expression should show the enum value in auto 
> complete options:
> Example:
> enum state \{CANCELLED, INTERRUPTING, INTERRUPTED, NORMAL , EXCEPTIONAL}
> String status = switch (state) {
> case NORMAL -> "[Completed normally]";
> case EXCEPTIONAL, {color:#d04437}{color} -> "[Completed 
> exceptionally: " + outcome + "]";
> The auto complete option at  should contain the enum value of 
> \{CANCELLED, INTERRUPTING, INTERRUPTED}



--
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] [Closed] (NETBEANS-2315) Switch expression multi cases should have Enum values in auto complete options

2019-04-04 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-2315.
---
Resolution: Fixed

> Switch expression multi cases should have Enum values in auto complete options
> --
>
> Key: NETBEANS-2315
> URL: https://issues.apache.org/jira/browse/NETBEANS-2315
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The multi cases in switch expression should show the enum value in auto 
> complete options:
> Example:
> enum state \{CANCELLED, INTERRUPTING, INTERRUPTED, NORMAL , EXCEPTIONAL}
> String status = switch (state) {
> case NORMAL -> "[Completed normally]";
> case EXCEPTIONAL, {color:#d04437}{color} -> "[Completed 
> exceptionally: " + outcome + "]";
> The auto complete option at  should contain the enum value of 
> \{CANCELLED, INTERRUPTING, INTERRUPTED}



--
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] [Closed] (NETBEANS-1675) Java Hint to fix error :different case kinds used in the switch in switch expressions

2019-03-26 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1675.
---

> Java Hint to fix error :different case kinds used in the switch in switch 
> expressions
> -
>
> Key: NETBEANS-1675
> URL: https://issues.apache.org/jira/browse/NETBEANS-1675
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: 11.0-vc3, NB-JDK12, pull-request-available
> Fix For: 11.0
>
>  Time Spent: 3h 40m
>  Remaining Estimate: 0h
>
> Code:
> int i=10;
>  final String val = 
>  switch (i) 
> { case 1 : break "one"; case 2 -> "two"; }
> ;
> Error will be displayed in editor 'different case kinds used in the switch' 
> Proposed fix:
> Scenario 1: Switch Statements
> int k = 1;
> switch(k) {
>  case 1 :
>          System.out.println( "one");
>          break;
>   case 2 -> System.out.println( "two");
> }
> After Fix:
> ink k = 1;
> switch (k){
>  case 1 -> System.out.println( "one");
>   case 2 -> System.out.println( "two");
> }
> Scenario 2: Switch Expression
> int k= 1;
> var  val = 
>  switch(k){
> case 1 :
>       break("one");
> case 2 -> "two";
> };
> After Fix:
> int k= 1;
> var  val = 
> switch(k){
> case 1 ->  "one";
> case 2 -> "two";
> };
>  



--
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] [Closed] (NETBEANS-1251) nb-javac 11 testcase failure : Compound var declaration

2019-02-27 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1251.
---

> nb-javac 11 testcase failure : Compound var declaration
> ---
>
> Key: NETBEANS-1251
> URL: https://issues.apache.org/jira/browse/NETBEANS-1251
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: 11.0-vc2, pull-request-available
> Fix For: 11.0
>
>  Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> Below testcases are failing:
> [junit] Testcase: 
> testVarCompoundDeclaration1(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
>  FAILED
> [junit] Testcase: 
> testVarCompoundDeclaration2(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
>  FAILED
> [junit] Testcase: 
> testVarCompoundDeclaration3(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
>  FAILED
> [junit] Testcase: 
> testVarCompoundDeclaration4(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
>  FAILED
> [junit] Testcase: 
> testCase1(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase2(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase3(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase5(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase6(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase7(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase8(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase9(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase10(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
>  
> Issue Description:
> Javac Issue description(from Vikas) :
> Sample code: var v1 = 10, v2 = 11;
> Compilation tree details with jdk-10:
> In this case the parent bloc tree has two trees : 1. int v1 = 10; 2. int v2 = 
> 11;
> statementPath.getLeaf() i.e ctx.getPath().getLeaf() refers to first tree of 
> block i.e int v1 = 10;
> Compilation tree details with jdk-11:
> In this case the parent bloc tree has two trees : 1. int v1 = 10; 2. var v2 = 
> 11;
> statementPath.getLeaf() i.e ctx.getPath().getLeaf() refers to second tree of 
> block i.e var v2 = 11;



--
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] [Closed] (NETBEANS-1728) ClassCastException in switch expression

2019-02-27 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1728.
---

> ClassCastException in switch expression 
> 
>
> Key: NETBEANS-1728
> URL: https://issues.apache.org/jira/browse/NETBEANS-1728
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: Sarvesh Kesharwani
>Priority: Major
>  Labels: 11.0-vc1, NB-JDK12, pull-request-available
> Fix For: 11.0
>
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Exception occur "java.lang.ClassCastException" with following code snippet:
> int i=10;
>  final String val = 
>  switch (i)
> { case 1 : break "one"; case 2 -> "two"; }
> ;
>  
> Exception logs:
> java.lang.ClassCastException: class 
> com.sun.tools.javac.tree.JCTree$JCSwitchExpression cannot be cast to class 
> com.sun.source.tree.StatementTree 
> (com.sun.tools.javac.tree.JCTree$JCSwitchExpression and 
> com.sun.source.tree.StatementTree are in module jdk.compiler of loader 'app')
>  at 
> org.netbeans.api.java.source.TreeUtilities.getBreakContinueTarget(TreeUtilities.java:1358)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitBreak(NPECheck.java:1252)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitBreak(NPECheck.java:545)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBreak.accept(JCTree.java:1575)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
>  at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:114)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCase(TreeScanner.java:372)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCase.accept(JCTree.java:1293)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
>  at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:114)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitSwitchExpression(TreeScanner.java:354)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCSwitchExpression.accept(JCTree.java:1323)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitVariable(NPECheck.java:704)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitVariable(NPECheck.java:545)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:980)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:91)
>  at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:249)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1038)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> 

[jira] [Closed] (NETBEANS-777) NPE on trying to put comment in '^ position /*comment1*/final/*comment*/var/*^

2019-02-27 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-777.
--

> NPE on trying to put comment in '^ position /*comment1*/final/*comment*/var/*^
> --
>
> Key: NETBEANS-777
> URL: https://issues.apache.org/jira/browse/NETBEANS-777
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: ARUNAVA SINHA
>Priority: Minor
>  Labels: JDK10-LVTI, pull-request-available
> Fix For: 10.0
>
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> /*comment1*/final/*comment*/var/*^ NPE on trying to put comment in '^ position
>  
> Exception Logs:
> java.lang.NullPointerException
> at org.netbeans.lib.java.lexer.JavaLexer.nextToken(JavaLexer.java:1055)
> at 
> org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
> at 
> org.netbeans.lib.lexer.inc.TokenListUpdater.relex(TokenListUpdater.java:602)
> at 
> org.netbeans.lib.lexer.inc.TokenListUpdater.updateRegular(TokenListUpdater.java:255)
> at 
> org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:325)
> at 
> org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:200)
> at 
> org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.updateImpl(TokenHierarchyUpdate.java:171)
> at 
> org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.update(TokenHierarchyUpdate.java:109)
> at 
> org.netbeans.lib.lexer.TokenHierarchyOperation.textModified(TokenHierarchyOperation.java:585)
> at 
> org.netbeans.spi.lexer.TokenHierarchyControl.textModified(TokenHierarchyControl.java:71)
> at 
> org.netbeans.lib.lexer.inc.DocumentInput.textModified(DocumentInput.java:128)
> at 
> org.netbeans.lib.lexer.inc.DocumentInput.removeUpdate(DocumentInput.java:121)
> at 
> org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:91)
> at 
> java.desktop/javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:261)
> at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1650)
> at org.netbeans.editor.BaseDocument.handleRemove(BaseDocument.java:1022)
> at 
> org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(BaseDocument.java:2639)
> at java.desktop/javax.swing.text.DocumentFilter.remove(DocumentFilter.java:79)
> at 
> org.openide.text.CloneableEditorSupport$DocFilter.remove(CloneableEditorSupport.java:2364)
> at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:935)
> at org.netbeans.editor.BaseKit$DeleteCharAction$3.run(BaseKit.java:2159)
> at 
> org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:333)
> at 
> org.netbeans.editor.BaseKit$DeleteCharAction.actionPerformed(BaseKit.java:2151)
> at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322)
> at 
> java.desktop/javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1810)
> at java.desktop/javax.swing.JComponent.processKeyBinding(JComponent.java:2900)
> at 
> java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:2948)
> at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2862)
> at java.desktop/java.awt.Component.processEvent(Component.java:6366)
> at java.desktop/java.awt.Container.processEvent(Container.java:2261)
> at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966)
> at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
> at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
> at 
> java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
> at 
> java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:871)
> at 
> java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1140)
> at 
> java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1010)
> at 
> java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:836)
> at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4847)
> at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
> at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
> at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
> at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
> at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
> at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
> at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
> at java.base/java.security.AccessController.doPrivileged(Native Method)
> at 

[jira] [Assigned] (NETBEANS-1251) nb-javac 11 testcase failure : Compound var declaration

2019-02-12 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1251:
---

Assignee: vikas kumar prabhakar

> nb-javac 11 testcase failure : Compound var declaration
> ---
>
> Key: NETBEANS-1251
> URL: https://issues.apache.org/jira/browse/NETBEANS-1251
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Below testcases are failing:
> [junit] Testcase: 
> testVarCompoundDeclaration1(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
>  FAILED
> [junit] Testcase: 
> testVarCompoundDeclaration2(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
>  FAILED
> [junit] Testcase: 
> testVarCompoundDeclaration3(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
>  FAILED
> [junit] Testcase: 
> testVarCompoundDeclaration4(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
>  FAILED
> [junit] Testcase: 
> testCase1(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase2(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase3(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase5(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase6(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase7(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase8(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase9(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
> [junit] Testcase: 
> testCase10(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
> FAILED
>  
> Issue Description:
> Javac Issue description(from Vikas) :
> Sample code: var v1 = 10, v2 = 11;
> Compilation tree details with jdk-10:
> In this case the parent bloc tree has two trees : 1. int v1 = 10; 2. int v2 = 
> 11;
> statementPath.getLeaf() i.e ctx.getPath().getLeaf() refers to first tree of 
> block i.e int v1 = 10;
> Compilation tree details with jdk-11:
> In this case the parent bloc tree has two trees : 1. int v1 = 10; 2. var v2 = 
> 11;
> statementPath.getLeaf() i.e ctx.getPath().getLeaf() refers to second tree of 
> block i.e var v2 = 11;



--
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-1675) Java Hint to fix error :different case kinds used in the switch in switch expressions

2019-01-09 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-1675:

Description: 
Code:

int i=10;
 final String val = 
 switch (i) 

{ case 1 : break "one"; case 2 -> "two"; }

;

Error will be displayed in editor 'different case kinds used in the switch' 

Proposed fix:

Scenario 1: Switch Statements

int k = 1;

switch(k) {

 case 1 :

         System.out.println( "one");

         break;

  case 2 -> System.out.println( "two");

}

After Fix:

ink k = 1;

switch (k){

 case 1 -> System.out.println( "one");

  case 2 -> System.out.println( "two");

}

Scenario 2: Switch Expression

int k= 1;
var  val = 
 switch(k){

case 1 :

      break("one");

case 2 -> "two";

};

After Fix:

int k= 1;
var  val = 
switch(k){

case 1 ->  "one";

case 2 -> "two";

};

 

  was:
Code:

int i=10;
 final String val = 
 switch (i) 
 { 
 case 1 : break "one"; 
 case 2 -> "two"; 
 };

Error will be displayed in editor 'different case kinds used in the switch' 

Proposed fix:

int i=10;
 final String val = 
 switch (i) 
 { 
 case 1 -> "one"; 
 case 2 -> "two"; 
 };

 


> Java Hint to fix error :different case kinds used in the switch in switch 
> expressions
> -
>
> Key: NETBEANS-1675
> URL: https://issues.apache.org/jira/browse/NETBEANS-1675
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: NB-JDK12
>
> Code:
> int i=10;
>  final String val = 
>  switch (i) 
> { case 1 : break "one"; case 2 -> "two"; }
> ;
> Error will be displayed in editor 'different case kinds used in the switch' 
> Proposed fix:
> Scenario 1: Switch Statements
> int k = 1;
> switch(k) {
>  case 1 :
>          System.out.println( "one");
>          break;
>   case 2 -> System.out.println( "two");
> }
> After Fix:
> ink k = 1;
> switch (k){
>  case 1 -> System.out.println( "one");
>   case 2 -> System.out.println( "two");
> }
> Scenario 2: Switch Expression
> int k= 1;
> var  val = 
>  switch(k){
> case 1 :
>       break("one");
> case 2 -> "two";
> };
> After Fix:
> int k= 1;
> var  val = 
> switch(k){
> case 1 ->  "one";
> case 2 -> "two";
> };
>  



--
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] [Assigned] (NETBEANS-1675) Java Hint to fix error :different case kinds used in the switch in switch expressions

2018-11-28 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1675:
---

Assignee: vikas kumar prabhakar  (was: ARUNAVA SINHA)

> Java Hint to fix error :different case kinds used in the switch in switch 
> expressions
> -
>
> Key: NETBEANS-1675
> URL: https://issues.apache.org/jira/browse/NETBEANS-1675
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: NB-JDK12
>
> Code:
> int i=10;
>  final String val = 
>  switch (i) 
>  { 
>  case 1 : break "one"; 
>  case 2 -> "two"; 
>  };
> Error will be displayed in editor 'different case kinds used in the switch' 
> Proposed fix:
> int i=10;
>  final String val = 
>  switch (i) 
>  { 
>  case 1 -> "one"; 
>  case 2 -> "two"; 
>  };
>  



--
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-1761) Fix issues of "Convert switch to rule switch" hints

2018-11-28 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1761:
---

 Summary: Fix issues of "Convert switch to rule switch" hints
 Key: NETBEANS-1761
 URL: https://issues.apache.org/jira/browse/NETBEANS-1761
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Following errors observe while verifying the "Convert switch to rule switch" 
hints
 # Currently it is throwing NullPointer exception while fixing the hints.
 # No hints showing while remove any break statement (i.e //break;)



--
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-1736) Code Donation: License issue in module j2ee.jboss4

2018-11-27 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-1736:

Description: 
'LGPL-2.1' license issue with dtd files:

jboss-app_4_0.dtd 
 jboss-client_4_0.dtd 
 jboss-ds_1_5.dtd 
 jboss-service_4_0.dtd 
 jboss-web_4_0.dtd 
 jboss_4_0.dtd

License ref: [https://www.jboss.org/j2ee/dtd/]

We can't donate the files to Apache code with LGPL-2.0 license. Need to find 
the proper license for these files in donation task.

 

PR Path: [https://github.com/apache/incubator-netbeans/pull/968]

  was:
'LGPL-2.1' license issue with dtd files:

jboss-app_4_0.dtd 
 jboss-client_4_0.dtd 
 jboss-ds_1_5.dtd 
 jboss-service_4_0.dtd 
 jboss-web_4_0.dtd 
 jboss_4_0.dtd

License ref: [https://www.jboss.org/j2ee/dtd/]

Need to find the proper license for these files in donation task.

 

PR Path: [https://github.com/apache/incubator-netbeans/pull/968]


> Code Donation: License issue in module j2ee.jboss4
> --
>
> Key: NETBEANS-1736
> URL: https://issues.apache.org/jira/browse/NETBEANS-1736
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Priority: Major
>
> 'LGPL-2.1' license issue with dtd files:
> jboss-app_4_0.dtd 
>  jboss-client_4_0.dtd 
>  jboss-ds_1_5.dtd 
>  jboss-service_4_0.dtd 
>  jboss-web_4_0.dtd 
>  jboss_4_0.dtd
> License ref: [https://www.jboss.org/j2ee/dtd/]
> We can't donate the files to Apache code with LGPL-2.0 license. Need to find 
> the proper license for these files in donation task.
>  
> PR Path: [https://github.com/apache/incubator-netbeans/pull/968]



--
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-1756) Code Donation: License issue in module websvc.wsitmodelext

2018-11-27 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1756:
---

 Summary: Code Donation: License issue in module websvc.wsitmodelext
 Key: NETBEANS-1756
 URL: https://issues.apache.org/jira/browse/NETBEANS-1756
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar


The following files have 'OASIS' license:
 # WS-Trust.xsd 
 # ws-trust-1.3.xsd 

We can't donate the files to Apache code with OASIS license. Need to find the 
proper license source for these files.

PR path: https://github.com/apache/incubator-netbeans/pull/913



--
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-1736) Code Donation: License issue in module j2ee.jboss4

2018-11-27 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-1736:

Description: 
'LGPL-2.1' license issue with dtd files:

jboss-app_4_0.dtd 
 jboss-client_4_0.dtd 
 jboss-ds_1_5.dtd 
 jboss-service_4_0.dtd 
 jboss-web_4_0.dtd 
 jboss_4_0.dtd

License ref: [https://www.jboss.org/j2ee/dtd/]

Need to find the proper license for these files in donation task.

 

PR Path: [https://github.com/apache/incubator-netbeans/pull/968]

  was:
'LGPL-2.1' license issue with dtd files:

jboss-app_4_0.dtd 
 jboss-client_4_0.dtd 
 jboss-ds_1_5.dtd 
 jboss-service_4_0.dtd 
 jboss-web_4_0.dtd 
 jboss_4_0.dtd

License ref: [https://www.jboss.org/j2ee/dtd/]

 

PR Path: [https://github.com/apache/incubator-netbeans/pull/968]


> Code Donation: License issue in module j2ee.jboss4
> --
>
> Key: NETBEANS-1736
> URL: https://issues.apache.org/jira/browse/NETBEANS-1736
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Priority: Major
>
> 'LGPL-2.1' license issue with dtd files:
> jboss-app_4_0.dtd 
>  jboss-client_4_0.dtd 
>  jboss-ds_1_5.dtd 
>  jboss-service_4_0.dtd 
>  jboss-web_4_0.dtd 
>  jboss_4_0.dtd
> License ref: [https://www.jboss.org/j2ee/dtd/]
> Need to find the proper license for these files in donation task.
>  
> PR Path: [https://github.com/apache/incubator-netbeans/pull/968]



--
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-1736) Code Donation: License issue in module j2ee.jboss4

2018-11-27 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-1736:

Description: 
'LGPL-2.1' license issue with dtd files:

jboss-app_4_0.dtd 
 jboss-client_4_0.dtd 
 jboss-ds_1_5.dtd 
 jboss-service_4_0.dtd 
 jboss-web_4_0.dtd 
 jboss_4_0.dtd

License ref: [https://www.jboss.org/j2ee/dtd/]

 

PR Path: [https://github.com/apache/incubator-netbeans/pull/968]

  was:
'LGPL-2.1' license issue with dtd files:

jboss-app_4_0.dtd 
jboss-client_4_0.dtd 
jboss-ds_1_5.dtd 
jboss-service_4_0.dtd 
jboss-web_4_0.dtd 
jboss_4_0.dtd

License ref: [https://www.jboss.org/j2ee/dtd/]

 

https://github.com/apache/incubator-netbeans/pull/968


> Code Donation: License issue in module j2ee.jboss4
> --
>
> Key: NETBEANS-1736
> URL: https://issues.apache.org/jira/browse/NETBEANS-1736
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Priority: Major
>
> 'LGPL-2.1' license issue with dtd files:
> jboss-app_4_0.dtd 
>  jboss-client_4_0.dtd 
>  jboss-ds_1_5.dtd 
>  jboss-service_4_0.dtd 
>  jboss-web_4_0.dtd 
>  jboss_4_0.dtd
> License ref: [https://www.jboss.org/j2ee/dtd/]
>  
> PR Path: [https://github.com/apache/incubator-netbeans/pull/968]



--
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-1736) Code Donation: License issue in module j2ee.jboss4

2018-11-27 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-1736:

Summary: Code Donation: License issue in module j2ee.jboss4  (was: Code 
Donation issue : j2ee.jboss4)

> Code Donation: License issue in module j2ee.jboss4
> --
>
> Key: NETBEANS-1736
> URL: https://issues.apache.org/jira/browse/NETBEANS-1736
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Priority: Major
>
> 'LGPL-2.1' license issue with dtd files:
> jboss-app_4_0.dtd 
> jboss-client_4_0.dtd 
> jboss-ds_1_5.dtd 
> jboss-service_4_0.dtd 
> jboss-web_4_0.dtd 
> jboss_4_0.dtd
> License ref: [https://www.jboss.org/j2ee/dtd/]
>  
> https://github.com/apache/incubator-netbeans/pull/968



--
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] [Commented] (NETBEANS-1453) Cannot connect to MySQL ( MariaDB)

2018-11-25 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-1453:
-

If already a MySQL server exist then "Register MySQL server.." will be 
disabled, and if we delete the existing MySQL server and then select "Register 
MySQL Server" then it is working without any issue.

It will be easy in debugging if you could share a small video or some screen 
shots of the issue. 

> Cannot connect to MySQL ( MariaDB)
> --
>
> Key: NETBEANS-1453
> URL: https://issues.apache.org/jira/browse/NETBEANS-1453
> Project: NetBeans
>  Issue Type: Bug
>  Components: db - MySQL
>Affects Versions: 10.0
>Reporter: Alexander Romanenko
>Priority: Major
> Attachments: image-2018-10-18-12-08-10-462.png, mariadb_snap.JPG
>
>
> Running test 
> [http://netbeans-vm.apache.org/synergy/client/app/#/specification/391/v/2]
> step 4:
> !image-2018-10-18-12-08-10-462.png!



--
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-1453) Cannot connect to MySQL ( MariaDB)

2018-11-25 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-1453:

Summary: Cannot connect to MySQL ( MariaDB)  (was: Cannot connect to MySQL)

> Cannot connect to MySQL ( MariaDB)
> --
>
> Key: NETBEANS-1453
> URL: https://issues.apache.org/jira/browse/NETBEANS-1453
> Project: NetBeans
>  Issue Type: Bug
>  Components: db - MySQL
>Affects Versions: 10.0
>Reporter: Alexander Romanenko
>Priority: Major
> Attachments: image-2018-10-18-12-08-10-462.png, mariadb_snap.JPG
>
>
> Running test 
> [http://netbeans-vm.apache.org/synergy/client/app/#/specification/391/v/2]
> step 4:
> !image-2018-10-18-12-08-10-462.png!



--
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-1728) ClassCastException in switch expression

2018-11-23 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-1728:

Summary: ClassCastException in switch expression   (was: Find 
"java.lang.ClassCastException" in switch expression)

> ClassCastException in switch expression 
> 
>
> Key: NETBEANS-1728
> URL: https://issues.apache.org/jira/browse/NETBEANS-1728
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: NB-JDK12
>
> Find "java.lang.ClassCastException" with following code snippet:
> int i=10;
>  final String val = 
>  switch (i) { 
>  case 1 : break "one"; 
>  case 2 -> "two"; 
>  };
>  
> Exception logs:
> java.lang.ClassCastException: class 
> com.sun.tools.javac.tree.JCTree$JCSwitchExpression cannot be cast to class 
> com.sun.source.tree.StatementTree 
> (com.sun.tools.javac.tree.JCTree$JCSwitchExpression and 
> com.sun.source.tree.StatementTree are in module jdk.compiler of loader 'app')
>  at 
> org.netbeans.api.java.source.TreeUtilities.getBreakContinueTarget(TreeUtilities.java:1358)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitBreak(NPECheck.java:1252)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitBreak(NPECheck.java:545)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBreak.accept(JCTree.java:1575)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
>  at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:114)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCase(TreeScanner.java:372)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCase.accept(JCTree.java:1293)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
>  at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:114)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitSwitchExpression(TreeScanner.java:354)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCSwitchExpression.accept(JCTree.java:1323)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitVariable(NPECheck.java:704)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitVariable(NPECheck.java:545)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:980)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
>  at 
> org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:91)
>  at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
>  at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:249)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1038)
>  at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>  at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>  at 
> 

[jira] [Comment Edited] (NETBEANS-1453) Cannot connect to MySQL

2018-11-22 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar edited comment on NETBEANS-1453 at 11/23/18 6:45 AM:
---

I checked  in MariaDB version (MariaDB 10.3(x64)) and there is no issue in 
database connection , insert, update and delete operation.

It seems the priority of this issue should be either major or minor.

!mariadb_snap.JPG!

 

 

 


was (Author: vikas.prabhakar):
I checked  in MariaDB version (MariaDB 10.3(x64)) and there is no issue in 
database connection , insert, update and delete operation.

It seems the priority of this issue should be either major or minor.

 

!mariadb_snap.JPG!

> Cannot connect to MySQL
> ---
>
> Key: NETBEANS-1453
> URL: https://issues.apache.org/jira/browse/NETBEANS-1453
> Project: NetBeans
>  Issue Type: Bug
>  Components: db - MySQL
>Affects Versions: 10.0
>Reporter: Alexander Romanenko
>Priority: Critical
> Attachments: image-2018-10-18-12-07-56-560.png, 
> image-2018-10-18-12-08-10-462.png, mariadb_snap.JPG
>
>
> Running test 
> [http://netbeans-vm.apache.org/synergy/client/app/#/specification/391/v/2]
> step 4:
> !image-2018-10-18-12-08-10-462.png!



--
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] [Commented] (NETBEANS-1453) Cannot connect to MySQL

2018-11-22 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-1453:
-

I checked  in MariaDB version (MariaDB 10.3(x64)) and there is no issue in 
database connection , insert, update and delete operation.

It seems the priority of this issue should be either major or minor.

 

!mariadb_snap.JPG!

> Cannot connect to MySQL
> ---
>
> Key: NETBEANS-1453
> URL: https://issues.apache.org/jira/browse/NETBEANS-1453
> Project: NetBeans
>  Issue Type: Bug
>  Components: db - MySQL
>Affects Versions: 10.0
>Reporter: Alexander Romanenko
>Priority: Critical
> Attachments: image-2018-10-18-12-07-56-560.png, 
> image-2018-10-18-12-08-10-462.png
>
>
> Running test 
> [http://netbeans-vm.apache.org/synergy/client/app/#/specification/391/v/2]
> step 4:
> !image-2018-10-18-12-08-10-462.png!



--
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-1728) Find "java.lang.ClassCastException" in switch expression

2018-11-22 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1728:
---

 Summary: Find "java.lang.ClassCastException" in switch expression
 Key: NETBEANS-1728
 URL: https://issues.apache.org/jira/browse/NETBEANS-1728
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Find "java.lang.ClassCastException" with following code snippet:

int i=10;
 final String val = 
 switch (i) { 
 case 1 : break "one"; 
 case 2 -> "two"; 
 };

 

Exception logs:

java.lang.ClassCastException: class 
com.sun.tools.javac.tree.JCTree$JCSwitchExpression cannot be cast to class 
com.sun.source.tree.StatementTree 
(com.sun.tools.javac.tree.JCTree$JCSwitchExpression and 
com.sun.source.tree.StatementTree are in module jdk.compiler of loader 'app')
 at 
org.netbeans.api.java.source.TreeUtilities.getBreakContinueTarget(TreeUtilities.java:1358)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitBreak(NPECheck.java:1252)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitBreak(NPECheck.java:545)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBreak.accept(JCTree.java:1575)
 at 
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
 at 
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
 at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
 at 
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
 at 
jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:114)
 at jdk.compiler/com.sun.source.util.TreeScanner.visitCase(TreeScanner.java:372)
 at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCase.accept(JCTree.java:1293)
 at 
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
 at 
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
 at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
 at 
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
 at 
jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:114)
 at 
jdk.compiler/com.sun.source.util.TreeScanner.visitSwitchExpression(TreeScanner.java:354)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCSwitchExpression.accept(JCTree.java:1323)
 at 
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
 at 
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitVariable(NPECheck.java:704)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitVariable(NPECheck.java:545)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:980)
 at 
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
 at 
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
 at 
jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:91)
 at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
 at 
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
 at 
jdk.compiler/com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:249)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1038)
 at 
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
 at 
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:624)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:545)
 at 
jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:91)
 at 
jdk.compiler/com.sun.source.util.TreeScanner.visitMethod(TreeScanner.java:207)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitMethod(NPECheck.java:1129)
 at 
org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitMethod(NPECheck.java:545)
 at 

[jira] [Commented] (NETBEANS-1453) Cannot connect to MySQL

2018-11-20 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-1453:
-

I checked the issue with MySQL version 8.0.13(Latest stable version) and issue 
is not reproducible.

Please share the path to download MySQL version 10.1.

> Cannot connect to MySQL
> ---
>
> Key: NETBEANS-1453
> URL: https://issues.apache.org/jira/browse/NETBEANS-1453
> Project: NetBeans
>  Issue Type: Bug
>  Components: db - MySQL
>Affects Versions: 10.0
>Reporter: Alexander Romanenko
>Priority: Critical
> Attachments: image-2018-10-18-12-07-56-560.png, 
> image-2018-10-18-12-08-10-462.png
>
>
> Running test 
> [http://netbeans-vm.apache.org/synergy/client/app/#/specification/391/v/2]
> step 4:
> !image-2018-10-18-12-08-10-462.png!



--
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-1453) Cannot connect to MySQL

2018-11-08 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar edited comment on NETBEANS-1453 at 11/9/18 6:35 AM:
--

The issue is not reproducible in master/vc1 branch.

I followed the following steps to check the issue:

System details: Windows 10

JDK versoin: 8 & 11
h4. [. MySQL Driver 
Support|http://netbeans-vm.apache.org/synergy/client/app/#/suite/2241]  Test 
Suite   
h5. Setup

Start IDE with fresh userdir. Have some DB connection to sample database.
 # *[Check MySQL DB is 
present|http://netbeans-vm.apache.org/synergy/client/app/#/case/898/suite/2241/v/1]*
 Test Case   [Report issue 
↗|https://issues.apache.org/jira/secure/CreateIssue!default.jspa?pid=12320634=1=Check%20MySQL%20DB%20is%20present]
 ** *Steps:* 
 ### Open Windows | Services
 ** *Result:* 
 Under Databases, MySQL is present.
 ** *Labels:* 
[sanity|http://netbeans-vm.apache.org/synergy/client/app/#/label/sanity] 
 # *[MySQL 
properties|http://netbeans-vm.apache.org/synergy/client/app/#/case/899/suite/2241/v/1]*
 Test Case   [Report issue 
↗|https://issues.apache.org/jira/secure/CreateIssue!default.jspa?pid=12320634=1=MySQL%20properties]
 ** *Steps:* 
 ### Invoke popup on MySQL node
 ### Open properties dialog
 ### Check properties, if everything was recognized by IDE, fill in password if 
necessary, close dialog.
 ** *Result:* 
 Settings are now correct, connection succeeds. Databases nodes can be 
displayed if you expand MySQL node.
 ** *Issues:* 1453
 Note: added the connector jar(mysql-connector-java-xyz.jar) in property. 

Please let me know if I missed any steps while checking the issue.


was (Author: vikas.prabhakar):
The issue is not reproducible in master/vc1 branch.

I followed the following steps to check the issue:
h4. [. MySQL Driver 
Support|http://netbeans-vm.apache.org/synergy/client/app/#/suite/2241]  Test 
Suite   
h5. Setup
Start IDE with fresh userdir. Have some DB connection to sample database.
 # *[Check MySQL DB is 
present|http://netbeans-vm.apache.org/synergy/client/app/#/case/898/suite/2241/v/1]*
 Test Case   [Report issue 
↗|https://issues.apache.org/jira/secure/CreateIssue!default.jspa?pid=12320634=1=Check%20MySQL%20DB%20is%20present]
 ** *Steps:* 
 ### Open Windows | Services
 ** *Result:* 
Under Databases, MySQL is present.
 ** *Labels:* 
[sanity|http://netbeans-vm.apache.org/synergy/client/app/#/label/sanity] 
 # *[MySQL 
properties|http://netbeans-vm.apache.org/synergy/client/app/#/case/899/suite/2241/v/1]*
 Test Case   [Report issue 
↗|https://issues.apache.org/jira/secure/CreateIssue!default.jspa?pid=12320634=1=MySQL%20properties]
 ** *Steps:* 
 ### Invoke popup on MySQL node
 ### Open properties dialog
 ### Check properties, if everything was recognized by IDE, fill in password if 
necessary, close dialog.
 ** *Result:* 
Settings are now correct, connection succeeds. Databases nodes can be displayed 
if you expand MySQL node.
 ** *Issues:* 1453
Note: added the connector jar(mysql-connector-java-xyz.jar) in property. 

Please let me know if I missed any steps while checking the issue.

> Cannot connect to MySQL
> ---
>
> Key: NETBEANS-1453
> URL: https://issues.apache.org/jira/browse/NETBEANS-1453
> Project: NetBeans
>  Issue Type: Bug
>  Components: db - MySQL
>Affects Versions: 10.0
>Reporter: Alexander Romanenko
>Priority: Critical
> Attachments: image-2018-10-18-12-07-56-560.png, 
> image-2018-10-18-12-08-10-462.png
>
>
> Running test 
> [http://netbeans-vm.apache.org/synergy/client/app/#/specification/391/v/2]
> step 4:
> !image-2018-10-18-12-08-10-462.png!



--
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] [Commented] (NETBEANS-1453) Cannot connect to MySQL

2018-11-08 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-1453:
-

The issue is not reproducible in master/vc1 branch.

I followed the following steps to check the issue:
h4. [. MySQL Driver 
Support|http://netbeans-vm.apache.org/synergy/client/app/#/suite/2241]  Test 
Suite   
h5. Setup
Start IDE with fresh userdir. Have some DB connection to sample database.
 # *[Check MySQL DB is 
present|http://netbeans-vm.apache.org/synergy/client/app/#/case/898/suite/2241/v/1]*
 Test Case   [Report issue 
↗|https://issues.apache.org/jira/secure/CreateIssue!default.jspa?pid=12320634=1=Check%20MySQL%20DB%20is%20present]
 ** *Steps:* 
 ### Open Windows | Services
 ** *Result:* 
Under Databases, MySQL is present.
 ** *Labels:* 
[sanity|http://netbeans-vm.apache.org/synergy/client/app/#/label/sanity] 
 # *[MySQL 
properties|http://netbeans-vm.apache.org/synergy/client/app/#/case/899/suite/2241/v/1]*
 Test Case   [Report issue 
↗|https://issues.apache.org/jira/secure/CreateIssue!default.jspa?pid=12320634=1=MySQL%20properties]
 ** *Steps:* 
 ### Invoke popup on MySQL node
 ### Open properties dialog
 ### Check properties, if everything was recognized by IDE, fill in password if 
necessary, close dialog.
 ** *Result:* 
Settings are now correct, connection succeeds. Databases nodes can be displayed 
if you expand MySQL node.
 ** *Issues:* 1453
Note: added the connector jar(mysql-connector-java-xyz.jar) in property. 

Please let me know if I missed any steps while checking the issue.

> Cannot connect to MySQL
> ---
>
> Key: NETBEANS-1453
> URL: https://issues.apache.org/jira/browse/NETBEANS-1453
> Project: NetBeans
>  Issue Type: Bug
>  Components: db - MySQL
>Affects Versions: 10.0
>Reporter: Alexander Romanenko
>Priority: Critical
> Attachments: image-2018-10-18-12-07-56-560.png, 
> image-2018-10-18-12-08-10-462.png
>
>
> Running test 
> [http://netbeans-vm.apache.org/synergy/client/app/#/specification/391/v/2]
> step 4:
> !image-2018-10-18-12-08-10-462.png!



--
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-1308) Windows launcher fails to suppress console

2018-11-04 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar resolved NETBEANS-1308.
-
Resolution: Fixed

Issue is fixed with PR: https://github.com/apache/incubator-netbeans/pull/969

> Windows launcher fails to suppress console
> --
>
> Key: NETBEANS-1308
> URL: https://issues.apache.org/jira/browse/NETBEANS-1308
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Affects Versions: 10.0
> Environment: Windows 10
>Reporter: Eirik Bakke
>Assignee: vikas kumar prabhakar
>Priority: Critical
>
> The latest version of the Windows launcher (netbeans64.exe), on the master 
> branch per September 16, opens a new console window every time NetBeans is 
> launched from a shortcut or by double-clicking on the executable in Explorer. 
> The console was suppressed in earlier versions.
> I think this applied to the platform application launcher as well (app64.exe) 
> when I tested two weeks ago.
> This bug was present before the unrelated changes in NETBEANS-1227 ( 
> https://github.com/apache/incubator-netbeans/pull/573 ).



--
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] [Assigned] (NETBEANS-1308) Windows launcher fails to suppress console

2018-10-15 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1308:
---

Assignee: vikas kumar prabhakar

> Windows launcher fails to suppress console
> --
>
> Key: NETBEANS-1308
> URL: https://issues.apache.org/jira/browse/NETBEANS-1308
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Affects Versions: 10.0
> Environment: Windows 10
>Reporter: Eirik Bakke
>Assignee: vikas kumar prabhakar
>Priority: Critical
>
> The latest version of the Windows launcher (netbeans64.exe), on the master 
> branch per September 16, opens a new console window every time NetBeans is 
> launched from a shortcut or by double-clicking on the executable in Explorer. 
> The console was suppressed in earlier versions.
> I think this applied to the platform application launcher as well (app64.exe) 
> when I tested two weeks ago.
> This bug was present before the unrelated changes in NETBEANS-1227 ( 
> https://github.com/apache/incubator-netbeans/pull/573 ).



--
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] [Assigned] (NETBEANS-1176) Publish Apache NetBeans javadoc

2018-10-07 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1176:
---

Assignee: (was: vikas kumar prabhakar)

> Publish Apache NetBeans javadoc
> ---
>
> Key: NETBEANS-1176
> URL: https://issues.apache.org/jira/browse/NETBEANS-1176
> Project: NetBeans
>  Issue Type: Task
>Reporter: Geertjan Wielenga
>Priority: Major
>
> Task for publishing NetBeans javadoc.
> Discussion is here:
> https://lists.apache.org/thread.html/b5d3c2a6c083b01ddd232f6b1b9150d08efab5837eb67b0bf4aa09aa@%3Cdev.netbeans.apache.org%3E



--
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-1064) not detected

2018-09-16 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar edited comment on NETBEANS-1064 at 9/17/18 1:35 AM:
--

The issue cab be resolve by adding the property  in netbeans_default_options 
property in etc/netbeans.conf

property: 
 -J-Dorg.netbeans.modules.extbrowser.UseDesktopBrowse=true
  

Refrerece bug: [https://netbeans.org/bugzilla/show_bug.cgi?id=189525]


was (Author: vikas.prabhakar):
The issue will be resolve by adding the property  in netbeans_default_options 
property in etc/netbeans.conf

property: 
-J-Dorg.netbeans.modules.extbrowser.UseDesktopBrowse=true
 

Refrerece bug: https://netbeans.org/bugzilla/show_bug.cgi?id=189525

>  not detected
> -
>
> Key: NETBEANS-1064
> URL: https://issues.apache.org/jira/browse/NETBEANS-1064
> Project: NetBeans
>  Issue Type: Bug
>  Components: cnd - Toolchain
>Affects Versions: 9.0
> Environment: NetBeans 9.0 RC1, WIN10, java 10.0.1., Firefox 61.0.1
>Reporter: Jörg Büchner
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> Being new to NetBeans I first clicked on [Take a Tour] and received the Error 
> message:
> "Could not access the URL through the external browser. Check the browser 
> configuration."
> First I would have appreciated a hint where this can be done 
> (Tools/Options/General) and
> second I wonder why my Firefox is not detected, although it is set as default 
> in the Windows settings under Apps/Standard Apps.
> However, when explicitly selecting Firefox in the Options dialog, everythings 
> works fine.



--
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-1064) not detected

2018-09-14 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar resolved NETBEANS-1064.
-
Resolution: Fixed

The issue will be resolve by adding the property  in netbeans_default_options 
property in etc/netbeans.conf

property: 
-J-Dorg.netbeans.modules.extbrowser.UseDesktopBrowse=true
 

Refrerece bug: https://netbeans.org/bugzilla/show_bug.cgi?id=189525

>  not detected
> -
>
> Key: NETBEANS-1064
> URL: https://issues.apache.org/jira/browse/NETBEANS-1064
> Project: NetBeans
>  Issue Type: Bug
>  Components: cnd - Toolchain
>Affects Versions: 9.0
> Environment: NetBeans 9.0 RC1, WIN10, java 10.0.1., Firefox 61.0.1
>Reporter: Jörg Büchner
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Being new to NetBeans I first clicked on [Take a Tour] and received the Error 
> message:
> "Could not access the URL through the external browser. Check the browser 
> configuration."
> First I would have appreciated a hint where this can be done 
> (Tools/Options/General) and
> second I wonder why my Firefox is not detected, although it is set as default 
> in the Windows settings under Apps/Standard Apps.
> However, when explicitly selecting Firefox in the Options dialog, everythings 
> works fine.



--
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] [Commented] (NETBEANS-1064) not detected

2018-09-14 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-1064:
-

The issue will be resolve by adding the property  in netbeans_default_options 
property in etc/netbeans.conf

property: 
-J-Dorg.netbeans.modules.extbrowser.UseDesktopBrowse=true
 

Refrerece bug: https://netbeans.org/bugzilla/show_bug.cgi?id=189525

>  not detected
> -
>
> Key: NETBEANS-1064
> URL: https://issues.apache.org/jira/browse/NETBEANS-1064
> Project: NetBeans
>  Issue Type: Bug
>  Components: cnd - Toolchain
>Affects Versions: 9.0
> Environment: NetBeans 9.0 RC1, WIN10, java 10.0.1., Firefox 61.0.1
>Reporter: Jörg Büchner
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Being new to NetBeans I first clicked on [Take a Tour] and received the Error 
> message:
> "Could not access the URL through the external browser. Check the browser 
> configuration."
> First I would have appreciated a hint where this can be done 
> (Tools/Options/General) and
> second I wonder why my Firefox is not detected, although it is set as default 
> in the Windows settings under Apps/Standard Apps.
> However, when explicitly selecting Firefox in the Options dialog, everythings 
> works fine.



--
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] [Assigned] (NETBEANS-1176) Publish Apache NetBeans javadoc

2018-09-14 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1176:
---

Assignee: vikas kumar prabhakar

> Publish Apache NetBeans javadoc
> ---
>
> Key: NETBEANS-1176
> URL: https://issues.apache.org/jira/browse/NETBEANS-1176
> Project: NetBeans
>  Issue Type: Task
>Reporter: Geertjan Wielenga
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Task for publishing NetBeans javadoc.
> Discussion is here:
> https://lists.apache.org/thread.html/b5d3c2a6c083b01ddd232f6b1b9150d08efab5837eb67b0bf4aa09aa@%3Cdev.netbeans.apache.org%3E



--
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-1251) nb-javac 11 testcase failure : Compound var declaration

2018-09-14 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1251:
---

 Summary: nb-javac 11 testcase failure : Compound var declaration
 Key: NETBEANS-1251
 URL: https://issues.apache.org/jira/browse/NETBEANS-1251
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar


Below testcases are failing:
[junit] Testcase: 
testVarCompoundDeclaration1(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
 FAILED
[junit] Testcase: 
testVarCompoundDeclaration2(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
 FAILED
[junit] Testcase: 
testVarCompoundDeclaration3(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
 FAILED
[junit] Testcase: 
testVarCompoundDeclaration4(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest):
 FAILED

[junit] Testcase: 
testCase1(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: 
testCase2(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: 
testCase3(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: 
testCase5(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: 
testCase6(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: 
testCase7(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: 
testCase8(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: 
testCase9(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: 
testCase10(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
FAILED

 

Issue Description:

Javac Issue description(from Vikas) :

Sample code: var v1 = 10, v2 = 11;

Compilation tree details with jdk-10:

In this case the parent bloc tree has two trees : 1. int v1 = 10; 2. int v2 = 
11;

statementPath.getLeaf() i.e ctx.getPath().getLeaf() refers to first tree of 
block i.e int v1 = 10;

Compilation tree details with jdk-11:

In this case the parent bloc tree has two trees : 1. int v1 = 10; 2. var v2 = 
11;

statementPath.getLeaf() i.e ctx.getPath().getLeaf() refers to second tree of 
block i.e var v2 = 11;



--
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] [Closed] (NETBEANS-1183) 'Use explicit type' hint exception in lambda parameter list using nb-javac 11

2018-09-05 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1183.
---

> 'Use explicit type' hint exception in lambda parameter list using nb-javac 11
> -
>
> Key: NETBEANS-1183
> URL: https://issues.apache.org/jira/browse/NETBEANS-1183
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Fix 'Use explicit type' hint exception in lambda parameter list using 
> nb-javac 11
> A a = ( x, int y ) -> x+y; --> 'use explicit type' throw exception



--
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] [Closed] (NETBEANS-1181) Disable hint 'Use var parameter types' for empty parameter list

2018-09-05 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1181.
---

> Disable hint 'Use var parameter types' for empty parameter list 
> 
>
> Key: NETBEANS-1181
> URL: https://issues.apache.org/jira/browse/NETBEANS-1181
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Minor
>
> Disable hint 'Use var parameter types' for empty parameter list
> Test environment: JDK 11, nb-javac of JDK11 
> Code:
> public class JavaApplication3 {
> /**@param args the command line arguments
> */
> public static void main(String[] args) \{ // TODO code application logic here 
> * A a = () -> 1;* }
> interface A
> { int m1(); }
> }



--
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] [Closed] (NETBEANS-1182) Issues in hint 'Use var Parameter types' with nb-javac 11

2018-09-05 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1182.
---

> Issues in hint 'Use var Parameter types'  with nb-javac 11 
> ---
>
> Key: NETBEANS-1182
> URL: https://issues.apache.org/jira/browse/NETBEANS-1182
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Fix 'Use var parameter types' hint suggestion issue in nb-javac 11
> 1. A a = ( x, var y) -> x; --> Give fix with error i.e A a = ( var x, var var 
> y) -> x; 
> 2. A a = ( x, int y ) -> x+y; --> Cause Exception with fix



--
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-1183) 'Use explicit type' hint exception in lambda parameter list using nb-javac 11

2018-09-05 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar resolved NETBEANS-1183.
-
Resolution: Fixed

 PR:  [https://github.com/apache/incubator-netbeans/pull/819]

> 'Use explicit type' hint exception in lambda parameter list using nb-javac 11
> -
>
> Key: NETBEANS-1183
> URL: https://issues.apache.org/jira/browse/NETBEANS-1183
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Fix 'Use explicit type' hint exception in lambda parameter list using 
> nb-javac 11
> A a = ( x, int y ) -> x+y; --> 'use explicit type' throw exception



--
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-1182) Issues in hint 'Use var Parameter types' with nb-javac 11

2018-09-05 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar resolved NETBEANS-1182.
-
Resolution: Fixed

PR: https://github.com/apache/incubator-netbeans/pull/831

> Issues in hint 'Use var Parameter types'  with nb-javac 11 
> ---
>
> Key: NETBEANS-1182
> URL: https://issues.apache.org/jira/browse/NETBEANS-1182
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Fix 'Use var parameter types' hint suggestion issue in nb-javac 11
> 1. A a = ( x, var y) -> x; --> Give fix with error i.e A a = ( var x, var var 
> y) -> x; 
> 2. A a = ( x, int y ) -> x+y; --> Cause Exception with fix



--
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-1181) Disable hint 'Use var parameter types' for empty parameter list

2018-09-05 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar resolved NETBEANS-1181.
-
Resolution: Fixed

PR: https://github.com/apache/incubator-netbeans/pull/831

> Disable hint 'Use var parameter types' for empty parameter list 
> 
>
> Key: NETBEANS-1181
> URL: https://issues.apache.org/jira/browse/NETBEANS-1181
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Minor
>
> Disable hint 'Use var parameter types' for empty parameter list
> Test environment: JDK 11, nb-javac of JDK11 
> Code:
> public class JavaApplication3 {
> /**@param args the command line arguments
> */
> public static void main(String[] args) \{ // TODO code application logic here 
> * A a = () -> 1;* }
> interface A
> { int m1(); }
> }



--
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] [Closed] (NETBEANS-1189) Invalid license files in websvc.core module

2018-08-29 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1189.
---
Resolution: Fixed
  Assignee: vikas kumar prabhakar

Issue is fixed

> Invalid license files in websvc.core module
> ---
>
> Key: NETBEANS-1189
> URL: https://issues.apache.org/jira/browse/NETBEANS-1189
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> The following license files[1] , belonging to websvc.core module, are listed 
> in the rat-report.txt file and need a more experienced review:
>  glassfish-license.txt
> [https://github.com/apache/incubator-netbeans/pull/789|https://github.com/apache/incubator-netbeans/pull/789]



--
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-1189) Invalid license files in websvc.core module

2018-08-24 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-1189:

Description: 
The following license files[1] , belonging to websvc.core module, are listed in 
the rat-report.txt file and need a more experienced review:
 glassfish-license.txt

[https://github.com/apache/incubator-netbeans/pull/789|https://github.com/apache/incubator-netbeans/pull/789]

  was:
The following license files[1] , belonging to websvc.core module, are listed in 
the rat-report.txt file and need a more experienced review:
glassfish-license.txt

 


> Invalid license files in websvc.core module
> ---
>
> Key: NETBEANS-1189
> URL: https://issues.apache.org/jira/browse/NETBEANS-1189
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Priority: Major
>
> The following license files[1] , belonging to websvc.core module, are listed 
> in the rat-report.txt file and need a more experienced review:
>  glassfish-license.txt
> [https://github.com/apache/incubator-netbeans/pull/789|https://github.com/apache/incubator-netbeans/pull/789]



--
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-1189) Invalid license files in websvc.core module

2018-08-24 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1189:
---

 Summary: Invalid license files in websvc.core module
 Key: NETBEANS-1189
 URL: https://issues.apache.org/jira/browse/NETBEANS-1189
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar


The following license files[1] , belonging to websvc.core module, are listed in 
the rat-report.txt file and need a more experienced review:
glassfish-license.txt

 



--
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-1183) 'Use explicit type' hint exception in lambda parameter list using nb-javac 11

2018-08-24 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1183:
---

 Summary: 'Use explicit type' hint exception in lambda parameter 
list using nb-javac 11
 Key: NETBEANS-1183
 URL: https://issues.apache.org/jira/browse/NETBEANS-1183
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Fix 'Use explicit type' hint exception in lambda parameter list using nb-javac 
11

A a = ( x, int y ) -> x+y; --> 'use explicit type' throw exception



--
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-1182) Issues in hint 'Use var Parameter types' with nb-javac 11

2018-08-24 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1182:
---

 Summary: Issues in hint 'Use var Parameter types'  with nb-javac 
11 
 Key: NETBEANS-1182
 URL: https://issues.apache.org/jira/browse/NETBEANS-1182
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Fix 'Use var parameter types' hint suggestion issue in nb-javac 11
1. A a = ( x, var y) -> x; --> Give fix with error i.e A a = ( var x, var var 
y) -> x; 
2. A a = ( x, int y ) -> x+y; --> Cause Exception with fix



--
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-1181) Disable hint 'Use var parameter types' for empty parameter list

2018-08-24 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1181:
---

 Summary: Disable hint 'Use var parameter types' for empty 
parameter list 
 Key: NETBEANS-1181
 URL: https://issues.apache.org/jira/browse/NETBEANS-1181
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Disable hint 'Use var parameter types' for empty parameter list

Test environment: JDK 11, nb-javac of JDK11 

Code:
public class JavaApplication3 {

/**@param args the command line arguments
*/
public static void main(String[] args) \{ // TODO code application logic here * 
A a = () -> 1;* }

interface A

{ int m1(); }

}



--
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] [Commented] (NETBEANS-1138) Unable To create project folder

2018-08-17 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-1138:
-

While checking issue, the issue is not reproducible with NetBeans 9.0 and 
Oracle JDK 10. We can create the JavaFX application without any errors.

The error "Project Folder already exists and is not empty." shows only when 
trying to create duplicate JavaFX project.

Please check the project name while create the new JavaFX project.

> Unable To create project folder
> ---
>
> Key: NETBEANS-1138
> URL: https://issues.apache.org/jira/browse/NETBEANS-1138
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code, javafx - Project
>Affects Versions: 9.0
> Environment: Windows 10
>Reporter: Christopher Dufault
>Priority: Blocker
> Attachments: image-2018-08-14-09-38-56-945.png, 
> image-2018-08-14-09-42-00-476.png, image-2018-08-14-09-45-34-709.png, 
> image-2018-08-14-09-45-50-424.png, image-2018-08-14-09-46-04-290.png
>
>
> When creating a new project select JavaFX and JavaFX Application 
> !image-2018-08-14-09-38-56-945.png!
> Then accept the defaults and click finish. Note this file and folders do not 
> exits in the projects directory.
> !image-2018-08-14-09-42-00-476.png!
> The progress bar will get to 20% project folder is created but we get this 
> error message.
> !image-2018-08-14-09-46-04-290.png!
> The folders here were just created.
> !image-2018-08-14-09-45-50-424.png!
>  



--
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] [Commented] (NETBEANS-1064) not detected

2018-08-17 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-1064:
-

We checked the issue with following configuration:

NetBeans 9.0 RC3, WIN10, java 10.0.1, Firefox 61.1.0 and NetBeans 8.2 , WIN10, 
java 8.0.144, Firefox 61.1.0 but didn't get the errors "Could not access the 
URL through the external browser. Check the browser configuration."

We observed the clicked on [Take a Tour] open in Internet Explorer despite of 
Firefox was set as Default Web Browser.

>  not detected
> -
>
> Key: NETBEANS-1064
> URL: https://issues.apache.org/jira/browse/NETBEANS-1064
> Project: NetBeans
>  Issue Type: Bug
>  Components: cnd - Toolchain
>Affects Versions: 9.0
> Environment: NetBeans 9.0 RC1, WIN10, java 10.0.1., Firefox 61.0.1
>Reporter: Jörg Büchner
>Assignee: vikas kumar prabhakar
>Priority: Minor
>
> Being new to NetBeans I first clicked on [Take a Tour] and received the Error 
> message:
> "Could not access the URL through the external browser. Check the browser 
> configuration."
> First I would have appreciated a hint where this can be done 
> (Tools/Options/General) and
> second I wonder why my Firefox is not detected, although it is set as default 
> in the Windows settings under Apps/Standard Apps.
> However, when explicitly selecting Firefox in the Options dialog, everythings 
> works fine.



--
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] [Commented] (NETBEANS-715) Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source

2018-08-16 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-715:


The issue is reproducible with nb-javac plugin. The editor is working fine 
without nb-javac plugin but it gave ClasscastException with nb-javac plugin.

Test sample code:

{{public static void main(String[] args) {}}
{{    //}}
{{    System.out.println(true ? "" : (""));}}
{{}}}

> Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source
> --
>
> Key: NETBEANS-715
> URL: https://issues.apache.org/jira/browse/NETBEANS-715
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Hints  Annotations
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-205-on-20180202)
> 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\FourAbs
> Cache directory: Z:\tmp\.other\cache\netbeans\FourAbs-09
> Plugins:
>   * Netbeans Gradle plugin v1.4.3
>Reporter: will mason
>Priority: Major
>  Labels: ClassCastException, GUI, Regression, annotations, 
> editor, hints
> Attachments: ClassCastException.logs, JPanelIbaDetails.dump, 
> messages.log
>
>
> h2. context
> *  Gradle project open
> * Panel class open in editor
> * Java debugger running
> * Adding a correction to set value for a JCheckBox field.
> h2. expected / desirable
> * Finish adding source code change
> * Move to next GUI error in debugger and consider how that should work in 
> source
> h2. actual
> *  Annotation exception
> **   stacktrace 
> {code:java}
> An error occurred during parsing of 
> 'D:\work\products\FourAbs\FourAbsClientLibrary\src\main\java\au\com\fourtel\fourabs\client\ibas\JPanelIbaDetails.java'.
>  Please report a bug against java/source and attach dump file 
> 'Z:\tmp\.other\user\netbeans\v09.00-beta\FourAbs\var\log\JPanelIbaDetails.dump'.
> Caused: java.lang.ClassCastException: 
> com.sun.tools.javac.tree.JCTree$JCConditional cannot be cast to 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation
>   at 
> com.sun.tools.javac.comp.ArgumentAttr$ResolvedMethodType.dup(ArgumentAttr.java:607)
>   at 
> com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:240)
>   ...
> {code}
> h2.  Impact
> * Interrupts work 
> * Not sure if editing is stable 
> h2.  supporting information
> *  JPanelIbaDetails.dump
> * messages.log
> *  AssertionError.logs - 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] [Assigned] (NETBEANS-1008) ClassCastException while editing java 8 files

2018-08-16 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1008:
---

Assignee: (was: vikas kumar prabhakar)

> ClassCastException while editing java 8 files
> -
>
> Key: NETBEANS-1008
> URL: https://issues.apache.org/jira/browse/NETBEANS-1008
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 9.0
>Reporter: Tobias Warneke
>Priority: Major
>
> Caused: java.lang.ClassCastException: 
> com.sun.tools.javac.tree.JCTree$JCLambda cannot be cast to 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation
>  at 
> com.sun.tools.javac.comp.ArgumentAttr$ResolvedMethodType.dup(ArgumentAttr.java:607)
>  at com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:240)
>  at com.sun.tools.javac.comp.ArgumentAttr.visitLambda(ArgumentAttr.java:293)
>  at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1813)
>  at com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:197)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:658)
>  at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:769)
>  at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2049)
>  at 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2726)
>  at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1813)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:371)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:332)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:318)
>  at com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:1048)
>  at com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:875)
>  at 
> com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAcceptable(Resolve.java:783)
>  at com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:884)
>  at com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:626)
>  at com.sun.tools.javac.comp.Resolve.checkMethod(Resolve.java:652)
>  at com.sun.tools.javac.comp.Attr.checkMethod(Attr.java:4401)
>  at com.sun.tools.javac.comp.Attr.checkIdInternal(Attr.java:4189)
>  at com.sun.tools.javac.comp.Attr.checkMethodIdInternal(Attr.java:4088)
>  at com.sun.tools.javac.comp.Attr.checkMethodId(Attr.java:4067)
>  at com.sun.tools.javac.comp.Attr.checkId(Attr.java:4054)
>  at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3939)
>  at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2116)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2066)
>  at 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:713)
>  at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1825)
>  at 
> com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1458)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
>  at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:760)
>  at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1337)
>  at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:69)
>  at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
>  at 
> org.netbeans.modules.java.source.nbjavac.parsing.PartialReparserService.reattrMethodBody(PartialReparserService.java:180)
> [catch] at 
> org.netbeans.modules.java.source.nbjavac.parsing.PartialReparserImpl.reparseMethod(PartialReparserImpl.java:164)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.parseImpl(JavacParser.java:397)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.parse(JavacParser.java:330)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:598)
>  at 
> org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:228)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
>  at 
> 

[jira] [Assigned] (NETBEANS-715) Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source

2018-08-16 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-715:
--

Assignee: (was: vikas kumar prabhakar)

> Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source
> --
>
> Key: NETBEANS-715
> URL: https://issues.apache.org/jira/browse/NETBEANS-715
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Hints  Annotations
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-205-on-20180202)
> 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\FourAbs
> Cache directory: Z:\tmp\.other\cache\netbeans\FourAbs-09
> Plugins:
>   * Netbeans Gradle plugin v1.4.3
>Reporter: will mason
>Priority: Major
>  Labels: ClassCastException, GUI, Regression, annotations, 
> editor, hints
> Attachments: ClassCastException.logs, JPanelIbaDetails.dump, 
> messages.log
>
>
> h2. context
> *  Gradle project open
> * Panel class open in editor
> * Java debugger running
> * Adding a correction to set value for a JCheckBox field.
> h2. expected / desirable
> * Finish adding source code change
> * Move to next GUI error in debugger and consider how that should work in 
> source
> h2. actual
> *  Annotation exception
> **   stacktrace 
> {code:java}
> An error occurred during parsing of 
> 'D:\work\products\FourAbs\FourAbsClientLibrary\src\main\java\au\com\fourtel\fourabs\client\ibas\JPanelIbaDetails.java'.
>  Please report a bug against java/source and attach dump file 
> 'Z:\tmp\.other\user\netbeans\v09.00-beta\FourAbs\var\log\JPanelIbaDetails.dump'.
> Caused: java.lang.ClassCastException: 
> com.sun.tools.javac.tree.JCTree$JCConditional cannot be cast to 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation
>   at 
> com.sun.tools.javac.comp.ArgumentAttr$ResolvedMethodType.dup(ArgumentAttr.java:607)
>   at 
> com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:240)
>   ...
> {code}
> h2.  Impact
> * Interrupts work 
> * Not sure if editing is stable 
> h2.  supporting information
> *  JPanelIbaDetails.dump
> * messages.log
> *  AssertionError.logs - 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-1137) Split 'var' compound declaration fix are giving incorrect fix.

2018-08-14 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1137:
---

 Summary: Split 'var' compound declaration fix are giving incorrect 
fix.
 Key: NETBEANS-1137
 URL: https://issues.apache.org/jira/browse/NETBEANS-1137
 Project: NetBeans
  Issue Type: Bug
  Components: editor - Hints  Annotations
 Environment: OpenJDK11, nb-javac11, Apache NetBeans IDE Dev 9.0
Reporter: vikas kumar prabhakar


Split compound declaration fix for statement:  var v1 = 10, v2 = 11; is not 
giving correct output with openJDK11.

With Open JDK10:

Output: var v1 = 10;

             var v2 = 11;

With Open JDK11:

Output: var v1 = 10, var v2 = 11, v2 = 11;   ---> Errors



--
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] [Closed] (NETBEANS-478) "var" keyword is showing in black color.

2018-08-13 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-478.
--
Resolution: Fixed

Not an issue.

> "var" keyword is showing in black color.
> 
>
> Key: NETBEANS-478
> URL: https://issues.apache.org/jira/browse/NETBEANS-478
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Trivial
>  Labels: JDK10-LVTI
>
> "var" keyword is showing in black color with following line of code
>  # {color:#33}var[] x1 = null; {color}
>  # {color:#33}var[][] x3 = null;{color}
>  # {color:#33}boolean b1 = o instanceof var;{color}



--
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] [Closed] (NETBEANS-860) Proposed new hint "Convert Lambda to Use 'var' Parameter Types" for Lambda expression

2018-08-13 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-860.
--
Resolution: Fixed

Merged to Master Branch

https://github.com/apache/incubator-netbeans/pull/596

> Proposed new hint "Convert Lambda to Use 'var' Parameter Types"  for Lambda 
> expression
> --
>
> Key: NETBEANS-860
> URL: https://issues.apache.org/jira/browse/NETBEANS-860
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK11-VarInLambda, pull-request-available
>  Time Spent: 5h
>  Remaining Estimate: 0h
>
> Hint "Convert Lambda to Use 'var' Parameter Types" should be enable for below 
> expressions. 
> IntBinaryOperator cal c=  (int x, int y) -> x + y;
>  IntBinaryOperator cal c=  (x, y) -> x + y;
> Proposed fix : 
> IntBinaryOperator calc = (var x, var y) -> x + y;



--
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] [Closed] (NETBEANS-1108) Replace the repetitive code for error check in Hint module

2018-08-13 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1108.
---
Resolution: Fixed

Code merged to Master branch 

https://github.com/apache/incubator-netbeans/pull/647

> Replace the repetitive code for error check in Hint module
> --
>
> Key: NETBEANS-1108
> URL: https://issues.apache.org/jira/browse/NETBEANS-1108
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Replace the repetitive code for error check in Hint with 
> TreeUtilities.hasError() API method



--
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] [Closed] (NETBEANS-1057) NPE after removing -J-ea

2018-08-06 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1057.
---
Resolution: Fixed

As discussed with issue reporter, the issue is not reproducible any more.

> NPE after removing -J-ea
> 
>
> Key: NETBEANS-1057
> URL: https://issues.apache.org/jira/browse/NETBEANS-1057
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 9.0
> Environment: 9.0 nightly - Self built july 17, Windows 10.
>Reporter: Stephan Kesper
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Got a NullPointerException in NBJavadocMemberEnter.visitVarDef(). I removed 
> the -J-ea Flag in netbeans.conf because I got Errors concerning Assertions 
> that anoyed me. Hoped setting the flag would remove the error message, but 
> instead resulted in NPE.
> Action: It happens after a while after starting the IDE, when an automatic 
> Code-Completion is triggered. 
> I'm using a self compiled version. Checked out on July 17 around 8 O'clock in 
> the morning. Built with Oracle JDK 8.0_144 on Windows 10 and ant version 
> 1.10.3
> I'm creating this issue because Netbeans asked me to do so :), if you already 
> know of this issue or think that this will be mitigated in future, feel free 
> to close it immediately. 
> Exception:
> {code:java}
> java.lang.NullPointerException
>  at 
> org.netbeans.lib.nbjavac.services.NBJavadocMemberEnter.visitVarDef(NBJavadocMemberEnter.java:97)
>  at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962)
>  at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:171)
>  at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1171)
>  at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
>  at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:760)
>  at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1337)
>  at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:73)
>  at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
>  at com.sun.tools.javac.comp.Attr.attribStatToTree(Attr.java:420)
>  at com.sun.tools.javac.api.JavacTrees.attribStatToTree(JavacTrees.java:1013)
>  at com.sun.tools.javac.api.JavacTrees.getAttrContext(JavacTrees.java:972)
>  at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:831)
>  at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:170)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$6.run(ClipboardHandler.java:249)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$6.run(ClipboardHandler.java:243)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$7$1.run(ClipboardHandler.java:321)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$7$1.run(ClipboardHandler.java:316)
>  at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
>  at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
>  at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
>  at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
>  at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
>  at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
>  at 
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
>  at 
> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
>  at 
> org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451)
>  at 
> org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$7.run(ClipboardHandler.java:316)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278){code}



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


[jira] [Assigned] (NETBEANS-1057) NPE after removing -J-ea

2018-08-06 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1057:
---

Assignee: vikas kumar prabhakar

> NPE after removing -J-ea
> 
>
> Key: NETBEANS-1057
> URL: https://issues.apache.org/jira/browse/NETBEANS-1057
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 9.0
> Environment: 9.0 nightly - Self built july 17, Windows 10.
>Reporter: Stephan Kesper
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Got a NullPointerException in NBJavadocMemberEnter.visitVarDef(). I removed 
> the -J-ea Flag in netbeans.conf because I got Errors concerning Assertions 
> that anoyed me. Hoped setting the flag would remove the error message, but 
> instead resulted in NPE.
> Action: It happens after a while after starting the IDE, when an automatic 
> Code-Completion is triggered. 
> I'm using a self compiled version. Checked out on July 17 around 8 O'clock in 
> the morning. Built with Oracle JDK 8.0_144 on Windows 10 and ant version 
> 1.10.3
> I'm creating this issue because Netbeans asked me to do so :), if you already 
> know of this issue or think that this will be mitigated in future, feel free 
> to close it immediately. 
> Exception:
> {code:java}
> java.lang.NullPointerException
>  at 
> org.netbeans.lib.nbjavac.services.NBJavadocMemberEnter.visitVarDef(NBJavadocMemberEnter.java:97)
>  at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962)
>  at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:171)
>  at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1171)
>  at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
>  at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:760)
>  at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1337)
>  at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:73)
>  at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
>  at com.sun.tools.javac.comp.Attr.attribStatToTree(Attr.java:420)
>  at com.sun.tools.javac.api.JavacTrees.attribStatToTree(JavacTrees.java:1013)
>  at com.sun.tools.javac.api.JavacTrees.getAttrContext(JavacTrees.java:972)
>  at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:831)
>  at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:170)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$6.run(ClipboardHandler.java:249)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$6.run(ClipboardHandler.java:243)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$7$1.run(ClipboardHandler.java:321)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$7$1.run(ClipboardHandler.java:316)
>  at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
>  at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
>  at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
>  at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
>  at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
>  at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
>  at 
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
>  at 
> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
>  at 
> org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451)
>  at 
> org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422)
>  at 
> org.netbeans.modules.java.editor.imports.ClipboardHandler$7.run(ClipboardHandler.java:316)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278){code}



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

-
To unsubscribe, e-mail: 

[jira] [Created] (NETBEANS-1108) Replace the repetitive code for error check in Hint module

2018-08-02 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-1108:
---

 Summary: Replace the repetitive code for error check in Hint module
 Key: NETBEANS-1108
 URL: https://issues.apache.org/jira/browse/NETBEANS-1108
 Project: NetBeans
  Issue Type: Improvement
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Replace the repetitive code for error check in Hint with 
TreeUtilities.hasError() API method



--
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] [Assigned] (NETBEANS-1064) not detected

2018-07-26 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1064:
---

Assignee: vikas kumar prabhakar

>  not detected
> -
>
> Key: NETBEANS-1064
> URL: https://issues.apache.org/jira/browse/NETBEANS-1064
> Project: NetBeans
>  Issue Type: Bug
>  Components: cnd - Toolchain
>Affects Versions: 9.0
> Environment: NetBeans 9.0 RC1, WIN10, java 10.0.1., Firefox 61.0.1
>Reporter: Jörg Büchner
>Assignee: vikas kumar prabhakar
>Priority: Minor
>
> Being new to NetBeans I first clicked on [Take a Tour] and received the Error 
> message:
> "Could not access the URL through the external browser. Check the browser 
> configuration."
> First I would have appreciated a hint where this can be done 
> (Tools/Options/General) and
> second I wonder why my Firefox is not detected, although it is set as default 
> in the Windows settings under Apps/Standard Apps.
> However, when explicitly selecting Firefox in the Options dialog, everythings 
> works fine.



--
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] [Closed] (NETBEANS-1019) False positive of "Null Pointer Dereference" when passing a lambda with a null possible result to a non-null argument

2018-07-25 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-1019.
---

Changes merged in Github master branch PR: 
https://github.com/apache/incubator-netbeans/pull/635

> False positive of "Null Pointer Dereference" when passing a lambda with a 
> null possible result to a non-null argument
> -
>
> Key: NETBEANS-1019
> URL: https://issues.apache.org/jira/browse/NETBEANS-1019
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Hints
>Affects Versions: 9.0, Next
>Reporter: Austin Stephens
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Sample code:
> {code:java}
> private void func(@NonNull Function func){
> 
> }
> @CheckForNull
> private Object foo(){
> return null;
> }
> private void bar(){
> func(item->foo());//false positive
> }
> {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] [Commented] (NETBEANS-1051) Exception while typing, hot debbugging

2018-07-24 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-1051:
-

This is a duplicate of https://issues.apache.org/jira/browse/NETBEANS-715 and 
https://issues.apache.org/jira/browse/NETBEANS-1008

 

> Exception while typing, hot debbugging
> --
>
> Key: NETBEANS-1051
> URL: https://issues.apache.org/jira/browse/NETBEANS-1051
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: Next
>Reporter: Martin Meeser
>Priority: Minor
>
> Program asked me to report bug.
> ---
> >Log Session: Monday, July 16, 2018 at 8:13:25 PM Central European Summer Time
> >System Info: 
>  Product Version = Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-302-on-20180517)
>  Operating System = Windows 10 version 10.0 running on amd64
>  Java; VM; Vendor = 10.0.1; Java HotSpot(TM) 64-Bit Server VM 10.0.1+10; 
> Oracle Corporation
>  Runtime = Java(TM) SE Runtime Environment 10.0.1+10
>  Java Home = C:\Program Files\Java\jdk-10.0.1
>  System Locale; Encoding = en_US (nb); Cp1252
>  Home Directory = C:\Users\Martin
>  Current Directory = D:\Program Files (x86)\netbeans\bin
>  User Directory = C:\Users\Martin\AppData\Roaming\NetBeans\dev
>  Cache Directory = C:\Users\Martin\AppData\Local\NetBeans\Cache\dev
>  Installation = D:\Program Files (x86)\netbeans\nb
>  D:\Program Files (x86)\netbeans\ide
>  D:\Program Files (x86)\netbeans\extide
>  D:\Program Files (x86)\netbeans\java
>  D:\Program Files (x86)\netbeans\apisupport
>  D:\Program Files (x86)\netbeans\websvccommon
>  D:\Program Files (x86)\netbeans\profiler
>  D:\Program Files (x86)\netbeans\harness
>  D:\Program Files (x86)\netbeans\javafx
>  D:\Program Files (x86)\netbeans\platform
>  Boot & Ext. Classpath = 
>  Application Classpath = D:\Program Files 
> (x86)\netbeans\platform\lib\boot.jar;D:\Program Files 
> (x86)\netbeans\platform\lib\org-openide-modules.jar;D:\Program Files 
> (x86)\netbeans\platform\lib\org-openide-util-lookup.jar;D:\Program Files 
> (x86)\netbeans\platform\lib\org-openide-util-ui.jar;D:\Program Files 
> (x86)\netbeans\platform\lib\org-openide-util.jar
>  Startup Classpath = D:\Program Files 
> (x86)\netbeans\platform\core\asm-all-5.0.1.jar;D:\Program Files 
> (x86)\netbeans\platform\core\core-base.jar;D:\Program Files 
> (x86)\netbeans\platform\core\core.jar;D:\Program Files 
> (x86)\netbeans\platform\core\org-netbeans-libs-asm.jar;D:\Program Files 
> (x86)\netbeans\platform\core\org-openide-filesystems-compat8.jar;D:\Program 
> Files (x86)\netbeans\platform\core\org-openide-filesystems.jar;D:\Program 
> Files (x86)\netbeans\nb\core\org-netbeans-upgrader.jar;D:\Program Files 
> (x86)\netbeans\nb\core\locale\core_nb.jar
> ---
> INFO [org.netbeans.modules.netbinox]: Install area set to file:/D:/Program 
> Files (x86)/netbeans/
> WARNING [org.netbeans.core.modules]: the modules 
> [org.netbeans.modules.java.editor.lib, org.netbeans.modules.xml.text] use 
> org.netbeans.modules.editor.deprecated.pre65formatting which is deprecated.
> WARNING [org.netbeans.core.modules]: the modules 
> [org.netbeans.modules.ide.kit, org.netbeans.modules.xml.text] use 
> org.netbeans.modules.editor.structure which is deprecated.
> WARNING [org.netbeans.core.modules]: the modules 
> [org.netbeans.modules.apisupport.ant, org.netbeans.modules.java.hints, 
> org.netbeans.modules.jshell.support, org.netbeans.modules.maven.hints] use 
> org.netbeans.modules.java.hints.legacy.spi which is deprecated: Use Java 
> Hints SPI (org.netbeans.spi.java.hints) instead.
> INFO [com.revivius.nb.darcula.DarculaLFCustoms]: Can not find class, will not 
> be able to replace its field...
> java.lang.ClassNotFoundException: 
> org.netbeans.modules.web.core.syntax.completion.api.JspCompletionItem
>  at 
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
>  at 
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
>  at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:197)
> Caused: java.lang.ClassNotFoundException: 
> org.netbeans.modules.web.core.syntax.completion.api.JspCompletionItem 
> starting from SystemClassLoader[529 modules] with possible defining loaders 
> null and declared parents [org.netbeans.MainImpl$BootClassLoader@4ad7a76, 
> ModuleCL@71fc2957[org.netbeans.api.annotations.common], 
> ModuleCL@51661849[org.openide.awt], 
> ModuleCL@5139ceef[org.netbeans.api.progress], 
> ModuleCL@1a3710b0[org.netbeans.api.progress.nb], 
> 

[jira] [Assigned] (NETBEANS-1008) ClassCastException while editing java 8 files

2018-07-14 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1008:
---

Assignee: vikas kumar prabhakar  (was: ARUNAVA SINHA)

> ClassCastException while editing java 8 files
> -
>
> Key: NETBEANS-1008
> URL: https://issues.apache.org/jira/browse/NETBEANS-1008
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 9.0
>Reporter: Tobias Warneke
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Caused: java.lang.ClassCastException: 
> com.sun.tools.javac.tree.JCTree$JCLambda cannot be cast to 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation
>  at 
> com.sun.tools.javac.comp.ArgumentAttr$ResolvedMethodType.dup(ArgumentAttr.java:607)
>  at com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:240)
>  at com.sun.tools.javac.comp.ArgumentAttr.visitLambda(ArgumentAttr.java:293)
>  at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1813)
>  at com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:197)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:658)
>  at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:769)
>  at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2049)
>  at 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2726)
>  at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1813)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:371)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:332)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:318)
>  at com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:1048)
>  at com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:875)
>  at 
> com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAcceptable(Resolve.java:783)
>  at com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:884)
>  at com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:626)
>  at com.sun.tools.javac.comp.Resolve.checkMethod(Resolve.java:652)
>  at com.sun.tools.javac.comp.Attr.checkMethod(Attr.java:4401)
>  at com.sun.tools.javac.comp.Attr.checkIdInternal(Attr.java:4189)
>  at com.sun.tools.javac.comp.Attr.checkMethodIdInternal(Attr.java:4088)
>  at com.sun.tools.javac.comp.Attr.checkMethodId(Attr.java:4067)
>  at com.sun.tools.javac.comp.Attr.checkId(Attr.java:4054)
>  at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3939)
>  at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2116)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2066)
>  at 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:713)
>  at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1825)
>  at 
> com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1458)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
>  at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:760)
>  at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1337)
>  at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:69)
>  at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
>  at 
> org.netbeans.modules.java.source.nbjavac.parsing.PartialReparserService.reattrMethodBody(PartialReparserService.java:180)
> [catch] at 
> org.netbeans.modules.java.source.nbjavac.parsing.PartialReparserImpl.reparseMethod(PartialReparserImpl.java:164)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.parseImpl(JavacParser.java:397)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.parse(JavacParser.java:330)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:598)
>  at 
> org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:228)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
>  at 
> 

[jira] [Assigned] (NETBEANS-715) Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source

2018-07-14 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-715:
--

Assignee: vikas kumar prabhakar  (was: ARUNAVA SINHA)

> Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source
> --
>
> Key: NETBEANS-715
> URL: https://issues.apache.org/jira/browse/NETBEANS-715
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Hints  Annotations
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-205-on-20180202)
> 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\FourAbs
> Cache directory: Z:\tmp\.other\cache\netbeans\FourAbs-09
> Plugins:
>   * Netbeans Gradle plugin v1.4.3
>Reporter: will mason
>Assignee: vikas kumar prabhakar
>Priority: Major
>  Labels: ClassCastException, GUI, Regression, annotations, 
> editor, hints
> Attachments: ClassCastException.logs, JPanelIbaDetails.dump, 
> messages.log
>
>
> h2. context
> *  Gradle project open
> * Panel class open in editor
> * Java debugger running
> * Adding a correction to set value for a JCheckBox field.
> h2. expected / desirable
> * Finish adding source code change
> * Move to next GUI error in debugger and consider how that should work in 
> source
> h2. actual
> *  Annotation exception
> **   stacktrace 
> {code:java}
> An error occurred during parsing of 
> 'D:\work\products\FourAbs\FourAbsClientLibrary\src\main\java\au\com\fourtel\fourabs\client\ibas\JPanelIbaDetails.java'.
>  Please report a bug against java/source and attach dump file 
> 'Z:\tmp\.other\user\netbeans\v09.00-beta\FourAbs\var\log\JPanelIbaDetails.dump'.
> Caused: java.lang.ClassCastException: 
> com.sun.tools.javac.tree.JCTree$JCConditional cannot be cast to 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation
>   at 
> com.sun.tools.javac.comp.ArgumentAttr$ResolvedMethodType.dup(ArgumentAttr.java:607)
>   at 
> com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:240)
>   ...
> {code}
> h2.  Impact
> * Interrupts work 
> * Not sure if editing is stable 
> h2.  supporting information
> *  JPanelIbaDetails.dump
> * messages.log
> *  AssertionError.logs - 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] [Commented] (NETBEANS-807) New Error Rule required for fixing invalid lambda expression parameters in JDK-11

2018-07-12 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-807:


As discussed , in above error scenario the suggestion hint should discard.

> New Error Rule required for fixing invalid lambda expression parameters in 
> JDK-11
> -
>
> Key: NETBEANS-807
> URL: https://issues.apache.org/jira/browse/NETBEANS-807
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Reema Taneja
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: JDK11-VarInLambda
>
> IntBinaryOperator f3 = (int x, var y) -> x + y;
> Displays below error
>   (cannot mix 'var' and explicitly-typed parameters)
> Proposed Error Rule would do the below fix
> IntBinaryOperator f3 = (var x, var y) -> x + y;
>  



--
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] [Assigned] (NETBEANS-1019) False positive of "Null Pointer Dereference" when passing a lambda with a null possible result to a non-null argument

2018-07-06 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar reassigned NETBEANS-1019:
---

Assignee: vikas kumar prabhakar

> False positive of "Null Pointer Dereference" when passing a lambda with a 
> null possible result to a non-null argument
> -
>
> Key: NETBEANS-1019
> URL: https://issues.apache.org/jira/browse/NETBEANS-1019
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Hints
>Affects Versions: 9.0, Next
>Reporter: Austin Stephens
>Assignee: vikas kumar prabhakar
>Priority: Major
>
> Sample code:
> {code:java}
> private void func(@NonNull Function func){
> 
> }
> @CheckForNull
> private Object foo(){
> return null;
> }
> private void bar(){
> func(item->foo());//false positive
> }
> {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] [Issue Comment Deleted] (NETBEANS-920) crash on startup when setting jdk 10 in /etc/netbeans.conf

2018-06-21 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar updated NETBEANS-920:
---
Comment: was deleted

(was: Start NetBeans in JDK 10 using below command:

ant tryme -Dtryme.jdkhome=

 )

> crash on startup when setting jdk 10 in /etc/netbeans.conf
> --
>
> Key: NETBEANS-920
> URL: https://issues.apache.org/jira/browse/NETBEANS-920
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Welcome
>Affects Versions: 9.0
> Environment: windows 10 64b
>Reporter: jose luis romero
>Priority: Major
>
> NetBeans rc1  didn't set Java 10 as default, it took Java 8 so I added as 
> Java Platform using the IDE and then setted in netbeans.conf 
> netbeans_jdkhome="C:\Program Files\Java\jdk-10"
>  



--
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] [Commented] (NETBEANS-917) NPE Search Usages Exception

2018-06-20 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-917:


We are not able to reproduce. Can you provide the sample project and specific 
steps to reproduce the issue?

> NPE Search Usages Exception
> ---
>
> Key: NETBEANS-917
> URL: https://issues.apache.org/jira/browse/NETBEANS-917
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 9.0
>Reporter: Mariano Marcolongo
>Priority: Major
>
> java.lang.NullPointerException
>     at 
> org.netbeans.api.java.source.ElementHandle.resolve(ElementHandle.java:118)
>     at 
> org.netbeans.api.java.source.TreePathHandle$TreeDelegate.resolveElement(TreePathHandle.java:530)
>     at 
> org.netbeans.api.java.source.TreePathHandle.resolveElement(TreePathHandle.java:162)
>     at 
> org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$FindTask.run(JavaWhereUsedQueryPlugin.java:574)
>     at 
> org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$FindTask.run(JavaWhereUsedQueryPlugin.java:548)
>     at 
> org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
>     at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
>     at 
> org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:166)
>     at 
> org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:138)
>     at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
>     at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
>     at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
>     at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
>     at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
>     at 
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
>     at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
>     at 
> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:83)
>     at 
> org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451)
>     at 
> org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422)
>     at 
> org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:319)
>     at 
> org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:263)
>     at 
> org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.queryFiles(JavaRefactoringPlugin.java:253)
>     at 
> org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin.prepare(JavaWhereUsedQueryPlugin.java:362)
> [catch] at 
> org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:417)
>     at 
> org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:401)
>     at 
> org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:212)
>     at 
> org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare$2.run(ParametersPanel.java:1059)
>     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>     at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>     at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>     at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)



--
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-920) crash on startup when setting jdk 10 in /etc/netbeans.conf

2018-06-20 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar edited comment on NETBEANS-920 at 6/21/18 5:32 AM:
-

Start NetBeans in JDK 10 using below command:

ant tryme -Dtryme.jdkhome=

 


was (Author: vikas.prabhakar):
Steps to run the project in JDK10
 # First build the project in JDK8
 # Run the project using JDK10 ex: ant tryme -Dtryme.jdkhome=

> crash on startup when setting jdk 10 in /etc/netbeans.conf
> --
>
> Key: NETBEANS-920
> URL: https://issues.apache.org/jira/browse/NETBEANS-920
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Welcome
>Affects Versions: 9.0
> Environment: windows 10 64b
>Reporter: jose luis romero
>Priority: Major
>
> NetBeans rc1  didn't set Java 10 as default, it took Java 8 so I added as 
> Java Platform using the IDE and then setted in netbeans.conf 
> netbeans_jdkhome="C:\Program Files\Java\jdk-10"
>  



--
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] [Commented] (NETBEANS-920) crash on startup when setting jdk 10 in /etc/netbeans.conf

2018-06-20 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar commented on NETBEANS-920:


Steps to run the project in JDK10
 # First build the project in JDK8
 # Run the project using JDK10 ex: ant tryme -Dtryme.jdkhome=

> crash on startup when setting jdk 10 in /etc/netbeans.conf
> --
>
> Key: NETBEANS-920
> URL: https://issues.apache.org/jira/browse/NETBEANS-920
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Welcome
>Affects Versions: 9.0
> Environment: windows 10 64b
>Reporter: jose luis romero
>Priority: Major
>
> NetBeans rc1  didn't set Java 10 as default, it took Java 8 so I added as 
> Java Platform using the IDE and then setted in netbeans.conf 
> netbeans_jdkhome="C:\Program Files\Java\jdk-10"
>  



--
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] [Closed] (NETBEANS-778) Formatting issue with var declaration statement

2018-06-19 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar closed NETBEANS-778.
--

Issue is fixed and merged into GitHub master and relese09 branch

> Formatting issue with var declaration statement
> ---
>
> Key: NETBEANS-778
> URL: https://issues.apache.org/jira/browse/NETBEANS-778
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK10-LVTI
> Attachments: Java_Format_issue.txt
>
>
> Issue details:
> Before Formatting:
> {                 final               int      i      =      0;               
>  
>                   final               var     v     =      0;
> }
>  
> After Formatting (ALT+SHIFT+F):
> {      final int i = 0;      final            var       v      =     0; }



--
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-778) Formatting issue with var declaration statement

2018-06-19 Thread vikas kumar prabhakar (JIRA)


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

vikas kumar prabhakar resolved NETBEANS-778.

Resolution: Fixed

Issue is fixed and merged into GitHub master and relese09 branch

> Formatting issue with var declaration statement
> ---
>
> Key: NETBEANS-778
> URL: https://issues.apache.org/jira/browse/NETBEANS-778
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK10-LVTI
> Attachments: Java_Format_issue.txt
>
>
> Issue details:
> Before Formatting:
> {                 final               int      i      =      0;               
>  
>                   final               var     v     =      0;
> }
>  
> After Formatting (ALT+SHIFT+F):
> {      final int i = 0;      final            var       v      =     0; }



--
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] [Assigned] (NETBEANS-860) Proposed new hint "Convert Lambda to Use 'var' Parameter Types" for Lambda expression

2018-05-28 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar reassigned NETBEANS-860:
--

Assignee: vikas kumar prabhakar  (was: ARUNAVA SINHA)

> Proposed new hint "Convert Lambda to Use 'var' Parameter Types"  for Lambda 
> expression
> --
>
> Key: NETBEANS-860
> URL: https://issues.apache.org/jira/browse/NETBEANS-860
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK11-VarInLambda
>
> Hint "Convert Lambda to Use 'var' Parameter Types" should be enable for below 
> expression. 
> IntBinaryOperator cal c=  (int x, int y) -> x + y;
>  
> Proposed fix : 
> IntBinaryOperator calc = (var x, var y) -> x + y;



--
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-497) New Fix hint for var compound declaration

2018-05-13 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar updated NETBEANS-497:
---
Fix Version/s: Next

> New Fix hint for var compound declaration
> -
>
> Key: NETBEANS-497
> URL: https://issues.apache.org/jira/browse/NETBEANS-497
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Reema Taneja
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK10-LVTI, pull-request-available
> Fix For: Next
>
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> We should provide fix hint to convert invalid var syntax
> var a = 2, b = 3.0;
> to
> var a = 2;
> var b = 3.0;



--
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-759) Fix Hints of "Split into declaration and assignment" not giving correct fix for compound declaration in switch-case block.

2018-05-13 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar resolved NETBEANS-759.

   Resolution: Fixed
Fix Version/s: Next

Changes are merged into incubator master branch

https://github.com/apache/incubator-netbeans/pull/521

> Fix Hints of "Split into declaration and assignment" not giving correct fix 
> for compound declaration in switch-case block.
> --
>
> Key: NETBEANS-759
> URL: https://issues.apache.org/jira/browse/NETBEANS-759
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK10-LVTI, compound-declaration, switch-statement
> Fix For: Next
>
>
> Case 1: Before Fix
>  switch ( i )
> { case 1: final int i = 10, k = 10; }
> After Fix
>  switch ( i )
> { case 1: final int i, --> Errors i = 10; k = 10; }
> Case 2:
>  Before Fix
>  switch ( i )
> { case 1: final var v1 = 9, v2 = 10; }
> After Fix
>  switch ( i )
> { case 1: final var v1 = 9,    > Errors var v2 = 10; }



--
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-497) New Fix hint for var compound declaration

2018-05-13 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar resolved NETBEANS-497.

Resolution: Fixed

Changes are merged to apache master branch.

Pull request: https://github.com/apache/incubator-netbeans/pull/521

> New Fix hint for var compound declaration
> -
>
> Key: NETBEANS-497
> URL: https://issues.apache.org/jira/browse/NETBEANS-497
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Reema Taneja
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK10-LVTI, pull-request-available
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> We should provide fix hint to convert invalid var syntax
> var a = 2, b = 3.0;
> to
> var a = 2;
> var b = 3.0;



--
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-778) Formatting issue with var declaration statement

2018-05-10 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar updated NETBEANS-778:
---
Attachment: Java_Format_issue.txt

> Formatting issue with var declaration statement
> ---
>
> Key: NETBEANS-778
> URL: https://issues.apache.org/jira/browse/NETBEANS-778
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK10-LVTI
> Attachments: Java_Format_issue.txt
>
>
> Issue details:
> Before Formatting:
> {                 final               int      i      =      0;               
>  
>                   final               var     v     =      0;
> }
>  
> After Formatting (ALT+SHIFT+F):
> {      final int i = 0;      final            var       v      =     0; }



--
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-778) Formatting issue with var declaration statement

2018-05-10 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar updated NETBEANS-778:
---
Description: 
Issue details:

Before Formatting:

{                 final               int      i      =      0;                

                  final               var     v     =      0;

}

 

After Formatting (ALT+SHIFT+F):

{      final int i = 0;      final            var       v      =     0; }

  was:
Issue details:

Before Formatting:

{
                final               int      i      =      0;
                final               var     v     =      0;
 }

 

After Formatting (ALT+SHIFT+F):

{
     final int i = 0;
     final            var       v      =     0;
 }


> Formatting issue with var declaration statement
> ---
>
> Key: NETBEANS-778
> URL: https://issues.apache.org/jira/browse/NETBEANS-778
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK10-LVTI
>
> Issue details:
> Before Formatting:
> {                 final               int      i      =      0;               
>  
>                   final               var     v     =      0;
> }
>  
> After Formatting (ALT+SHIFT+F):
> {      final int i = 0;      final            var       v      =     0; }



--
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-778) Formatting issue with var declaration statement

2018-05-10 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-778:
--

 Summary: Formatting issue with var declaration statement
 Key: NETBEANS-778
 URL: https://issues.apache.org/jira/browse/NETBEANS-778
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Issue details:

Before Formatting:

{
                final               int      i      =      0;
                final               var     v     =      0;
 }

 

After Formatting (ALT+SHIFT+F):

{
     final int i = 0;
     final            var       v      =     0;
 }



--
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-777) NPE on trying to put comment in '^ position /*comment1*/final/*comment*/var/*^

2018-05-09 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-777:
--

 Summary: NPE on trying to put comment in '^ position 
/*comment1*/final/*comment*/var/*^
 Key: NETBEANS-777
 URL: https://issues.apache.org/jira/browse/NETBEANS-777
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


/*comment1*/final/*comment*/var/*^ NPE on trying to put comment in '^ position

 

Exception Logs:

java.lang.NullPointerException
at org.netbeans.lib.java.lexer.JavaLexer.nextToken(JavaLexer.java:1055)
at 
org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
at org.netbeans.lib.lexer.inc.TokenListUpdater.relex(TokenListUpdater.java:602)
at 
org.netbeans.lib.lexer.inc.TokenListUpdater.updateRegular(TokenListUpdater.java:255)
at 
org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:325)
at 
org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:200)
at 
org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.updateImpl(TokenHierarchyUpdate.java:171)
at 
org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.update(TokenHierarchyUpdate.java:109)
at 
org.netbeans.lib.lexer.TokenHierarchyOperation.textModified(TokenHierarchyOperation.java:585)
at 
org.netbeans.spi.lexer.TokenHierarchyControl.textModified(TokenHierarchyControl.java:71)
at org.netbeans.lib.lexer.inc.DocumentInput.textModified(DocumentInput.java:128)
at org.netbeans.lib.lexer.inc.DocumentInput.removeUpdate(DocumentInput.java:121)
at 
org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:91)
at 
java.desktop/javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:261)
at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1650)
at org.netbeans.editor.BaseDocument.handleRemove(BaseDocument.java:1022)
at 
org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(BaseDocument.java:2639)
at java.desktop/javax.swing.text.DocumentFilter.remove(DocumentFilter.java:79)
at 
org.openide.text.CloneableEditorSupport$DocFilter.remove(CloneableEditorSupport.java:2364)
at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:935)
at org.netbeans.editor.BaseKit$DeleteCharAction$3.run(BaseKit.java:2159)
at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:333)
at 
org.netbeans.editor.BaseKit$DeleteCharAction.actionPerformed(BaseKit.java:2151)
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322)
at 
java.desktop/javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1810)
at java.desktop/javax.swing.JComponent.processKeyBinding(JComponent.java:2900)
at java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:2948)
at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2862)
at java.desktop/java.awt.Component.processEvent(Component.java:6366)
at java.desktop/java.awt.Container.processEvent(Container.java:2261)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
at 
java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
at 
java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:871)
at 
java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1140)
at 
java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1010)
at 
java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:836)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4847)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at 

[jira] [Updated] (NETBEANS-759) Fix Hints of "Split into declaration and assignment" not giving correct fix for compound declaration in switch-case block.

2018-05-02 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar updated NETBEANS-759:
---
Description: 
Case 1: Before Fix
 switch ( i )

{ case 1: final int i = 10, k = 10; }

After Fix
 switch ( i )

{ case 1: final int i, --> Errors i = 10; k = 10; }

Case 2:
 Before Fix
 switch ( i )

{ case 1: final var v1 = 9, v2 = 10; }

After Fix
 switch ( i )

{ case 1: final var v1 = 9,    > Errors var v2 = 10; }

  was:
Case 1: Before Fix
switch(i){
 case 1: 
 final int i = 10, k = 10; 
 }
After Fix
switch(i){
 case 1: 
 final int i, --> Errors
 i = 10;
k = 10; 
 }

Case 2:
Before Fix
switch(i){
 case 1: 
 final var v1 = 9, v2 = 10;
 }
After Fix
switch(i){
 case 1: 
 final var v1 = 9,    > Errors
 var v2 = 10;
 }


> Fix Hints of "Split into declaration and assignment" not giving correct fix 
> for compound declaration in switch-case block.
> --
>
> Key: NETBEANS-759
> URL: https://issues.apache.org/jira/browse/NETBEANS-759
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK10-LVTI, compound-declaration, switch-statement
>
> Case 1: Before Fix
>  switch ( i )
> { case 1: final int i = 10, k = 10; }
> After Fix
>  switch ( i )
> { case 1: final int i, --> Errors i = 10; k = 10; }
> Case 2:
>  Before Fix
>  switch ( i )
> { case 1: final var v1 = 9, v2 = 10; }
> After Fix
>  switch ( i )
> { case 1: final var v1 = 9,    > Errors var v2 = 10; }



--
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-759) Fix Hints of "Split into declaration and assignment" not giving correct fix for compound declaration in switch-case block.

2018-05-02 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-759:
--

 Summary: Fix Hints of "Split into declaration and assignment" not 
giving correct fix for compound declaration in switch-case block.
 Key: NETBEANS-759
 URL: https://issues.apache.org/jira/browse/NETBEANS-759
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Case 1: Before Fix
switch(i){
 case 1: 
 final int i = 10, k = 10; 
 }
After Fix
switch(i){
 case 1: 
 final int i, --> Errors
 i = 10;
k = 10; 
 }

Case 2:
Before Fix
switch(i){
 case 1: 
 final var v1 = 9, v2 = 10;
 }
After Fix
switch(i){
 case 1: 
 final var v1 = 9,    > Errors
 var v2 = 10;
 }



--
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] [Assigned] (NETBEANS-497) New Fix hint for var compound declaration

2018-03-28 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar reassigned NETBEANS-497:
--

Assignee: vikas kumar prabhakar  (was: Reema Taneja)

> New Fix hint for var compound declaration
> -
>
> Key: NETBEANS-497
> URL: https://issues.apache.org/jira/browse/NETBEANS-497
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Reema Taneja
>Assignee: vikas kumar prabhakar
>Priority: Minor
>  Labels: JDK10-LVTI
>
> We should provide fix hint to convert invalid var syntax
> var a = 2, b = 3.0;
> to
> var a = 2;
> var b = 3.0;



--
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-465) Hint "Split into declaration and assignment" is not valid for var type.

2018-03-28 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar resolved NETBEANS-465.

   Resolution: Fixed
Fix Version/s: Next

The hints "Split into declaration and assignment" is discarded for var type 
variables.

Code change details : https://github.com/apache/incubator-netbeans/pull/453

 

> Hint "Split into declaration and assignment" is not valid for var type.
> ---
>
> Key: NETBEANS-465
> URL: https://issues.apache.org/jira/browse/NETBEANS-465
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Trivial
>  Labels: JDK10-LVTI
> Fix For: Next
>
>
> Warning hint "Split into declaration and assignment" is not valid for var 
> type.
> var v = 10;
> Only declaration the var type variable causes the errors:
> var v; -> cannot infer type for local variable v
>    (cannot use 'var' on variable without initializer)
> The hints "Split into declaration and assignment" should not show for var 
> type declaration and assignments.



--
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] [Closed] (NETBEANS-477) Hints " 'var' is not allowed here" shows two times.

2018-03-22 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar closed NETBEANS-477.
--
Resolution: Not A Problem

It is a valid behavior. If there are multiple "var" keywords in a  single line, 
then it shows multiple hints.

> Hints " 'var' is not allowed here" shows two times. 
> 
>
> Key: NETBEANS-477
> URL: https://issues.apache.org/jira/browse/NETBEANS-477
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Trivial
>  Labels: JDK10-LVTI
>
> Sometimes h{color:#33}ints " 'var' is not allowed here" shows two times. 
> {color}
> {color:#33}It is random behavior.{color}
> {color:#33}Ex: 1. Object o2 = (var)o;{color}
> {color:#33}2. try {
>  Function f = (var x2) -> ""; 
>  } *catch (var ex) \{ }*{color}
>  



--
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-477) Hints " 'var' is not allowed here" shows two times.

2018-03-15 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar updated NETBEANS-477:
---
Labels: JDK10-LVTI  (was: )

> Hints " 'var' is not allowed here" shows two times. 
> 
>
> Key: NETBEANS-477
> URL: https://issues.apache.org/jira/browse/NETBEANS-477
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Trivial
>  Labels: JDK10-LVTI
>
> Sometimes h{color:#33}ints " 'var' is not allowed here" shows two times. 
> {color}
> {color:#33}It is random behavior.{color}
> {color:#33}Ex: 1. Object o2 = (var)o;{color}
> {color:#33}2. try {
>  Function f = (var x2) -> ""; 
>  } *catch (var ex) \{ }*{color}
>  



--
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-477) Hints " 'var' is not allowed here" shows two times.

2018-03-15 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-477:
--

 Summary: Hints " 'var' is not allowed here" shows two times. 
 Key: NETBEANS-477
 URL: https://issues.apache.org/jira/browse/NETBEANS-477
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Sometimes h{color:#33}ints " 'var' is not allowed here" shows two times. 
{color}

{color:#33}It is random behavior.{color}

{color:#33}Ex: 1. Object o2 = (var)o;{color}

{color:#33}2. try {
 Function f = (var x2) -> ""; 
 } *catch (var ex) \{ }*{color}

 



--
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-465) Hint "Split into declaration and assignment" is not valid for var type.

2018-03-14 Thread vikas kumar prabhakar (JIRA)

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

vikas kumar prabhakar updated NETBEANS-465:
---
Description: 
Warning hint "Split into declaration and assignment" is not valid for var type.

var v = 10;

Only declaration the var type variable causes the errors:

var v; -> cannot infer type for local variable v
   (cannot use 'var' on variable without initializer)

The hints "Split into declaration and assignment" should not show for var type 
declaration and assignments.

  was:
Warning hint "Split into declaration and assignment" is not valid for var type.

var v = 10;

Only declaration the var type variable causes the errors:

var v; -> cannot infer type for local variable v
  (cannot use 'var' on variable without initializer)

The hints "Split into declaration and assignment" should not show for vat type 
declaration and assignments.


> Hint "Split into declaration and assignment" is not valid for var type.
> ---
>
> Key: NETBEANS-465
> URL: https://issues.apache.org/jira/browse/NETBEANS-465
> Project: NetBeans
>  Issue Type: Bug
>Reporter: vikas kumar prabhakar
>Assignee: vikas kumar prabhakar
>Priority: Trivial
>  Labels: JDK10-LVTI
>
> Warning hint "Split into declaration and assignment" is not valid for var 
> type.
> var v = 10;
> Only declaration the var type variable causes the errors:
> var v; -> cannot infer type for local variable v
>    (cannot use 'var' on variable without initializer)
> The hints "Split into declaration and assignment" should not show for var 
> type declaration and assignments.



--
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-465) Hint "Split into declaration and assignment" is not valid for var type.

2018-03-14 Thread vikas kumar prabhakar (JIRA)
vikas kumar prabhakar created NETBEANS-465:
--

 Summary: Hint "Split into declaration and assignment" is not valid 
for var type.
 Key: NETBEANS-465
 URL: https://issues.apache.org/jira/browse/NETBEANS-465
 Project: NetBeans
  Issue Type: Bug
Reporter: vikas kumar prabhakar
Assignee: vikas kumar prabhakar


Warning hint "Split into declaration and assignment" is not valid for var type.

var v = 10;

Only declaration the var type variable causes the errors:

var v; -> cannot infer type for local variable v
  (cannot use 'var' on variable without initializer)

The hints "Split into declaration and assignment" should not show for vat type 
declaration and assignments.



--
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