[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Created: (XMLBEANS-225) JDK1.5 generated code fails to compile if you have both a List of XXX
From: "Lawrence Jones (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2005-11-17 0:34:31
Message-ID: 2093290471.1132187671098.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]
JDK1.5 generated code fails to compile if you have both a List of XXX and XXXList \
elements
------------------------------------------------------------------------------------------
Key: XMLBEANS-225
URL: http://issues.apache.org/jira/browse/XMLBEANS-225
Project: XMLBeans
Type: Bug
Components: Binding
Versions: Version 2.1
Environment: All
Reporter: Lawrence Jones
Priority: Minor
Fix For: TBD
Using the -javasource 1.5 flag to scomp, the following schema (for example) will \
generate code which will not be able to compile because it generates 2 methods both \
called getPosList():
<?xml version="1.0" encoding="ISO-8859-1"?>
<schema targetNamespace="http://www.opengis.net/gml" \
xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" \
xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" > \
<complexType name="LineStringType"> <sequence>
<choice>
<choice minOccurs="2" maxOccurs="unbounded">
<element ref="gml:pos"/>
</choice>
<element ref="gml:posList"/>
</choice>
</sequence>
</complexType>
<element name="pos" type="xsd:string" />
<element name="posList" type="xsd:string" />
</schema>
Currently the user then has the following options: 1) change the schema (may not be \
available), 2) change the generated code (hacky), or 3) remove the -javasource flag \
(should not be necessary).
Perhaps it would be possible to add an option to enable the user to override the \
default string "List" that gets added to the JDK 1.5 getter when there is a list \
type? (See SchemaTypeCodePrinter lines 1102 and 1125).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic