You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by "Henning, Mark - AES" <Ma...@itt.com> on 2008/09/05 22:48:12 UTC

javasource 1.5 flag causing problems, Please help

I am trying to build a JAR file using 1.5 source with generics.
The schema I am trying to compile is CityGML-NoiseADE-0-5-0.xsd.
This schema can be found in the CityGML 1.0.0 distribution (citygml.org)

Below is the session to show where the problem exists.  I'm only going to show a few entries to make the point:

C:\TEMP\cityGML\src\main\xsd\NoiseADE>scomp -version
Apache Software Foundation, org.apache.xmlbeans.XmlBeans version 2.4.0-r670094
C:\TEMP\cityGML\src\main\xsd\NoiseADE>validate CityGML-NoiseADE-0-5-0.xsd
C:\TEMP\cityGML\src\main\xsd\NoiseADE>scomp -out NoiseADE.jar -mx 1024M -debug CityGML-NoiseADE-0-5-0.xsd
Time to build schema type system: 1.641 seconds
Time to generate code: 27.125 seconds
Time to compile code: 36.515 seconds
Compiled types to: NoiseADE.jar
C:\TEMP\cityGML\src\main\xsd\NoiseADE>scomp -out NoiseADE.jar -mx 1024M -debug -javasource 1.5 CityGML-NoiseADE-0-5-0.xs
d
Time to build schema type system: 1.609 seconds
Time to generate code: 31.141 seconds
C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\LineStringType.java:208: getPosList() is already def
ined in net.opengis.gml.LineStringType
    net.opengis.gml.DirectPositionListType getPosList();
                                           ^
C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\LinearRingType.java:162: getPosList() is already def
ined in net.opengis.gml.LinearRingType
    net.opengis.gml.DirectPositionListType getPosList();
                                           ^
C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\impl\LinearRingTypeImpl.java:508: getPosList() is al
ready defined in net.opengis.gml.impl.LinearRingTypeImpl
    public net.opengis.gml.DirectPositionListType getPosList()
                                                  ^
C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\impl\LineStringTypeImpl.java:664: getPosList() is al
ready defined in net.opengis.gml.impl.LineStringTypeImpl
    public net.opengis.gml.DirectPositionListType getPosList()
                                                  ^
C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\LineStringSegmentType.java:162: getPosList() is alre
ady defined in net.opengis.gml.LineStringSegmentType
    net.opengis.gml.DirectPositionListType getPosList();
                                           ^
C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\impl\LineStringSegmentTypeImpl.java:508: getPosList(
) is already defined in net.opengis.gml.impl.LineStringSegmentTypeImpl
    public net.opengis.gml.DirectPositionListType getPosList()
                                                  ^
C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\ArcStringType.java:162: getPosList() is already defi
ned in net.opengis.gml.ArcStringType
    net.opengis.gml.DirectPositionListType getPosList();
                                           ^
C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\impl\ArcStringTypeImpl.java:510: getPosList() is alr
eady defined in net.opengis.gml.impl.ArcStringTypeImpl
    public net.opengis.gml.DirectPositionListType getPosList()
                                                  ^
C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\ArcStringByBulgeType.java:162: getPosList() is alrea
dy defined in net.opengis.gml.ArcStringByBulgeType
    net.opengis.gml.DirectPositionListType getPosList();



________________________________
This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.

RE: javasource 1.5 flag causing problems, Please help

Posted by Radu Preotiuc-Pietro <ra...@oracle.com>.
Hi Mark,
 
I hope you have seen this post by Christopher Hunt "http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200809.mbox/ajax/<27...@internode.on.net>", posted two days before yours and which seems to contain the solution to your problem.
 
Radu


________________________________

	From: Henning, Mark - AES [mailto:Mark.Henning@itt.com] 
	Sent: Friday, September 05, 2008 1:48 PM
	To: user@xmlbeans.apache.org
	Subject: javasource 1.5 flag causing problems, Please help
	
	

	I am trying to build a JAR file using 1.5 source with generics.

	The schema I am trying to compile is CityGML-NoiseADE-0-5-0.xsd.

	This schema can be found in the CityGML 1.0.0 distribution (citygml.org)

	 

	Below is the session to show where the problem exists.  I'm only going to show a few entries to make the point:

	 

	C:\TEMP\cityGML\src\main\xsd\NoiseADE>scomp -version

	Apache Software Foundation, org.apache.xmlbeans.XmlBeans version 2.4.0-r670094

	C:\TEMP\cityGML\src\main\xsd\NoiseADE>validate CityGML-NoiseADE-0-5-0.xsd

	C:\TEMP\cityGML\src\main\xsd\NoiseADE>scomp -out NoiseADE.jar -mx 1024M -debug CityGML-NoiseADE-0-5-0.xsd

	Time to build schema type system: 1.641 seconds

	Time to generate code: 27.125 seconds

	Time to compile code: 36.515 seconds

	Compiled types to: NoiseADE.jar

	C:\TEMP\cityGML\src\main\xsd\NoiseADE>scomp -out NoiseADE.jar -mx 1024M -debug -javasource 1.5 CityGML-NoiseADE-0-5-0.xs

	d

	Time to build schema type system: 1.609 seconds

	Time to generate code: 31.141 seconds

	C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\LineStringType.java:208: getPosList() is already def

	ined in net.opengis.gml.LineStringType

	    net.opengis.gml.DirectPositionListType getPosList();

	                                           ^

	C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\LinearRingType.java:162: getPosList() is already def

	ined in net.opengis.gml.LinearRingType

	    net.opengis.gml.DirectPositionListType getPosList();

	                                           ^

	C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\impl\LinearRingTypeImpl.java:508: getPosList() is al

	ready defined in net.opengis.gml.impl.LinearRingTypeImpl

	    public net.opengis.gml.DirectPositionListType getPosList()

	                                                  ^

	C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\impl\LineStringTypeImpl.java:664: getPosList() is al

	ready defined in net.opengis.gml.impl.LineStringTypeImpl

	    public net.opengis.gml.DirectPositionListType getPosList()

	                                                  ^

	C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\LineStringSegmentType.java:162: getPosList() is alre

	ady defined in net.opengis.gml.LineStringSegmentType

	    net.opengis.gml.DirectPositionListType getPosList();

	                                           ^

	C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\impl\LineStringSegmentTypeImpl.java:508: getPosList(

	) is already defined in net.opengis.gml.impl.LineStringSegmentTypeImpl

	    public net.opengis.gml.DirectPositionListType getPosList()

	                                                  ^

	C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\ArcStringType.java:162: getPosList() is already defi

	ned in net.opengis.gml.ArcStringType

	    net.opengis.gml.DirectPositionListType getPosList();

	                                           ^

	C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\impl\ArcStringTypeImpl.java:510: getPosList() is alr

	eady defined in net.opengis.gml.impl.ArcStringTypeImpl

	    public net.opengis.gml.DirectPositionListType getPosList()

	                                                  ^

	C:\DOCUME~1\HEN300~1\LOCALS~1\Temp\xbean17195.d\src\net\opengis\gml\ArcStringByBulgeType.java:162: getPosList() is alrea

	dy defined in net.opengis.gml.ArcStringByBulgeType

	    net.opengis.gml.DirectPositionListType getPosList();

	 

	 


________________________________

	This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
	Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.
	


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org