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 235218 - NullPointerException at com.sun.tools.javac.comp.MemberEnter$Synthesizer.visit
Summary: NullPointerException at com.sun.tools.javac.comp.MemberEnter$Synthesizer.visit
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 237223 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-29 08:52 UTC by muellermi
Modified: 2015-10-21 12:42 UTC (History)
14 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 196774


Attachments
stacktrace (3.26 KB, text/plain)
2013-08-29 08:53 UTC, muellermi
Details
stacktrace (3.26 KB, text/plain)
2013-10-15 10:52 UTC, Jan Lahoda
Details
stacktrace (3.19 KB, text/plain)
2014-01-26 20:16 UTC, lopsided98
Details
stacktrace (3.19 KB, text/plain)
2014-03-02 08:33 UTC, themanwhosold
Details
stacktrace (3.19 KB, text/plain)
2014-05-28 12:21 UTC, Jiri Prox
Details
stacktrace (3.26 KB, text/plain)
2014-11-18 08:36 UTC, J Bachorik
Details
stacktrace (1.45 KB, text/plain)
2014-12-19 11:29 UTC, Andrew Krasny
Details
stacktrace (7.22 KB, text/plain)
2015-01-12 10:51 UTC, Maksim Khramov
Details
stacktrace (6.93 KB, text/plain)
2015-08-20 09:16 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2013-08-29 08:52:57 UTC
Build: NetBeans IDE Dev (Build 201308290001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 8

User Comments:
GUEST: It was taking too long to scan in the background.  The project is the JDK, so is big.

muellermi: open file in editor by doble click in search results

muellermi: open file in editor (by double click on project tree)




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.MemberEnter$Synthesizer.visit(MemberEnter.java:1583)
   at com.sun.tools.javac.comp.MemberEnter$7.getModelType(MemberEnter.java:1565)
   at com.sun.tools.javac.code.Symbol$ClassSymbol.getSuperclass(Symbol.java:1054)
   at com.sun.tools.javac.code.Symbol$ClassSymbol.getSuperclass(Symbol.java:886)
   at org.netbeans.modules.java.hints.ExportNonAccessibleElement.visitType(ExportNonAccessibleElement.java:222)
   at org.netbeans.modules.java.hints.ExportNonAccessibleElement.visitType(ExportNonAccessibleElement.java:92)
Comment 1 muellermi 2013-08-29 08:53:49 UTC
Created attachment 139411 [details]
stacktrace
Comment 2 Jan Lahoda 2013-10-15 10:48:35 UTC
My comment at the following link may be useful:
http://statistics.netbeans.org/analytics/exception.do?id=696223
Comment 3 Jan Lahoda 2013-10-15 10:52:15 UTC
Created attachment 141091 [details]
stacktrace

My current source is as follows, but the key point probably is that the project's JDK currently does not have any rt.jar. I.e. no java.lang.

package test;

public enum Test {

    VALUE {
        @Override
        void doSomething() {
            method("VALUE", 42);
        }
    };

    abstract void doSomething();

    public static void method(String value) {
        method(value, 0);
    }

    private static void method(String value, int number) {
    }
}
Comment 4 Exceptions Reporter 2013-10-15 10:52:19 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=196774
Comment 5 lopsided98 2014-01-26 20:16:09 UTC
Created attachment 144383 [details]
stacktrace

Typing
Comment 6 themanwhosold 2014-03-02 08:33:35 UTC
Created attachment 145698 [details]
stacktrace

The problem occured right after Startup
Comment 7 Jiri Prox 2014-05-28 12:21:40 UTC
Created attachment 147479 [details]
stacktrace

NPE when opening enum class
Comment 8 Exceptions Reporter 2014-11-10 12:24:43 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=196774
Comment 9 J Bachorik 2014-11-18 08:36:56 UTC
Created attachment 150545 [details]
stacktrace

opening a project
Comment 10 Dusan Balek 2014-11-28 09:18:33 UTC
*** Bug 237223 has been marked as a duplicate of this bug. ***
Comment 11 Andrew Krasny 2014-12-19 11:29:28 UTC
Created attachment 151207 [details]
stacktrace

opened a nb module and just clicked on a java file in the Projects tab
Comment 12 Maksim Khramov 2015-01-12 10:51:32 UTC
Created attachment 151453 [details]
stacktrace

Open java file from project when target JDK is missed
Comment 13 _ gtzabari 2015-04-10 21:30:55 UTC
One way to reproduce this is to install Netbeans under JDK9. Because Netbeans won't be able to find rt.jar, you will end up with this stack-trace.
Comment 14 muellermi 2015-08-20 09:16:41 UTC
Created attachment 155491 [details]
stacktrace

opening file in editor