[
https://jira.codehaus.org/browse/JIBX-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283815#comment-283815
]
Klaus Claszen commented on JIBX-466:
------------------------------------
additional description:
The {{valuedAdded}} method belongs to the
{{org.jibx.schema.codegen.extend.ClassDecorator}} interface which has to be
implemented by custom class decorators.
> upperCase/lowerCase problem in code generation
> ----------------------------------------------
>
> Key: JIBX-466
> URL: https://jira.codehaus.org/browse/JIBX-466
> Project: JiBX
> Issue Type: Bug
> Components: CodeGen
> Affects Versions: JiBX 1.2.3
> Reporter: Klaus Claszen
> Priority: Minor
>
> When generating code from schema elements with a name that has only one
> character like
> {code}
> <xs:complexType name="fooBar">
> <xs:sequence>
> <xs:element name="x" type="xs:double" minOccurs="0" >
> </xs:sequence>
> </xs:complexType>
> {code}
> the generated class member will be uppercased.
> {code}
> private Double X;
> {code}
> That causes trouble when extending the CodeGeneration because
> {code}
> public void valueAdded(String basename, boolean collect, String type,
> FieldDeclaration field, MethodDeclaration getmeth,
> MethodDeclaration setmeth, String descript, IClassHolder holder)
> {code}
> will get the original lowercase basename which will not be a valid member of
> the generated class.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs