Teimatini Marin created OWB-1288:
------------------------------------
Summary: Exception thrown when ENUM is used in a bean
Key: OWB-1288
URL: https://issues.apache.org/jira/browse/OWB-1288
Project: OpenWebBeans
Issue Type: Bug
Affects Versions: 2.0.7
Reporter: Teimatini Marin
If a bean declares a Enumeration, the exception shown below is thrown at
initialization time.
{code}
public class ABCDStrategy {
public enum Status {
STARTING,
WARMING,
RUNNING
}
@Inject
Logger logger;
@Inject
ModelFactory modelFactory;
...
}
{code}
{code}
Exception in thread "main"
org.apache.webbeans.exception.WebBeansDeploymentException:
java.lang.UnsupportedOperationException
at
[email protected]/org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:157)
at
[email protected]/org.apache.webbeans.lifecycle.AbstractLifeCycle.bootstrapApplication(AbstractLifeCycle.java:131)
at
[email protected]/org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:103)
at
[email protected]/org.apache.openwebbeans.se.OWBInitializer.newContainer(OWBInitializer.java:107)
at
[email protected]/org.apache.openwebbeans.se.OWBInitializer.initialize(OWBInitializer.java:91)
at
[email protected]/org.apache.openwebbeans.se.SeInitializerFacade.initialize(SeInitializerFacade.java:137)
at redwine.sensor/com.beuwa.redwine.sensor.Main.main(Main.java:11)
Caused by: java.lang.UnsupportedOperationException
at
[email protected]/org.apache.xbean.asm6.ClassVisitor.visitNestHostExperimental(ClassVisitor.java:158)
at
[email protected]/org.apache.xbean.asm6.ClassReader.accept(ClassReader.java:541)
at
[email protected]/org.apache.xbean.asm6.ClassReader.accept(ClassReader.java:391)
at
[email protected]/org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1168)
at
[email protected]/org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:145)
at
[email protected]/org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:158)
at
[email protected]/org.apache.webbeans.corespi.scanner.xbean.OwbAnnotationFinder.<init>(OwbAnnotationFinder.java:37)
at
[email protected]/org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.initFinder(AbstractMetaDataDiscovery.java:114)
at
[email protected]/org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:153)
... 6 more
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)