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 - NullPointerException at com.sun.tools.javac.model.JavacTypes.validateTypeNotIn
Summary: NullPointerException at com.sun.tools.javac.model.JavacTypes.validateTypeNotIn
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 14:27 UTC by Jiri Skrivanek
Modified: 2011-10-03 08:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 181518


Attachments
stacktrace (6.71 KB, text/plain)
2011-09-30 14:27 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
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