[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-03 Thread Jan Lahoda (JIRA)

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

Jan Lahoda commented on NETBEANS-242:
-

FWIW, my take is that bugs that are NetBeans bugs (like this one) should be 
fixed in the same mode as any other NetBeans bug.

For javac/JDK problems, I'd say it is a combination of severity of the problem 
and the difficulty of the workaround. Simple workarounds inside the modules 
that integrate javac into the IDE are surely less troublesome than wide-spread 
workarounds that would require significant changes in the features. I think we 
should (try to) avoid the situation of having the code littered with too many 
workarounds. But there were multiple workarounds done already, to avoid too 
much trouble when using the vanilla javac. (Although I am e.g. less inclined to 
workaround problems that I know are fixed in the future JDK 10).


> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
>  Labels: javac
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-03 Thread Gili (JIRA)

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

Gili commented on NETBEANS-242:
---

Okay, that's good to know. So this issue remains valid, but only when javac is 
used. Thank you for the clarification.

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:522)
> [catch] at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.compile(VanillaCompileWorker.java:283)
>   at 
> 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-03 Thread Geertjan Wielenga (JIRA)

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

Geertjan Wielenga commented on NETBEANS-242:


All kinds of issues have already been fixed regarding javac. Why wouldn't 
javac-related bugs be fixed?

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:522)
> [catch] at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.compile(VanillaCompileWorker.java:283)
>   at 
> 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-03 Thread Gili (JIRA)

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

Gili commented on NETBEANS-242:
---

[~GeertjanWielenga] I read the contents of those design documents but they 
don't answer my question.

I wanted to know: if users report bugs when using javac, do you close these as 
WON'T FIX or do you treat them the same way as users of nb-javac? Meaning, are 
both use-cases equally supported as a matter of policy?

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:522)
> [catch] at 
> 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-02 Thread Geertjan Wielenga (JIRA)

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

Geertjan Wielenga commented on NETBEANS-242:


Definitely not. There's lots of reasons nb-javac was created:

https://cwiki.apache.org/confluence/display/NETBEANS/Overview%3A+nb-javac

And read the pros and cons of vanilla javac from jDK 9 here:

https://cwiki.apache.org/confluence/display/NETBEANS/Java+Editor+Using+JDK+javac

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:522)
> [catch] at 
> 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-02 Thread Gili (JIRA)

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

Gili commented on NETBEANS-242:
---

Okay, confirmed. This exception is only thrown with JDK9 javac. nb-javac works 
fine.

What is Apache Netbeans' policy on the Java compilers? Are both fully supported?

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:522)
> [catch] at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.compile(VanillaCompileWorker.java:283)
>   at 
> 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-02 Thread Gili (JIRA)

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

Gili commented on NETBEANS-242:
---

> When you start up Apache NetBeans, you get a notification inside NetBeans 
> about installing nb-javac.

Oh, I see it now. The notification gets dismissed 3 seconds later. I strongly 
suggest making this notice more prominent and longer-lasting (wait for the user 
to explicitly dismiss it one way or another). The dialog mentioned at 
https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+9.0+Beta 
for JDK8 looks much better than what I got under JDK9.

I'll give nb-javac a try now. Thank you.

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-02 Thread Geertjan Wielenga (JIRA)

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

Geertjan Wielenga commented on NETBEANS-242:


Details: 
https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+9.0+Beta

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:522)
> [catch] at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.compile(VanillaCompileWorker.java:283)
>   at 
> 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-02 Thread Geertjan Wielenga (JIRA)

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

Geertjan Wielenga commented on NETBEANS-242:


When you start up Apache NetBeans, you get a notification inside NetBeans about 
installing nb-javac.

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:522)
> [catch] at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.compile(VanillaCompileWorker.java:283)
>   at 
> 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-02 Thread Gili (JIRA)

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

Gili commented on NETBEANS-242:
---

[~GeertjanWielenga] Yes, this is with Apache Netbeans (see the Environment 
field above for the specific build number).

This is with JDK9. I asked in another issue where to download nb-javac but I 
did not receive a reply. If you could kindly point me in the right direction 
I'll try reproducing with it as well. Thank you.

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:522)
> [catch] 

[jira] [Commented] (NETBEANS-242) NullPointerException at org.netbeans.modules.java.source.indexing.VanillaCompileWorker

2018-01-02 Thread Geertjan Wielenga (JIRA)

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

Geertjan Wielenga commented on NETBEANS-242:


Is this with Apache NetBeans from here: 
https://builds.apache.org/job/incubator-netbeans-release/

Is this with nb-javac or javac from JDK 9, i.e., are you running on Java 9 and 
therefore using javac from there or have you installed nb-javac? Does this also 
occur with nb-javac?

> NullPointerException at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker
> --
>
> Key: NETBEANS-242
> URL: https://issues.apache.org/jira/browse/NETBEANS-242
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-152-on-20171231)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
> Attachments: Price.java
>
>
> I saved a Java file and got this exception:
> {code}
> java.lang.NullPointerException
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:492)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:517)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.resolveErrors(VanillaCompileWorker.java:518)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:485)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.error2Object(VanillaCompileWorker.java:507)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:420)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:436)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:380)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:522)
> [catch] at 
>