RFR (JDK 12/java.base) 8213325: (props) Properties.loadFromXML does not fully comply with the spec

Joe Wang huizhe.wang at oracle.com
Thu Nov 15 20:26:42 UTC 2018

Hi Daniel,

I deleted the endDTD method. It could have been used to signal the end 
of DTD parsing and therefore serve as a validation point. However, the 
parser would have thrown Exceptions if a DTD parsing wasn't completed 
properly, that seems to make an endDTD check unnecessary, at least as 
the current parser impl goes.

The small footprint parser has its problems, for example, not providing 
specific error messages when things go wrong. But since this is a 
Properties usage only, it serves the purpose well enough.

Updated webrev:


Best regards,

On 11/14/18, 2:32 AM, Daniel Fuchs wrote:
> Hi Joe,
> I do not see where the new DTDHandler::endDTD methos is called.
> Is that an oversight or is there more magic?
> best regards,
> -- daniel
> On 14/11/2018 05:18, Joe Wang wrote:
>> Hi,
>> Please review a patch to bring the small footprint parser for 
>> java.util.Properties compliant with the specification.
>> JBS: https://bugs.openjdk.java.net/browse/JDK-8213325
>> webrevs: http://cr.openjdk.java.net/~joehw/jdk12/8213325/webrev/
>> Thanks,
>> Joe

More information about the core-libs-dev mailing list