JDK-8229005 : Transformer treats invalid encoding as a warning
  • Type: Bug
  • Component: xml
  • Sub-Component: javax.xml.transform
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2019-08-01
  • Updated: 2019-08-01
Related Reports
Relates :  
Description
The Transformer issues a warning upon getting an invalid encoding, and moves on to use the default (UTF-8). It had been an issue for java.util.Properties since it required an UnsupportedEncodingException to be thrown. Since then, Properties has resolved the issue outside JAXP. 

For JAXP, this issue remains. At some point, we may want to change the behavior to throw an Exception.