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 238802 - NullPointerException at com.sun.tools.javac.code.Types$DescriptorCache.findDescriptorInternal
Summary: NullPointerException at com.sun.tools.javac.code.Types$DescriptorCache.findDe...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-26 08:31 UTC by Jiri Prox
Modified: 2016-07-07 07:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205575


Attachments
stacktrace (3.50 KB, text/plain)
2013-11-26 08:31 UTC, Jiri Prox
Details
stacktrace (8.08 KB, text/plain)
2014-01-11 21:42 UTC, adithyank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2013-11-26 08:31:18 UTC
Build: NetBeans IDE Dev (Build 20131125-d473cd33358e)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b49, Java(TM) SE Runtime Environment, 1.8.0-ea-b107
OS: Windows 7

User Comments:
jiriprox: NPE when editing following code:

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication224;

import static javaapplication224.SubClass.test;
import static javaapplication224.SuperClass.test;
/**
 *
 * @author jprox
 */
public class Hello implements Comparable<Hello>{
    
    int value;
    
    public static void main(String[] args) {
        test();
    }

    public Hello() {
    }

    public Hello(int x) {
        this();
    }

    public Hello(String xx) {
        this(1);
        Comparable<String> c = new Comparable<String>() {

            public int compareTo(String input) {
                if(input > this.) return 1;
                return -1;
            }
        };
        }
    }
    
    
    
}




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.code.Types$DescriptorCache.findDescriptorInternal(Types.java:416)
   at com.sun.tools.javac.code.Types$DescriptorCache.get(Types.java:396)
   at com.sun.tools.javac.code.Types.findDescriptorSymbol(Types.java:564)
   at com.sun.tools.javac.comp.Check.checkFunctionalInterface(Check.java:3605)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4405)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4333)
Comment 1 Jiri Prox 2013-11-26 08:31:20 UTC
Created attachment 142576 [details]
stacktrace
Comment 2 adithyank 2014-01-11 21:42:45 UTC
Created attachment 143843 [details]
stacktrace

during code completion
Comment 3 Exceptions Reporter 2014-04-01 23:25:11 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=205575
Comment 4 Martin Balin 2016-07-07 07:16:17 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss