Summary
Change the type of the parameter for XPathFunction.evaluate from List<Object> to List<?>.
Problem
In JDK-8191038, the type of the parameter for XPathFunction.evaluate was changed from List to List<Object>. However, a better compatibility may be provided by generifying the evaluate method to accept a List<?> rather than a List<Object>.
Solution
Change the type of the parameter for XPathFunction.evaluate from List<Object> to List<?>.
Specification
src/java.xml/share/classes/javax/xml/xpath/XPathFunction.java
- public Object evaluate(List<Object> args)
+ public Object evaluate(List<?> args)
- csr of
-
JDK-8191161 Reconsider generification of XPathFunction.evaluate
-
- Resolved
-