JDK-8191228 : Change XPathFunction.evaluate parameter type from List to List
  • Type: CSR
  • Component: xml
  • Sub-Component: jaxp
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 10
  • Submitted: 2017-11-14
  • Updated: 2017-11-21
  • Resolved: 2017-11-16
Related Reports
CSR :  
Description
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)


Comments
Moving to approved.
16-11-2017