RFR: 8276141: XPathFactory set/getProperty method [v5]

Joe Wang joehw at openjdk.java.net
Fri Nov 5 21:46:39 UTC 2021


On Fri, 5 Nov 2021 20:46:42 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Joe Wang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Exception: changed from XPathFactoryConfigurationException to IllegalArgumentException
>
> src/java.xml/share/classes/javax/xml/xpath/XPathFactory.java line 425:
> 
>> 423:         }
>> 424:         throw new UnsupportedOperationException("not implemented");
>> 425:     }
> 
> Changing it to throw IAE looks much better.  You can drop "throws IllegalArgumentException" from the method signature as it's a runtime exception.

IAE dropped from the method signature.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6215


More information about the core-libs-dev mailing list