Monday, 26 August 2013

How to avoid this warning:com.sun.org.apache.xerces.internal.parsers.SAXParser is Sun proprietary API and may be removed in a future...

How to avoid this
warning:com.sun.org.apache.xerces.internal.parsers.SAXParser is Sun
proprietary API and may be removed in a future...

Recently upgraded from JDK1.5 to JDK1.6, during compilation below warning
is thrown.
import com.sun.org.apache.xerces.internal.parsers.SAXParser; ...
org.xml.sax.XMLReader l_oParser = new SAXParser();
..
During compilation - [javac]
C:\Users\project\src\com\test\ecommerce\services\paymentservices\authorization\HistoryTransactionResponseParser.java:14:
warning: com.sun.org.apache.xerces.internal.parsers.SAXParser is Sun
proprietary API and may be removed in a future release [javac] import
com.sun.org.apache.xerces.internal.parsers.SAXParser;
This warning is not shown when compiling with JDK1.5.

No comments:

Post a Comment