[
https://issues.jboss.org/browse/SHRINKDESC-127?page=com.atlassian.jira.pl...
]
Ralf Battenfeld commented on SHRINKDESC-127:
--------------------------------------------
Hi Jesper
I have problems to find a suitable API for the fixed attributes. So far, I added the
constant fields as you have suggested:
final ApplicationDescriptor app6Descr = create();
app6Descr.version(ApplicationDescriptor.VERSION);
The fixed attributes are defined in the corresponding descriptor interfaces or other
classes. I am not sure that further actions are a good idea. The only thing I can imagine
is that we don't allow to enter a value for such fixed attributes:
app6Descr.version(); // set automatically the correct version
Let me know your opinions.
Ralf
Fixed values doesn't get applied as constant value
--------------------------------------------------
Key: SHRINKDESC-127
URL:
https://issues.jboss.org/browse/SHRINKDESC-127
Project: ShrinkWrap Descriptors
Issue Type: Bug
Components: metadata-parser
Affects Versions: 2.0.0-alpha-3
Reporter: Jesper Pedersen
Assignee: Ralf Battenfeld
Fix For: 2.0.0-alpha-5
The following
{noformat}
<xsd:attribute name="version"
type="j2ee:dewey-versionType"
fixed="1.5"
use="required">
{noformat}
definition doesn't define "version" as being a constant in the generated
code
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira