Re: RFR [14/java.xml] 7148925: StAXSource causes exceptions to be thrown with certain wellformed XML instances

2019-07-09 Thread Joe Wang




On 7/9/19 3:07 PM, Lance Andersen wrote:

Hi Joe,

Overall, this looks good.


Thanks Lance!


Please add the bug number to the top @bug in the test class.


Added.



I might have defined all of the elements in the DataProvider “xml” in 
separate String objects to make it easier to read, but no big deal and 
does not need changed prior to pushing.


Thanks. I'm going to keep them this way then ;-)  They are small enough.

-Joe





On Jul 9, 2019, at 5:17 PM, Joe Wang > wrote:


Please review a fix for an Exception caused by StAXSource. The fix 
adds code that processes the prolog and misc content as specified by 
the XML specification, and removes the code that made incorrect 
assumption about XML document structure.


https://bugs.openjdk.java.net/browse/JDK-7148925
http://cr.openjdk.java.net/~joehw/jdk14/7148925/webrev/

Thanks,
Joe




Lance 
Andersen| Principal Member of Technical Staff | +1.781.442.2037

Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
lance.ander...@oracle.com 







Re: RFR [14/java.xml] 7148925: StAXSource causes exceptions to be thrown with certain wellformed XML instances

2019-07-09 Thread Lance Andersen
Hi Joe,

Overall, this looks good.

Please add the bug number to the top @bug in the test class.


I might have defined all of the elements in the DataProvider “xml” in separate 
String objects to make it easier to read, but no big deal and does not need 
changed prior to pushing.




> On Jul 9, 2019, at 5:17 PM, Joe Wang  wrote:
> 
> Please review a fix for an Exception caused by StAXSource. The fix adds code 
> that processes the prolog and misc content as specified by the XML 
> specification, and removes the code that made incorrect assumption about XML 
> document structure.
> 
> https://bugs.openjdk.java.net/browse/JDK-7148925
> http://cr.openjdk.java.net/~joehw/jdk14/7148925/webrev/
> 
> Thanks,
> Joe

 
  

 Lance Andersen| 
Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
lance.ander...@oracle.com 





RFR [14/java.xml] 7148925: StAXSource causes exceptions to be thrown with certain wellformed XML instances

2019-07-09 Thread Joe Wang
Please review a fix for an Exception caused by StAXSource. The fix adds 
code that processes the prolog and misc content as specified by the XML 
specification, and removes the code that made incorrect assumption about 
XML document structure.


https://bugs.openjdk.java.net/browse/JDK-7148925
http://cr.openjdk.java.net/~joehw/jdk14/7148925/webrev/

Thanks,
Joe