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 202895

Summary: NullPointerException at com.sun.tools.javac.model.JavacTypes.validateTypeNotIn
Product: javaee Reporter: Jiri Skrivanek <jskrivanek>
Component: CDIAssignee: Denis Anisimov <ads>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 181518
Attachments: stacktrace

Description Jiri Skrivanek 2011-09-30 14:27:49 UTC
Build: NetBeans IDE Dev (Build 201109280601)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows XP

User Comments:
jskrivanek: To reproduce:
- create java web project with Context and Dependency Injection
- create new java class
- type
    @Inject @Any Event e;
- fix imports, click CDI Event editor hint and it thows exception
- if there is Event<SomeType> it doesn't throw exception




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.model.JavacTypes.validateTypeNotIn(JavacTypes.java:290)
   at com.sun.tools.javac.model.JavacTypes.isAssignable(JavacTypes.java:97)
   at org.netbeans.modules.web.beans.impl.model.EventInjectionPointLogic.isAssignable(EventInjectionPointLogic.java:418)
   at org.netbeans.modules.web.beans.impl.model.EventInjectionPointLogic.filterParametersByType(EventInjectionPointLogic.java:379)
   at org.netbeans.modules.web.beans.impl.model.EventInjectionPointLogic.getObservers(EventInjectionPointLogic.java:151)
   at org.netbeans.modules.web.beans.impl.model.WebBeansModelProviderImpl.getObservers(WebBeansModelProviderImpl.java:82)
Comment 1 Jiri Skrivanek 2011-09-30 14:27:54 UTC
Created attachment 111364 [details]
stacktrace
Comment 2 Denis Anisimov 2011-09-30 15:36:22 UTC
web-main#389657b9f588
Comment 3 Quality Engineering 2011-10-01 14:06:21 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/389657b9f588
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#202895 - NullPointerException at com.sun.tools.javac.model.JavacTypes.validateTypeNotIn