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.
Summary: | Web Beans error annotation for non CDI enabled modules | ||
---|---|---|---|
Product: | javaee | Reporter: | Jindrich Sedek <jsedek> |
Component: | JSF Editor | Assignee: | Denis Anisimov <ads> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ads, dkonecny |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
URL: | http://relation.to/Bloggers/WhyIsBeansxmlRequiredInCDI | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jindrich Sedek
2010-01-27 08:42:44 UTC
I recon that this is a problem of the web.beans module which mark classes as web beans when it sees a class with the @Named annotation on the project's classpath. It does so regardless if modules from the classpath has the CDI enabled or not. I'm not sure if Denis works for us or not anymore, but if he cannot fix the issue I may give it a try by some sort of classpath filtering. Feel free to pass webbeans(CDI) problems to me - Denis is not working on it anymore. I agree with Jindra that code completion should list beans even from modules which are not CDI enabled. Could we mark them differently in code completion (grey?) to indicate the difference? Also using such a bean should add editor hint saying "<bean-name> will not be available in runtime because CDI is disabled for <something.jar>" and there should be autofix option "Enable CDI for <something.jar>" which would just create beans.xml. Do you agree Marek? Should I do it or would you prefer do it all or some parts yourself? I'm not very familiar with JSF editor implementation/code completion but I can give it a try. Feel free to do it Davide. I can help you with the editor part if you want. If you extend the web beans API or create some reasonable utility method which can be used for mapping the web beans classes to the source jars I can do the editor part quickly. I can do it all if you are busy anyway but the truth is that I'm currently fiddling with the css/html refactoring so I would do it later. changeset: 186107:2d3ea0c3acaf Integrated into 'main-golden', will be available in build *201101140000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2d3ea0c3acaf User: Denis Anisimov <ads@netbeans.org> Log: Fixes for BZ#179923 - Web Beans error annotation for non CDI enabled modules and BZ#194119 - java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification |