Hello,
When compiling generated XmlBeans classes, we always get deprecation
warnings such as the following:
[javacwithoverlap]
C:\prosrm\build\tmp\src\com\prosrm\ui\web\datainterface\xmlbeans\impl\Dr
illdownXmlBeanImpl.java:146: warning: [deprecation]
set(java.lang.String) in org.apache.xmlbeans.SimpleValue has been
deprecated
[javacwithoverlap] public static class DimLevelImpl extends
org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
com.prosrm.ui.web.datainterface
.xmlbeans.DrilldownXmlBean.DimLevel
[javacwithoverlap] ^
[javacwithoverlap]
C:\prosrm\build\tmp\src\com\prosrm\ui\web\datainterface\xmlbeans\impl\Dr
illdownXmlBeanImpl.java:146: warning: [deprecation] objectValue() in
org.apache.xmlbeans.SimpleValue has been deprecated
[javacwithoverlap] public static class DimLevelImpl extends
org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
com.prosrm.ui.web.datainterface
.xmlbeans.DrilldownXmlBean.DimLevel
[javacwithoverlap] ^
It seems that most if not all deprecation warnings are generated from
internal xmlbeans class org.apache.xmlbeans.SimpleValue.
We tried with XmlBeans 2.2.0 and setting source generation to java 1.5
(defaults to 1.4). We also tried XmlBeans 2.3.0.
Is there any way (besides turning off deprecation warnings on javac) to
make these go away?
Here is the xsd fragment:
<xsd:complexType name="parameters" mixed="false">
<xsd:annotation>
<xsd:documentation>Data Communication
parameters.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
. . .
<xsd:element name="drilldown" type="comm:drilldown" minOccurs="0"
maxOccurs="1"/>
. . .
<xsd:complexType name="drilldown" mixed="false">
<xsd:annotation>
<xsd:documentation>Data Communication drill down
parameters.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="dimLevel" minOccurs="1" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="column" form="unqualified"
type="xsd:string" use="required"/>
<xsd:attribute name="value" form="unqualified"
type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
Thanks,
Kurt Roy | PROS | Software Architect, Software Development
phone: +1 713-335-8007 | email: [EMAIL PROTECTED]
Save the Date for the 14th Annual PROS Summit * April 20-23, 2008 at the
Hilton Americas Hotel in Houston, Texas * www.prospricing.com
<http://www.prospricing.com/>
The information contained in this email may be confidential and/or legally
privileged. It has been sent for the sole use of the intended recipient(s). If
the reader of this message is not an intended recipient, you are hereby
notified that any unauthorized review, use, disclosure, dissemination,
distribution, or copying of this communication, or any of its contents, is
strictly prohibited. If you have received this communication in error, please
contact the sender by reply email and destroy all copies of the original
message. Thank you