This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When given a XML file with an illegal or unknown encoding XmlFileEncodingQueryImpl throws IllegalCharsetNameException or UnsupportedCharsetException instead of just calling FileEncodingQueryImplementation.throwException and letting the proxy charset delegate to another charset.
Created attachment 58066 [details] Proposed fix
Since I need this in order to fix another P2 issue, I want to commit this tomorrow. Tomasi and Samaresh, can you please review the patch? Thanks.
I see that you're using the same code in two places. Please make a private method and use it instead. Other than that, it looks good.
Doesn't seem doable. The code is in two different classes (XMLDecoder and XMLEncoder) with no common ancestor, still the code needs to access the buffer field.
Fixed in a32f2472d04f.