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 256995 - NullPointerException at com.sun.tools.javac.comp.Resolve.findType
Summary: NullPointerException at com.sun.tools.javac.comp.Resolve.findType
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 257903 258003 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-05 01:30 UTC by _ tboudreau
Modified: 2016-03-25 02:47 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221525


Attachments
stacktrace (4.34 KB, text/plain)
2015-12-05 01:30 UTC, _ tboudreau
Details
stacktrace (6.76 KB, text/plain)
2016-01-14 08:24 UTC, Ondrej Vrabec
Details
stacktrace (5.37 KB, text/plain)
2016-02-01 14:57 UTC, muellermi
Details
stacktrace (7.02 KB, text/plain)
2016-02-10 21:10 UTC, wshackleAtGmail
Details
stacktrace (5.93 KB, text/plain)
2016-02-11 11:13 UTC, Alexander Simon
Details
stacktrace (5.20 KB, text/plain)
2016-03-04 13:38 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2015-12-05 01:30:01 UTC
Build: NetBeans IDE Dev (Build NetBeans-911-on-20151204)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Mac OS X

User Comments:
tboudreau: Updated to a JDK-8 build of NetBeans;  seeing classes with used imports the editor thinks are unused.  Project uses Maven antlr task, FWIW.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Resolve.findType(Resolve.java:2058)
   at com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:2125)
   at com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:2352)
   at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:3493)
   at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2194)
   at com.sun.tools.javac.comp.Attr$ResultInfo.attr(Attr.java:494)
Comment 1 _ tboudreau 2015-12-05 01:30:04 UTC
Created attachment 157676 [details]
stacktrace
Comment 2 Ondrej Vrabec 2016-01-14 08:24:38 UTC
Created attachment 158123 [details]
stacktrace

git reset --hard in commandline that removed merge conflicts in a file.
Switched back to the file in NetBeans.
Comment 3 Exceptions Reporter 2016-01-14 08:24:44 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=221525
Comment 4 muellermi 2016-02-01 14:57:43 UTC
Created attachment 158339 [details]
stacktrace

Typed ctrl+space after classname + dot.
This is the sam place where report 808578 / bug 257610 happened
Comment 5 wshackleAtGmail 2016-02-10 21:10:48 UTC
Created attachment 158451 [details]
stacktrace

editing java source
Comment 6 Alexander Simon 2016-02-11 11:13:48 UTC
Created attachment 158460 [details]
stacktrace

debug IDE
Comment 7 muellermi 2016-03-04 13:38:23 UTC
Created attachment 158742 [details]
stacktrace

ctrl space to invoke autocompletion
Comment 8 Dusan Balek 2016-03-22 15:16:48 UTC
*** Bug 257903 has been marked as a duplicate of this bug. ***
Comment 9 Dusan Balek 2016-03-22 15:17:25 UTC
*** Bug 258003 has been marked as a duplicate of this bug. ***
Comment 11 Quality Engineering 2016-03-25 02:47:51 UTC
Integrated into 'main-silver', will be available in build *201603250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/db6e04800cea
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #256995 - NullPointerException at com.sun.tools.javac.comp.Resolve.findType - fixed.