Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 202895 - NullPointerException at com.sun.tools.javac.model.JavacTypes.validateTypeNotIn
NullPointerException at com.sun.tools.javac.model.JavacTypes.validateTypeNotIn
Status: VERIFIED FIXED
Product: javaee
Classification: Unclassified
Component: CDI
7.1
All All
: P3 (vote)
: 7.1
Assigned To: Denis Anisimov
issues@javaee
EXCEPTIONS_REPORT
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo