EXECUTE: Create CDI project
EXECUTE: Create the following class:
package org.test; import javax.decorator.Decorator; import javax.decorator.Delegate; import javax.enterprise.inject.Specializes; import javax.inject.Inject; @Decorator @Specializes public class TestBean2 extends AnyBean{ @Inject @Delegate @AAnnotation String str; public String produce(){ return str; } }
Note, that AnyBean cannot be resolved. It's important to reproduce the issue.
EXECUTE: Save the files. Build the project.
FAILURE: The following exception is thrown in eclipse log:
ava.lang.NullPointerException at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.checkTheOnlySuper(CDICoreValidator.java:2140) at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validateDecorator(CDICoreValidator.java:2080) at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validateBean(CDICoreValidator.java:552) at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validateResource(CDICoreValidator.java:439) at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validate(CDICoreValidator.java:316) at org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager.validate(ValidatorManager.java:221) at org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager.validateInJob(ValidatorManager.java:94) at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
- is cloned by
-
JBIDE-7686 Quick fix for "Interceptor/Decorator is annotated @Specializes [JSR-299 §4.3.1]" error markers
- Closed