[jira] [Created] (NETBEANS-1222) Netbeans 8.2 - Typing lag and delays while writing code

2018-09-06 Thread Mohamed Hussaein (JIRA)
Mohamed Hussaein created NETBEANS-1222:
--

 Summary: Netbeans 8.2 - Typing lag and delays while writing code
 Key: NETBEANS-1222
 URL: https://issues.apache.org/jira/browse/NETBEANS-1222
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 8.2
 Environment: Java
Reporter: Mohamed Hussaein
 Fix For: 8.2


I am experiencing terrible typing lag issues when i am developing java project. 
Every 15 or 20 seconds, the IDE just pauses and does something (as in, 
"thinking"?) for a solid 4 or 5 seconds, and then continues with whatever 
activity I was doing.

If I start typing a line of code, I may get half of the line typed and then the 
editor will freeze, and I can continue typing but nothing appears on the 
screen. Then after 4 or 5 seconds, all of the characters I typed will appear 
almost instantly, but of course, since I can't see what I'm typing, I wind up 
with typos and have to backtrack. I can't write three short lines of code 
without this happening.

I have tried: 
- uninstalling and reinstalling

Here is my Machine Specs: Operating System : Windows 10 Processor : Intel(R) 
Core(TM) i7-6650U CPU @ 2.20GHz 2.21 GHz Installed RAM: 16 GB System type : 
64-bit operating System,X64-based processor



--
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-1223) Netbeans 8.2 - Typing lag and delays while writing code

2018-09-06 Thread Mohamed Hussaein (JIRA)
Mohamed Hussaein created NETBEANS-1223:
--

 Summary: Netbeans 8.2 - Typing lag and delays while writing code
 Key: NETBEANS-1223
 URL: https://issues.apache.org/jira/browse/NETBEANS-1223
 Project: NetBeans
  Issue Type: Bug
  Components: java - Editor
Affects Versions: 8.2
 Environment: Operating System : Windows 10 
Processor : Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz 2.21 GHz Installed RAM: 16 
GB System type : 64-bit operating System,X64-based processor
Reporter: Mohamed Hussaein
 Fix For: 8.2


I am experiencing terrible typing lag issues (as in, basically unusable). Every 
15 or 20 seconds, the IDE just pauses and does something (as in, "thinking"?) 
for a solid 4 or 5 seconds, and then continues with whatever activity I was 
doing.

If I start typing a line of code, I may get half of the line typed and then the 
editor will freeze, and I can continue typing but nothing appears on the 
screen. Then after 4 or 5 seconds, all of the characters I typed will appear 
almost instantly, but of course, since I can't see what I'm typing, I wind up 
with typos and have to backtrack. I can't write three short lines of code 
without this happening.

I have tried: 
- uninstalling and reinstalling





--
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-1223) Netbeans 8.2 - Typing lag and delays while writing code

2018-09-06 Thread Geertjan Wielenga (JIRA)


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

Geertjan Wielenga commented on NETBEANS-1223:
-

Upgrade to the latest release, for a start:

https://netbeans.apache.org/download/index.html

Also read: https://blogs.apache.org/netbeans/entry/what-s-happened-to-my

> Netbeans 8.2 - Typing lag and delays while writing code
> ---
>
> Key: NETBEANS-1223
> URL: https://issues.apache.org/jira/browse/NETBEANS-1223
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 8.2
> Environment: Operating System : Windows 10 
> Processor : Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz 2.21 GHz Installed RAM: 
> 16 GB System type : 64-bit operating System,X64-based processor
>Reporter: Mohamed Hussaein
>Priority: Major
>  Labels: windows
> Fix For: 8.2
>
>
> I am experiencing terrible typing lag issues (as in, basically unusable). 
> Every 15 or 20 seconds, the IDE just pauses and does something (as in, 
> "thinking"?) for a solid 4 or 5 seconds, and then continues with whatever 
> activity I was doing.
> If I start typing a line of code, I may get half of the line typed and then 
> the editor will freeze, and I can continue typing but nothing appears on the 
> screen. Then after 4 or 5 seconds, all of the characters I typed will appear 
> almost instantly, but of course, since I can't see what I'm typing, I wind up 
> with typos and have to backtrack. I can't write three short lines of code 
> without this happening.
> I have tried: 
> - uninstalling and reinstalling



--
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-1224) Code completion for lambda parameter throwing exception

2018-09-06 Thread ARUNAVA SINHA (JIRA)
ARUNAVA SINHA created NETBEANS-1224:
---

 Summary: Code completion for lambda parameter throwing exception
 Key: NETBEANS-1224
 URL: https://issues.apache.org/jira/browse/NETBEANS-1224
 Project: NetBeans
  Issue Type: Bug
Reporter: ARUNAVA SINHA


If we have a functional interface as method argument and we want to implement 
using lambda expression , then on trying to do code completion for lambda param 
exception will occur.

The issue is reproducible with or without nb-javac(for jdk-11)

Please find below sample code.

public class JavaApplication1 {
 public static void main(String[] args) {

JavaApplication1 obj = new JavaApplication1();
 obj.test((var a,^ ));
 }
 private void test(FuncInterface f) {
 }
 interface FuncInterface {
 public void test(String s, int p, long v);
 }
}

On doing ctl+space at  '^' throwing below exception

java.lang.NullPointerException
 at com.sun.tools.javac.code.Types.subst(Types.java:3276)
 at 
com.sun.tools.javac.comp.InferenceContext.asUndetVar(InferenceContext.java:207)
 at 
com.sun.tools.javac.comp.InferenceContext.asUndetVars(InferenceContext.java:213)
 at com.sun.tools.javac.comp.Attr.checkLambdaCompatible(Attr.java:3018)
 at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2750)
 at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1813)
 at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
 at 
com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:505)
 at 
com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:486)
 at com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:374)
 at 
com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:340)
 at 
com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:326)
 at 
com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.recover(DeferredAttr.java:1095)
 at 
com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.typeOf(DeferredAttr.java:1062)
 at 
com.sun.tools.javac.comp.Resolve$ResolveDeferredRecoveryMap.typeOf(Resolve.java:2568)
 at 
com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:1027)
 at 
com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.visitType(DeferredAttr.java:1050)
 at 
com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:1013)
 at com.sun.tools.javac.code.Type.accept(Type.java:214)
 at com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:4965)
 at com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4976)
 at com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4974)
 at com.sun.tools.javac.util.List.map(List.java:425)
 at com.sun.tools.javac.comp.Resolve$8.getArgumentTypes(Resolve.java:2556)
 at com.sun.tools.javac.comp.Resolve.accessInternal(Resolve.java:2477)
 at com.sun.tools.javac.comp.Resolve.accessMethod(Resolve.java:2497)
 at com.sun.tools.javac.comp.Resolve$BasicLookupHelper.access(Resolve.java:3311)
 at com.sun.tools.javac.comp.Resolve$10.access(Resolve.java:2665)
 at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3552)
 at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2655)
 at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2649)
 at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3960)
 at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3840)
 at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2116)
 at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
 at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2068)
 at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640)
 at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
 at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:715)
 at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1827)
 at 
com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1458)
 at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
 at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:738)
 at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:762)
 at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1339)
 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:662)
 at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:738)
 at com.sun.tools.javac.comp.Attr.attribStatToTree(Attr.java:422)
 at com.sun.tools.javac.api.JavacTrees.attribStatToTree(JavacTrees.java:1017)
 at com.sun.tools.javac.api.JavacTrees.getAttrContext(JavacTrees.java:976)
 at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:835)
 at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:172)
 at org.netbeans.modules.java.completion.BaseTask.getEnvImpl(BaseTask.java:317)
 at 
org.netbeans.

[jira] [Updated] (NETBEANS-1224) Code completion for lambda parameter throwing exception

2018-09-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-1224:

Component/s: cnd - Code Completion

> Code completion for lambda parameter throwing exception
> ---
>
> Key: NETBEANS-1224
> URL: https://issues.apache.org/jira/browse/NETBEANS-1224
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Reporter: ARUNAVA SINHA
>Priority: Major
>
> If we have a functional interface as method argument and we want to implement 
> using lambda expression , then on trying to do code completion for lambda 
> param exception will occur.
> The issue is reproducible with or without nb-javac(for jdk-11)
> Please find below sample code.
> public class JavaApplication1 {
>  public static void main(String[] args) {
> JavaApplication1 obj = new JavaApplication1();
>  obj.test((var a,^ ));
>  }
>  private void test(FuncInterface f) {
>  }
>  interface FuncInterface {
>  public void test(String s, int p, long v);
>  }
> }
> On doing ctl+space at  '^' throwing below exception
> java.lang.NullPointerException
>  at com.sun.tools.javac.code.Types.subst(Types.java:3276)
>  at 
> com.sun.tools.javac.comp.InferenceContext.asUndetVar(InferenceContext.java:207)
>  at 
> com.sun.tools.javac.comp.InferenceContext.asUndetVars(InferenceContext.java:213)
>  at com.sun.tools.javac.comp.Attr.checkLambdaCompatible(Attr.java:3018)
>  at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2750)
>  at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1813)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
>  at 
> com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:505)
>  at 
> com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:486)
>  at com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:374)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:340)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:326)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.recover(DeferredAttr.java:1095)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.typeOf(DeferredAttr.java:1062)
>  at 
> com.sun.tools.javac.comp.Resolve$ResolveDeferredRecoveryMap.typeOf(Resolve.java:2568)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:1027)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.visitType(DeferredAttr.java:1050)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:1013)
>  at com.sun.tools.javac.code.Type.accept(Type.java:214)
>  at com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:4965)
>  at com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4976)
>  at com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4974)
>  at com.sun.tools.javac.util.List.map(List.java:425)
>  at com.sun.tools.javac.comp.Resolve$8.getArgumentTypes(Resolve.java:2556)
>  at com.sun.tools.javac.comp.Resolve.accessInternal(Resolve.java:2477)
>  at com.sun.tools.javac.comp.Resolve.accessMethod(Resolve.java:2497)
>  at 
> com.sun.tools.javac.comp.Resolve$BasicLookupHelper.access(Resolve.java:3311)
>  at com.sun.tools.javac.comp.Resolve$10.access(Resolve.java:2665)
>  at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3552)
>  at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2655)
>  at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2649)
>  at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3960)
>  at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3840)
>  at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2116)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
>  at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2068)
>  at 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
>  at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:715)
>  at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1827)
>  at 
> com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1458)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:738)
>  at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:762)
>  at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1339)
>  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:662)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:738)
>  at com.sun.to

[jira] [Updated] (NETBEANS-1224) Code completion for lambda parameter throwing exception

2018-09-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-1224:

Component/s: (was: cnd - Code Completion)
 java - Editor

> Code completion for lambda parameter throwing exception
> ---
>
> Key: NETBEANS-1224
> URL: https://issues.apache.org/jira/browse/NETBEANS-1224
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Reporter: ARUNAVA SINHA
>Priority: Major
>
> If we have a functional interface as method argument and we want to implement 
> using lambda expression , then on trying to do code completion for lambda 
> param exception will occur.
> The issue is reproducible with or without nb-javac(for jdk-11)
> Please find below sample code.
> public class JavaApplication1 {
>  public static void main(String[] args) {
> JavaApplication1 obj = new JavaApplication1();
>  obj.test((var a,^ ));
>  }
>  private void test(FuncInterface f) {
>  }
>  interface FuncInterface {
>  public void test(String s, int p, long v);
>  }
> }
> On doing ctl+space at  '^' throwing below exception
> java.lang.NullPointerException
>  at com.sun.tools.javac.code.Types.subst(Types.java:3276)
>  at 
> com.sun.tools.javac.comp.InferenceContext.asUndetVar(InferenceContext.java:207)
>  at 
> com.sun.tools.javac.comp.InferenceContext.asUndetVars(InferenceContext.java:213)
>  at com.sun.tools.javac.comp.Attr.checkLambdaCompatible(Attr.java:3018)
>  at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2750)
>  at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1813)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
>  at 
> com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:505)
>  at 
> com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:486)
>  at com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:374)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:340)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:326)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.recover(DeferredAttr.java:1095)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.typeOf(DeferredAttr.java:1062)
>  at 
> com.sun.tools.javac.comp.Resolve$ResolveDeferredRecoveryMap.typeOf(Resolve.java:2568)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:1027)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.visitType(DeferredAttr.java:1050)
>  at 
> com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:1013)
>  at com.sun.tools.javac.code.Type.accept(Type.java:214)
>  at com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:4965)
>  at com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4976)
>  at com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4974)
>  at com.sun.tools.javac.util.List.map(List.java:425)
>  at com.sun.tools.javac.comp.Resolve$8.getArgumentTypes(Resolve.java:2556)
>  at com.sun.tools.javac.comp.Resolve.accessInternal(Resolve.java:2477)
>  at com.sun.tools.javac.comp.Resolve.accessMethod(Resolve.java:2497)
>  at 
> com.sun.tools.javac.comp.Resolve$BasicLookupHelper.access(Resolve.java:3311)
>  at com.sun.tools.javac.comp.Resolve$10.access(Resolve.java:2665)
>  at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3552)
>  at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2655)
>  at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2649)
>  at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3960)
>  at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3840)
>  at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2116)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
>  at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2068)
>  at 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
>  at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:715)
>  at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1827)
>  at 
> com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1458)
>  at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
>  at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:738)
>  at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:762)
>  at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1339)
>  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:662)
>  at com.sun.tools.javac.comp.Attr.

[jira] [Updated] (NETBEANS-1224) Code completion for lambda parameter throwing exception

2018-09-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-1224:

Description: 
If we have a functional interface as method argument and we want to implement 
using lambda expression , then on trying to do code completion for lambda param 
exception will occur.

The issue is reproducible with or without nb-javac(for jdk-11)

Please find below sample code for simulating the issue.

public class JavaApplication1 {
 public static void main(String[] args)

{ JavaApplication1 obj = new JavaApplication1(); obj.test((var a,^ )); }

private void test(FuncInterface f) {}
 interface FuncInterface\{ public void test(String s, int p, long v); }

}

 

On doing ctl+space at  '^' throwing below exception.

=

java.lang.NullPointerException
 at jdk.compiler/com.sun.tools.javac.code.Types.subst(Types.java:3258)
 at 
jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVar(InferenceContext.java:207)
 at 
jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVars(InferenceContext.java:213)
 at 
jdk.compiler/com.sun.tools.javac.comp.Attr.checkLambdaCompatible(Attr.java:2872)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2610)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1807)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:497)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:480)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:368)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:334)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:320)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.recover(DeferredAttr.java:1033)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.typeOf(DeferredAttr.java:1022)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$ResolveDeferredRecoveryMap.typeOf(Resolve.java:2554)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:989)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.visitType(DeferredAttr.java:1012)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:975)
 at jdk.compiler/com.sun.tools.javac.code.Type.accept(Type.java:214)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:4940)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4951)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4949)
 at jdk.compiler/com.sun.tools.javac.util.List.map(List.java:425)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$8.getArgumentTypes(Resolve.java:2542)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.accessInternal(Resolve.java:2463)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.accessMethod(Resolve.java:2483)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$BasicLookupHelper.access(Resolve.java:3297)
 at jdk.compiler/com.sun.tools.javac.comp.Resolve$10.access(Resolve.java:2651)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3538)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2641)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2635)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3721)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3601)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2110)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2006)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:702)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1773)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1452)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:724)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:743)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1294)
 at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:69)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1020)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attrib

[jira] [Updated] (NETBEANS-1224) Code completion for lambda parameter throwing exception

2018-09-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-1224:

Description: 
If we have a functional interface as method argument and we want to implement 
it using lambda expression , then on trying to do code-completion for lambda 
param exception occurs.

The issue is reproducible with or without nb-javac(for jdk-11)

Please find below sample code for simulating the issue.

public class JavaApplication1 {
 public static void main(String[] args)

{ JavaApplication1 obj = new JavaApplication1(); obj.test((var a,^ )); }

private void test(FuncInterface f) {}
 interface FuncInterface\{ public void test(String s, int p, long v); }

}

 

On doing ctl+space at  '^' throwing below exception.

=

java.lang.NullPointerException
 at jdk.compiler/com.sun.tools.javac.code.Types.subst(Types.java:3258)
 at 
jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVar(InferenceContext.java:207)
 at 
jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVars(InferenceContext.java:213)
 at 
jdk.compiler/com.sun.tools.javac.comp.Attr.checkLambdaCompatible(Attr.java:2872)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2610)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1807)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:497)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:480)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:368)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:334)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:320)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.recover(DeferredAttr.java:1033)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.typeOf(DeferredAttr.java:1022)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$ResolveDeferredRecoveryMap.typeOf(Resolve.java:2554)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:989)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.visitType(DeferredAttr.java:1012)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:975)
 at jdk.compiler/com.sun.tools.javac.code.Type.accept(Type.java:214)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:4940)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4951)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4949)
 at jdk.compiler/com.sun.tools.javac.util.List.map(List.java:425)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$8.getArgumentTypes(Resolve.java:2542)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.accessInternal(Resolve.java:2463)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.accessMethod(Resolve.java:2483)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$BasicLookupHelper.access(Resolve.java:3297)
 at jdk.compiler/com.sun.tools.javac.comp.Resolve$10.access(Resolve.java:2651)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3538)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2641)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2635)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3721)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3601)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2110)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2006)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:702)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1773)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1452)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:724)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:743)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1294)
 at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:69)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1020)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribT

[incubator-netbeans] branch master updated (6a382b9 -> 6b94745)

2018-09-06 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

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


from 6a382b9  Merge pull request #834 from matthiasblaesing/netbeans-857
 add 36a1a61  Enforce public packages and friends for dependencies on 
bootstrap modules
 add b928826  Refactored staged processing of bootstrap modules from C-like 
to Java
 add 45a0c0d  Added incompatible version + warning; proper @since
 new 6b94745  Merge pull request #844 from sdedic/fix-bootstrap-leaks

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


Summary of changes:
 .../core.startup.base/nbproject/project.properties |   4 +-
 platform/core.startup/nbproject/project.properties |   4 +-
 .../org/netbeans/core/startup/ModuleSystem.java| 112 -
 platform/o.n.bootstrap/apichanges.xml  |  19 
 platform/o.n.bootstrap/manifest.mf |   2 +-
 .../src/org/netbeans/ModuleManager.java|  93 -
 .../src/org/netbeans/StandardModule.java   |   2 +-
 7 files changed, 181 insertions(+), 55 deletions(-)


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

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



[incubator-netbeans] 01/01: Merge pull request #844 from sdedic/fix-bootstrap-leaks

2018-09-06 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

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

commit 6b9474534749814073040d9515505cd7cd18efa0
Merge: 6a382b9 45a0c0d
Author: Jaroslav Tulach 
AuthorDate: Thu Sep 6 12:15:30 2018 +0200

Merge pull request #844 from sdedic/fix-bootstrap-leaks

Enforce public packages and friends for dependencies on bootstrap mod…

 .../core.startup.base/nbproject/project.properties |   4 +-
 platform/core.startup/nbproject/project.properties |   4 +-
 .../org/netbeans/core/startup/ModuleSystem.java| 112 -
 platform/o.n.bootstrap/apichanges.xml  |  19 
 platform/o.n.bootstrap/manifest.mf |   2 +-
 .../src/org/netbeans/ModuleManager.java|  93 -
 .../src/org/netbeans/StandardModule.java   |   2 +-
 7 files changed, 181 insertions(+), 55 deletions(-)


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

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



[incubator-netbeans] branch master updated (6b94745 -> dfd1ca0)

2018-09-06 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

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


from 6b94745  Merge pull request #844 from sdedic/fix-bootstrap-leaks
 add 80a6f65  Adjusted locations of test data after moving into cluster 
subdirs
 new dfd1ca0  Merge pull request #843 from sdedic/test_data_subdirs

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


Summary of changes:
 ide/httpserver/nbproject/project.properties | 4 ++--
 java/java.freeform/nbproject/project.properties | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


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

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



[incubator-netbeans] 01/01: Merge pull request #843 from sdedic/test_data_subdirs

2018-09-06 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

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

commit dfd1ca09b06de5aebb1b468ce8c0e5508b1a1ab3
Merge: 6b94745 80a6f65
Author: Jaroslav Tulach 
AuthorDate: Thu Sep 6 14:25:52 2018 +0200

Merge pull request #843 from sdedic/test_data_subdirs

Adjusted locations of test data after moving into cluster subdirs

 ide/httpserver/nbproject/project.properties | 4 ++--
 java/java.freeform/nbproject/project.properties | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


-
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-857) IP CLEARANCE: WSDL-2004 license

2018-09-06 Thread JIRA


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

Matthias Bläsing resolved NETBEANS-857.
---
Resolution: Fixed
  Assignee: Matthias Bläsing

Fix was merged to master.

> IP CLEARANCE: WSDL-2004 license
> ---
>
> Key: NETBEANS-857
> URL: https://issues.apache.org/jira/browse/NETBEANS-857
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Emilian Bold
>Assignee: Matthias Bläsing
>Priority: Major
>  Labels: pull-request-available
> Fix For: 9.0
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> Review our WSDL-2004 license usage which is not under 
> https://www.apache.org/legal/resolved.html



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

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

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



[incubator-netbeans] branch master updated: [NETBEANS-1074] Module Review extbrowser.chrome

2018-09-06 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 80c5290  [NETBEANS-1074] Module Review extbrowser.chrome
80c5290 is described below

commit 80c5290a5e4c9dc17539c941d569ec34c1badf25
Author: Thilina Ranathunga 
AuthorDate: Fri Sep 7 00:40:39 2018 +0530

[NETBEANS-1074] Module Review extbrowser.chrome

Changed license header in 1 files
added short header to 1 description.txt file
added 2 json files to licenseinfo.xml
added 21 graphic files to licenseinfo.xml
replaced old logo with new logo
---
 extbrowser.chrome/licenseinfo.xml  |  52 +
 .../plugins/chrome/img/netbeans128.png | Bin 20011 -> 5796 bytes
 .../plugins/chrome/img/netbeans16.png  | Bin 847 -> 675 bytes
 .../plugins/chrome/img/netbeans48.png  | Bin 3674 -> 2448 bytes
 extbrowser.chrome/plugins/chrome/js/chrome.js  |  51 ++--
 .../chrome_web_store_resources/description.txt |   2 +
 .../netbeans-cube-chrome.png   | Bin 10505 -> 5796 bytes
 7 files changed, 68 insertions(+), 37 deletions(-)

diff --git a/extbrowser.chrome/licenseinfo.xml 
b/extbrowser.chrome/licenseinfo.xml
new file mode 100644
index 000..e3a64f5
--- /dev/null
+++ b/extbrowser.chrome/licenseinfo.xml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+plugins/chrome/_locales/en/messages.json
+plugins/chrome/manifest.json
+plugins/chrome/img/netbeans128.png
+plugins/chrome/img/netbeans16.png
+plugins/chrome/img/netbeans48.png
+plugins/chrome/img/presets/DESKTOP.png
+plugins/chrome/img/presets/NETBOOK.png
+plugins/chrome/img/presets/SMARTPHONE_LANDSCAPE.png
+plugins/chrome/img/presets/SMARTPHONE_PORTRAIT.png
+plugins/chrome/img/presets/TABLET_LANDSCAPE.png
+plugins/chrome/img/presets/TABLET_PORTRAIT.png
+plugins/chrome/img/presets/WIDESCREEN.png
+plugins/chrome/img/presets/boxModel.png
+plugins/chrome/img/presets/customize.png
+plugins/chrome/img/presets/freezeJavaScript.png
+plugins/chrome/img/presets/menu.png
+plugins/chrome/img/presets/selectionMode.png
+plugins/chrome/img/presets/sizeToFit.png
+plugins/chrome/img/warnings/disconnectedDebugger.png
+plugins/chrome/img/warnings/icon.png
+
plugins/chrome_web_store_resources/netbeans-cube-chrome.png
+plugins/chrome_web_store_resources/screenshot_1280x800.jpg
+
src/org/netbeans/modules/extbrowser/chrome/resources/warning.png
+
+
+
+
diff --git a/extbrowser.chrome/plugins/chrome/img/netbeans128.png 
b/extbrowser.chrome/plugins/chrome/img/netbeans128.png
index f99dbb6..0a6024a 100644
Binary files a/extbrowser.chrome/plugins/chrome/img/netbeans128.png and 
b/extbrowser.chrome/plugins/chrome/img/netbeans128.png differ
diff --git a/extbrowser.chrome/plugins/chrome/img/netbeans16.png 
b/extbrowser.chrome/plugins/chrome/img/netbeans16.png
index 52855d9..1b3bcd6 100644
Binary files a/extbrowser.chrome/plugins/chrome/img/netbeans16.png and 
b/extbrowser.chrome/plugins/chrome/img/netbeans16.png differ
diff --git a/extbrowser.chrome/plugins/chrome/img/netbeans48.png 
b/extbrowser.chrome/plugins/chrome/img/netbeans48.png
index 5cb350b..b7c45b0 100644
Binary files a/extbrowser.chrome/plugins/chrome/img/netbeans48.png and 
b/extbrowser.chrome/plugins/chrome/img/netbeans48.png differ
diff --git a/extbrowser.chrome/plugins/chrome/js/chrome.js 
b/extbrowser.chrome/plugins/chrome/js/chrome.js
index 40cd060..9d23f37 100644
--- a/extbrowser.chrome/plugins/chrome/js/chrome.js
+++ b/extbrowser.chrome/plugins/chrome/js/chrome.js
@@ -1,43 +1,20 @@
 /*
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * Copyright 2012 Oracle and/or its affiliates. All rights reserved.
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
- * Other names may be trademarks of their respective owners.
- *
- * The contents of this file are subject to the terms of either the GNU
- * General Public License Version 2 only ("GPL") or the Common
- * Development and Distribution License("CDDL") (collectively, the
- * "License"). You may not use this file except in compliance with the
- * License. You can obtain a copy of the Lice

[jira] [Updated] (NETBEANS-731) Hide (or retract) menu in full screen mode

2018-09-06 Thread Eirik Bakke (JIRA)


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

Eirik Bakke updated NETBEANS-731:
-
Summary: Hide (or retract) menu in full screen mode  (was: retractile menu 
in FULL SCREEN MODEL)

> Hide (or retract) menu in full screen mode
> --
>
> Key: NETBEANS-731
> URL: https://issues.apache.org/jira/browse/NETBEANS-731
> Project: NetBeans
>  Issue Type: Improvement
>  Components: ide - UI
>Affects Versions: Next
>Reporter: paulo alves
>Priority: Major
>
> When in model "FULL SCREEN" create a option to allow one retractile menu in 
> the superior size of the interface, such as in Office2016. When you touch the 
> mouse in the superior side of the screen, show the usual menu, otherwise hide 
> that



--
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-731) Hide (or retract) menu in full screen mode

2018-09-06 Thread Eirik Bakke (JIRA)


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

Eirik Bakke updated NETBEANS-731:
-
Description: 
On MacOS, the "full screen" mode hides the menu bar, but shows it again if the 
user moves the mouse cursor to the edge of the screen. This should be the 
behavior on other platforms as well. There's a similar feature in Office 2016 
for Windows.

Currently, on Windows, the menu bar is shown even in full screen mode. It would 
be nice to hide it.

Similar bug reports from the old bugzilla database:

[https://netbeans.org/bugzilla/show_bug.cgi?id=180751]

[https://netbeans.org/bugzilla/show_bug.cgi?id=222936]

 

 

  was:When in model "FULL SCREEN" create a option to allow one retractile menu 
in the superior size of the interface, such as in Office2016. When you touch 
the mouse in the superior side of the screen, show the usual menu, otherwise 
hide that


> Hide (or retract) menu in full screen mode
> --
>
> Key: NETBEANS-731
> URL: https://issues.apache.org/jira/browse/NETBEANS-731
> Project: NetBeans
>  Issue Type: Improvement
>  Components: ide - UI
>Affects Versions: Next
>Reporter: paulo alves
>Priority: Major
>
> On MacOS, the "full screen" mode hides the menu bar, but shows it again if 
> the user moves the mouse cursor to the edge of the screen. This should be the 
> behavior on other platforms as well. There's a similar feature in Office 2016 
> for Windows.
> Currently, on Windows, the menu bar is shown even in full screen mode. It 
> would be nice to hide it.
> Similar bug reports from the old bugzilla database:
> [https://netbeans.org/bugzilla/show_bug.cgi?id=180751]
> [https://netbeans.org/bugzilla/show_bug.cgi?id=222936]
>  
>  



--
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-731) Hide (or retract) menu in full screen mode

2018-09-06 Thread Eirik Bakke (JIRA)


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

Eirik Bakke updated NETBEANS-731:
-
Description: 
On MacOS, the "full screen" mode hides the menu bar, but shows it again if the 
user moves the mouse cursor to the edge of the screen. This should be the 
behavior on other platforms as well. There's a similar feature in Office 2016 
for Windows.

Currently, on Windows, the menu bar is shown even in full screen mode. It would 
be nice to hide it.

Similar bug reports from the old bugzilla database:
[https://netbeans.org/bugzilla/show_bug.cgi?id=180751
] [https://netbeans.org/bugzilla/show_bug.cgi?id=222936]

Internally in NetBeans, the MacOS full screen mode is handled differently than 
on other platforms, since MacOS provides its own full-screen support. So it's 
the custom full screen code that is used on other OSes that will have to be 
modified for this enhancement to be implemented.

  was:
On MacOS, the "full screen" mode hides the menu bar, but shows it again if the 
user moves the mouse cursor to the edge of the screen. This should be the 
behavior on other platforms as well. There's a similar feature in Office 2016 
for Windows.

Currently, on Windows, the menu bar is shown even in full screen mode. It would 
be nice to hide it.

Similar bug reports from the old bugzilla database:

[https://netbeans.org/bugzilla/show_bug.cgi?id=180751]

[https://netbeans.org/bugzilla/show_bug.cgi?id=222936]

 

 


> Hide (or retract) menu in full screen mode
> --
>
> Key: NETBEANS-731
> URL: https://issues.apache.org/jira/browse/NETBEANS-731
> Project: NetBeans
>  Issue Type: Improvement
>  Components: ide - UI
>Affects Versions: Next
>Reporter: paulo alves
>Priority: Major
>
> On MacOS, the "full screen" mode hides the menu bar, but shows it again if 
> the user moves the mouse cursor to the edge of the screen. This should be the 
> behavior on other platforms as well. There's a similar feature in Office 2016 
> for Windows.
> Currently, on Windows, the menu bar is shown even in full screen mode. It 
> would be nice to hide it.
> Similar bug reports from the old bugzilla database:
> [https://netbeans.org/bugzilla/show_bug.cgi?id=180751
> ] [https://netbeans.org/bugzilla/show_bug.cgi?id=222936]
> Internally in NetBeans, the MacOS full screen mode is handled differently 
> than on other platforms, since MacOS provides its own full-screen support. So 
> it's the custom full screen code that is used on other OSes that will have to 
> be modified for this enhancement to be implemented.



--
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-731) Hide (or retract) menu in full screen mode

2018-09-06 Thread Eirik Bakke (JIRA)


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

Eirik Bakke updated NETBEANS-731:
-
Description: 
On MacOS, the "full screen" mode hides the menu bar, but shows it again if the 
user moves the mouse cursor to the edge of the screen. This should be the 
behavior on other platforms as well. There's a similar feature in Office 2016 
for Windows.

Currently, on Windows, the menu bar is shown even in full screen mode. It would 
be nice to hide it.

Similar bug reports from the old bugzilla database:
[https://netbeans.org/bugzilla/show_bug.cgi?id=180751]
[https://netbeans.org/bugzilla/show_bug.cgi?id=222936]

Internally in NetBeans, the MacOS full screen mode is handled differently than 
on other platforms, since MacOS provides its own full-screen support. So it's 
the custom full screen code that is used on other OSes that will have to be 
modified for this enhancement to be implemented.

  was:
On MacOS, the "full screen" mode hides the menu bar, but shows it again if the 
user moves the mouse cursor to the edge of the screen. This should be the 
behavior on other platforms as well. There's a similar feature in Office 2016 
for Windows.

Currently, on Windows, the menu bar is shown even in full screen mode. It would 
be nice to hide it.

Similar bug reports from the old bugzilla database:
[https://netbeans.org/bugzilla/show_bug.cgi?id=180751
] [https://netbeans.org/bugzilla/show_bug.cgi?id=222936]

Internally in NetBeans, the MacOS full screen mode is handled differently than 
on other platforms, since MacOS provides its own full-screen support. So it's 
the custom full screen code that is used on other OSes that will have to be 
modified for this enhancement to be implemented.


> Hide (or retract) menu in full screen mode
> --
>
> Key: NETBEANS-731
> URL: https://issues.apache.org/jira/browse/NETBEANS-731
> Project: NetBeans
>  Issue Type: Improvement
>  Components: ide - UI
>Affects Versions: Next
>Reporter: paulo alves
>Priority: Major
>
> On MacOS, the "full screen" mode hides the menu bar, but shows it again if 
> the user moves the mouse cursor to the edge of the screen. This should be the 
> behavior on other platforms as well. There's a similar feature in Office 2016 
> for Windows.
> Currently, on Windows, the menu bar is shown even in full screen mode. It 
> would be nice to hide it.
> Similar bug reports from the old bugzilla database:
> [https://netbeans.org/bugzilla/show_bug.cgi?id=180751]
> [https://netbeans.org/bugzilla/show_bug.cgi?id=222936]
> Internally in NetBeans, the MacOS full screen mode is handled differently 
> than on other platforms, since MacOS provides its own full-screen support. So 
> it's the custom full screen code that is used on other OSes that will have to 
> be modified for this enhancement to be implemented.



--
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-1224) Code completion for lambda parameter throwing exception

2018-09-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-1224:

Summary: Code completion for lambda parameter throwing exception   (was: 
Code completion for lambda parameter throwing exception)

> Code completion for lambda parameter throwing exception 
> 
>
> Key: NETBEANS-1224
> URL: https://issues.apache.org/jira/browse/NETBEANS-1224
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Reporter: ARUNAVA SINHA
>Priority: Major
>
> If we have a functional interface as method argument and we want to implement 
> it using lambda expression , then on trying to do code-completion for lambda 
> param exception occurs.
> The issue is reproducible with or without nb-javac(for jdk-11)
> Please find below sample code for simulating the issue.
> public class JavaApplication1 {
>  public static void main(String[] args)
> { JavaApplication1 obj = new JavaApplication1(); obj.test((var a,^ )); }
> private void test(FuncInterface f) {}
>  interface FuncInterface\{ public void test(String s, int p, long v); }
> }
>  
> On doing ctl+space at  '^' throwing below exception.
> =
> java.lang.NullPointerException
>  at jdk.compiler/com.sun.tools.javac.code.Types.subst(Types.java:3258)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVar(InferenceContext.java:207)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVars(InferenceContext.java:213)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Attr.checkLambdaCompatible(Attr.java:2872)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2610)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1807)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:497)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:480)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:368)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:334)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:320)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.recover(DeferredAttr.java:1033)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.typeOf(DeferredAttr.java:1022)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve$ResolveDeferredRecoveryMap.typeOf(Resolve.java:2554)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:989)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.visitType(DeferredAttr.java:1012)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:975)
>  at jdk.compiler/com.sun.tools.javac.code.Type.accept(Type.java:214)
>  at 
> jdk.compiler/com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:4940)
>  at 
> jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4951)
>  at 
> jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4949)
>  at jdk.compiler/com.sun.tools.javac.util.List.map(List.java:425)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve$8.getArgumentTypes(Resolve.java:2542)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.accessInternal(Resolve.java:2463)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.accessMethod(Resolve.java:2483)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve$BasicLookupHelper.access(Resolve.java:3297)
>  at jdk.compiler/com.sun.tools.javac.comp.Resolve$10.access(Resolve.java:2651)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3538)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2641)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2635)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3721)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3601)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2110)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2006)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:702)
>  at j

[jira] [Updated] (NETBEANS-1224) Code completion for lambda parameter throwing exception in jdk-11

2018-09-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-1224:

Summary: Code completion for lambda parameter throwing exception in jdk-11  
(was: Code completion for lambda parameter throwing exception )

> Code completion for lambda parameter throwing exception in jdk-11
> -
>
> Key: NETBEANS-1224
> URL: https://issues.apache.org/jira/browse/NETBEANS-1224
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Reporter: ARUNAVA SINHA
>Priority: Major
>
> If we have a functional interface as method argument and we want to implement 
> it using lambda expression , then on trying to do code-completion for lambda 
> param exception occurs.
> The issue is reproducible with or without nb-javac(for jdk-11)
> Please find below sample code for simulating the issue.
> public class JavaApplication1 {
>  public static void main(String[] args)
> { JavaApplication1 obj = new JavaApplication1(); obj.test((var a,^ )); }
> private void test(FuncInterface f) {}
>  interface FuncInterface\{ public void test(String s, int p, long v); }
> }
>  
> On doing ctl+space at  '^' throwing below exception.
> =
> java.lang.NullPointerException
>  at jdk.compiler/com.sun.tools.javac.code.Types.subst(Types.java:3258)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVar(InferenceContext.java:207)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVars(InferenceContext.java:213)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Attr.checkLambdaCompatible(Attr.java:2872)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2610)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1807)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:497)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:480)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:368)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:334)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:320)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.recover(DeferredAttr.java:1033)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.typeOf(DeferredAttr.java:1022)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve$ResolveDeferredRecoveryMap.typeOf(Resolve.java:2554)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:989)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.visitType(DeferredAttr.java:1012)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:975)
>  at jdk.compiler/com.sun.tools.javac.code.Type.accept(Type.java:214)
>  at 
> jdk.compiler/com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:4940)
>  at 
> jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4951)
>  at 
> jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4949)
>  at jdk.compiler/com.sun.tools.javac.util.List.map(List.java:425)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve$8.getArgumentTypes(Resolve.java:2542)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.accessInternal(Resolve.java:2463)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.accessMethod(Resolve.java:2483)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve$BasicLookupHelper.access(Resolve.java:3297)
>  at jdk.compiler/com.sun.tools.javac.comp.Resolve$10.access(Resolve.java:2651)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3538)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2641)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2635)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3721)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3601)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2110)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2006)
>  at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
>  at jdk.compiler/com.sun.tools.javac.comp.Attr.attri

[jira] [Updated] (NETBEANS-862) Autocomplete for var keyword not supported in Lambda parameter

2018-09-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-862:
---
Labels: JDK11-VarInLambda  (was: JDK11-VarInLambda pull-request-available)

> Autocomplete for var keyword not supported in Lambda parameter
> --
>
> Key: NETBEANS-862
> URL: https://issues.apache.org/jira/browse/NETBEANS-862
> Project: NetBeans
>  Issue Type: Bug
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Minor
>  Labels: JDK11-VarInLambda
>  Time Spent: 2h
>  Remaining Estimate: 0h
>
> Auto-complete(CTL+ space)  for var keyword in not happening in Lambda 
> parameter (JDK-11). Cursor is at caret position.
> IntBinaryOperator calc2 = (var x,  ^ 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-862) Autocomplete for var keyword not supported in Lambda parameter

2018-09-06 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot updated NETBEANS-862:

Labels: JDK11-VarInLambda pull-request-available  (was: JDK11-VarInLambda)

> Autocomplete for var keyword not supported in Lambda parameter
> --
>
> Key: NETBEANS-862
> URL: https://issues.apache.org/jira/browse/NETBEANS-862
> Project: NetBeans
>  Issue Type: Bug
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Minor
>  Labels: JDK11-VarInLambda, pull-request-available
>  Time Spent: 2h
>  Remaining Estimate: 0h
>
> Auto-complete(CTL+ space)  for var keyword in not happening in Lambda 
> parameter (JDK-11). Cursor is at caret position.
> IntBinaryOperator calc2 = (var x,  ^ 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] [Created] (NETBEANS-1225) nb-javac 1.3 broken on release version of NB9

2018-09-06 Thread JIRA
Patrik Karlström created NETBEANS-1225:
--

 Summary: nb-javac 1.3 broken on release version of NB9
 Key: NETBEANS-1225
 URL: https://issues.apache.org/jira/browse/NETBEANS-1225
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 9.0
 Environment: Product Version: Apache NetBeans IDE 9.0 (Build 
incubator-netbeans-release-334-on-20180708)
Java: 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_181-b13
System: Linux version 4.18.5-1-MANJARO running on amd64; UTF-8; sv_SE (nb)
User directory: /home/pata/.netbeans/9.0
Cache directory: /home/pata/.cache/netbeans/9.0
Reporter: Patrik Karlström


I am experiencing some weird stuff since I got the nb-javac update from 1.2 to 
1.3.

A. It will not validate my code correctly.

B. When try to use a class not previously imported, I get the import, but the 
line I'm editing gets deleted.
1. Type MouseWh
2. Press Ctrl-Space
3. Press enter
That generates: import java.awt.event.MouseWheelEvent;
But removes the line with MouseWh, instead of expanding it
 
C. When I paste code that requires imports I get the dialog listing the needed 
classes,pressing OK in that dialog generates an exception.
The dialog stays visible but now with only cancel enabled.
My code did not get the imports.
 
This is confirmed by others on the mailing list:
http://mail-archives.apache.org/mod_mbox/netbeans-dev/201809.mbox/%3CCAArD4mD%2BYXBhy3WR-Y0%2BH5x_j%2BzZ083Dk3qwu8RQYL7pncYUrQ%40mail.gmail.com%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] [Assigned] (NETBEANS-1225) nb-javac 1.3 broken on release version of NB9

2018-09-06 Thread Reema Taneja (JIRA)


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

Reema Taneja reassigned NETBEANS-1225:
--

Assignee: Reema Taneja

> nb-javac 1.3 broken on release version of NB9
> -
>
> Key: NETBEANS-1225
> URL: https://issues.apache.org/jira/browse/NETBEANS-1225
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE 9.0 (Build 
> incubator-netbeans-release-334-on-20180708)
> Java: 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13
> Runtime: Java(TM) SE Runtime Environment 1.8.0_181-b13
> System: Linux version 4.18.5-1-MANJARO running on amd64; UTF-8; sv_SE (nb)
> User directory: /home/pata/.netbeans/9.0
> Cache directory: /home/pata/.cache/netbeans/9.0
>Reporter: Patrik Karlström
>Assignee: Reema Taneja
>Priority: Critical
>
> I am experiencing some weird stuff since I got the nb-javac update from 1.2 
> to 1.3.
> A. It will not validate my code correctly.
> B. When try to use a class not previously imported, I get the import, but the 
> line I'm editing gets deleted.
> 1. Type MouseWh
> 2. Press Ctrl-Space
> 3. Press enter
> That generates: import java.awt.event.MouseWheelEvent;
> But removes the line with MouseWh, instead of expanding it
>  
> C. When I paste code that requires imports I get the dialog listing the 
> needed classes,pressing OK in that dialog generates an exception.
> The dialog stays visible but now with only cancel enabled.
> My code did not get the imports.
>  
> This is confirmed by others on the mailing list:
> http://mail-archives.apache.org/mod_mbox/netbeans-dev/201809.mbox/%3CCAArD4mD%2BYXBhy3WR-Y0%2BH5x_j%2BzZ083Dk3qwu8RQYL7pncYUrQ%40mail.gmail.com%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] [Updated] (NETBEANS-1224) Code completion for lambda parameter throwing exception in jdk-11

2018-09-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-1224:

Description: 
If we have a functional interface as method argument and we want to implement 
it using lambda expression , then on trying to do code-completion for lambda 
param exception occurs.

The issue is reproducible with or without nb-javac(for jdk-11)

The issue was reproduced using OpenJDK 64-Bit Server VM 18.9 (build 11+28, 
mixed mode) 

Please find below sample code for simulating the issue.

public class JavaApplication1 {
 public static void main(String[] args)

{ JavaApplication1 obj = new JavaApplication1(); obj.test((var a,^ )); }

private void test(FuncInterface f) {}
 interface FuncInterface\{ public void test(String s, int p, long v); }

}

 

On doing ctl+space at  '^' throwing below exception.

=

java.lang.NullPointerException
 at jdk.compiler/com.sun.tools.javac.code.Types.subst(Types.java:3258)
 at 
jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVar(InferenceContext.java:207)
 at 
jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVars(InferenceContext.java:213)
 at 
jdk.compiler/com.sun.tools.javac.comp.Attr.checkLambdaCompatible(Attr.java:2872)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2610)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1807)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:497)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:480)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:368)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:334)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:320)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.recover(DeferredAttr.java:1033)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.typeOf(DeferredAttr.java:1022)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$ResolveDeferredRecoveryMap.typeOf(Resolve.java:2554)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:989)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.visitType(DeferredAttr.java:1012)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:975)
 at jdk.compiler/com.sun.tools.javac.code.Type.accept(Type.java:214)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:4940)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4951)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4949)
 at jdk.compiler/com.sun.tools.javac.util.List.map(List.java:425)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$8.getArgumentTypes(Resolve.java:2542)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.accessInternal(Resolve.java:2463)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.accessMethod(Resolve.java:2483)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$BasicLookupHelper.access(Resolve.java:3297)
 at jdk.compiler/com.sun.tools.javac.comp.Resolve$10.access(Resolve.java:2651)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3538)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2641)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2635)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3721)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3601)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2110)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2006)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:702)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1773)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1452)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:724)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:743)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1294)
 at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:69)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTr

[jira] [Updated] (NETBEANS-1224) Code completion for lambda parameter throwing exception in jdk-11

2018-09-06 Thread ARUNAVA SINHA (JIRA)


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

ARUNAVA SINHA updated NETBEANS-1224:

Description: 
If we have a functional interface as method argument and we want to implement 
it using lambda expression , then on trying to do code-completion for lambda 
param exception occurs.

The issue is reproducible in Open JDK-11 with or without nb-javac(for jdk-11)

The issue was reproduced using OpenJDK 64-Bit Server VM 18.9 (build 11+28, 
mixed mode) 

Please find below sample code for simulating the issue.

public class JavaApplication1 {
 public static void main(String[] args)

{ JavaApplication1 obj = new JavaApplication1(); obj.test((var a,^ )); }

private void test(FuncInterface f) {}
 interface FuncInterface\{ public void test(String s, int p, long v); }

}

 

On doing ctl+space at  '^' throwing below exception.

=

java.lang.NullPointerException
 at jdk.compiler/com.sun.tools.javac.code.Types.subst(Types.java:3258)
 at 
jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVar(InferenceContext.java:207)
 at 
jdk.compiler/com.sun.tools.javac.comp.InferenceContext.asUndetVars(InferenceContext.java:213)
 at 
jdk.compiler/com.sun.tools.javac.comp.Attr.checkLambdaCompatible(Attr.java:2872)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2610)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1807)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:497)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:480)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:368)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:334)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:320)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.recover(DeferredAttr.java:1033)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.typeOf(DeferredAttr.java:1022)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$ResolveDeferredRecoveryMap.typeOf(Resolve.java:2554)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:989)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$RecoveryDeferredTypeMap.visitType(DeferredAttr.java:1012)
 at 
jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredTypeMap.visitType(DeferredAttr.java:975)
 at jdk.compiler/com.sun.tools.javac.code.Type.accept(Type.java:214)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:4940)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4951)
 at 
jdk.compiler/com.sun.tools.javac.code.Types$TypeMapping.apply(Types.java:4949)
 at jdk.compiler/com.sun.tools.javac.util.List.map(List.java:425)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$8.getArgumentTypes(Resolve.java:2542)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.accessInternal(Resolve.java:2463)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.accessMethod(Resolve.java:2483)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve$BasicLookupHelper.access(Resolve.java:3297)
 at jdk.compiler/com.sun.tools.javac.comp.Resolve$10.access(Resolve.java:2651)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3538)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2641)
 at 
jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2635)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3721)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3601)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2110)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2006)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1634)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:702)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1773)
 at 
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1452)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:724)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:743)
 at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1294)
 at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:69)
 at 
jdk.compiler/com.sun.tools.

[jira] [Updated] (NETBEANS-1147) Enabling fragment has to enable host bundle first

2018-09-06 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot updated NETBEANS-1147:
-
Labels: pull-request-available  (was: )

> Enabling fragment has to enable host bundle first
> -
>
> Key: NETBEANS-1147
> URL: https://issues.apache.org/jira/browse/NETBEANS-1147
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Module System
>Reporter: Jaroslav Tulach
>Assignee: Svatopluk Dedic
>Priority: Major
>  Labels: pull-request-available
>
> While working on 
> [PR-715|https://github.com/apache/incubator-netbeans/pull/715] it turned out 
> that enabling nbjavac sooner than its API leads to:
> {code}
> ClassNotFoundException: Will not load class com.sun.source.tree.Tree 
> arbitrarily from one of [org.netbeans.libs.javacapi] and 
> [org.netbeans.modules.nbjavac.api]
> {code}
> This is a result of enabling the fragment first and host later. That is 
> strange situation - the fragment should have a dependency on the host, right?
> This is the hotfix: 
> https://github.com/apache/incubator-netbeans/pull/715/commits/ac944a13f57816970556b0b8e2e3971ea94bb3e5
>  but proper fix with a test in {{o.n.bootstrap}} is needed.



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