[
https://jira.jboss.org/browse/SHRINKDESC-20?page=com.atlassian.jira.plugi...
]
Andy Gibson commented on SHRINKDESC-20:
---------------------------------------
I've started looking at this, the JAXB unmarshaller fails on an empty stream when
overall, the method should return an empty (newly created) descriptor.
My proposal is to add functionality to look for an empty stream and if it is empty, create
a new descriptor suitable for the model and return that instead. Non-empty streams will be
passed off to the XML unmarshaller as is the current behavior.
As it stands, this would be the behavior for all descriptor types, not just CDI beans.
BeansDescriptor should not fail if stream is empty
--------------------------------------------------
Key: SHRINKDESC-20
URL:
https://jira.jboss.org/browse/SHRINKDESC-20
Project: ShrinkWrap Descriptors
Issue Type: Feature Request
Components: api
Affects Versions: 1.0.0-alpha-1
Reporter: Dan Allen
beans.xml is permitted to be empty, in which case it simply serves to mark an archive as
a bean archive. The BeansDescriptor should not choke if it tries to load an empty file.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira