Better whitespace tolerance in AnnotationCreator
------------------------------------------------
Key: JBMDR-49
URL:
https://jira.jboss.org/jira/browse/JBMDR-49
Project: JBoss MetaData Repository
Issue Type: Feature Request
Components: Annotations
Affects Versions: JBossMDR.2.0.0.GA
Reporter: Scott M Stark
If I attempt to deploy an mc bean with an annotation that spans multiple lines in the
jboss-beans.xml descriptor, for example:
<bean name="JNDIBasedSecurityRegistration"
class="org.jboss.security.integration.JNDIBasedSecurityRegistration">
<annotation>(a)org.jboss.managed.api.annotation.ManagementObject(name="JNDIBasedSecurityRegistration",
componentType=(a)org.jboss.managed.api.annotation.ManagementComponent(type="MCBean",
subtype="Security"))</annotation>
<property name="policyRegistration"><inject
bean="JBossSecurityPolicyRegistration" /></property>
<property name="securityManagement"><inject
bean="JNDIBasedSecurityManagement" /></property>
</bean>
The deployment fails with:
Caused by: java.lang.RuntimeException: Error getting root expression
@org.jboss.managed.api.annotation.ManagementObject(name="JNDIBasedSecurityRegistration",
componentType=@ManagementComponent(type="MCBean",
subtype="Security"))
at
org.jboss.annotation.factory.AnnotationCreator.getRootExpr(AnnotationCreator.java:361)
at
org.jboss.annotation.factory.AnnotationCreator.getRootExpr(AnnotationCreator.java:330)
at
org.jboss.annotation.factory.AnnotationCreator.createAnnotation(AnnotationCreator.java:449)
at
org.jboss.beans.metadata.plugins.AbstractAnnotationMetaData.getAnnotationInstance(AbstractAnnotationMetaData.java:119)
... 42 more
Caused by: org.jboss.annotation.factory.ast.ParseException: Encountered "\n" at
line 1, column 89.
We should be considering whitespace as significant in the grammar.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira