This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241425 - NullPointerException at com.sun.tools.javac.comp.Check.checkHideClashes
Summary: NullPointerException at com.sun.tools.javac.comp.Check.checkHideClashes
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-05 09:43 UTC by Alexander Simon
Modified: 2015-09-03 01:25 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206861


Attachments
stacktrace (3.78 KB, text/plain)
2014-02-05 09:43 UTC, Alexander Simon
Details
stacktrace (2.08 KB, text/plain)
2014-11-23 20:04 UTC, markiewb
Details
stacktrace (2.54 KB, text/plain)
2015-04-09 15:51 UTC, Alexander Simon
Details
stacktrace (7.30 KB, text/plain)
2015-05-23 04:36 UTC, _ tboudreau
Details
stacktrace (2.46 KB, text/plain)
2015-07-19 23:16 UTC, alied
Details
stacktrace (4.23 KB, text/plain)
2015-08-19 12:52 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2014-02-05 09:43:34 UTC
Build: NetBeans IDE Dev (Build 20140203-7c5a1816bfeb)
VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: SunOS

User Comments:
alexvsimon: build project in console

GUEST: I opened a class in the editor by clicking on a line in a stack trace. But I've seen the same NullPointer when opening a project so it seems related to some class scanning rather than any action in the IDE.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Check.checkHideClashes(Check.java:2492)
   at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:919)
   at org.netbeans.lib.nbjavac.services.NBAttr.visitMethodDef(NBAttr.java:76)
   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:602)
   at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:671)
Comment 1 Alexander Simon 2014-02-05 09:43:35 UTC
Created attachment 144819 [details]
stacktrace
Comment 2 markiewb 2014-11-23 20:04:03 UTC
Created attachment 150644 [details]
stacktrace

Compiled some JDK7 NB8.0.2(?) code with JDK8 (accidently by providing a wrong path in property nbjdk.home in ~/.nbbuild.properties, NBs ignores the property and uses the default JDK8)
Comment 3 Exceptions Reporter 2015-02-06 14:48:22 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206861
Comment 4 Exceptions Reporter 2015-03-30 13:24:31 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206861
Comment 5 Alexander Simon 2015-04-09 15:51:30 UTC
Created attachment 153116 [details]
stacktrace

do refactoring
Comment 6 _ tboudreau 2015-05-23 04:36:44 UTC
Created attachment 153826 [details]
stacktrace

Referencing an annotation-processor-generated class from another project..
Comment 7 alied 2015-07-19 23:16:36 UTC
Created attachment 154714 [details]
stacktrace

editing an OSGI activator
Comment 8 Vladimir Voskresensky 2015-08-19 12:52:28 UTC
Created attachment 155451 [details]
stacktrace

FindUsages during clean&build
Comment 9 Exceptions Reporter 2015-08-19 12:52:35 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206861
Comment 11 Quality Engineering 2015-09-03 01:25:10 UTC
Integrated into 'main-silver', will be available in build *201509030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/14e8f7ad1e4b
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #241425, #254332, #254333, and #254875 - fixed.