Java – I received this warning: com sun. org. apache. xml. internal. serialize. Outputformat is a proprietary sun API and may be removed in future releases

My code is

OutputFormat wOf = new OutputFormat( "XML","ISO-8859-1",true );

Help me solve this warning

Thank you in advance

Solution

One solution is not to use this class

Another solution is to ignore the warning Looking at this course, I suspect this is the only viable solution... If you insist on using the sun XML stack

(fwiw - this seems to be an error of sun in integrating Apache XML stack into Java se. This class should be in different packages and will not trigger this warning. The original Apache version is obviously not "internal use". Another explanation is that this is not an error, but a problem that Oracle intends to solve in future versions by providing better APIs to control XML formatting.)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>