JDK-8190986 : Rawtypes cleanup inadvertently changed public APIs
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 10
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2017-11-09
  • Updated: 2017-11-09
  • Resolved: 2017-11-09
Related Reports
Relates :  
Description
The purpose of the changeset for JDK-8181150 was to fix rawtypes warnings in the java.xml module. Any changes to the public APIs were not intended and shall be reversed. The affected APIs are as follows:

src/java.xml/share/classes/javax/xml/namespace/NamespaceContext.java
-    Iterator getPrefixes(String namespaceURI);
+    Iterator<String> getPrefixes(String namespaceURI);

src/java.xml/share/classes/javax/xml/xpath/XPathFunction.java
-  public Object evaluate(List args)
+  public Object evaluate(List<Object> args)

src/java.xml/share/classes/org/xml/sax/helpers/NamespaceSupport.java
-    public Enumeration getPrefixes ()
+    public Enumeration<String> getPrefixes ()

-    public Enumeration getPrefixes (String uri)
+    public Enumeration<String> getPrefixes (String uri)

-    public Enumeration getDeclaredPrefixes ()
+    public Enumeration<String> getDeclaredPrefixes ()


Comments
Thanks! Will file a CSR.
09-11-2017

Adding the type parameter to eliminate the raw types from the API is the right thing to do. The original change just needs a CSR and a release note. No further action is required.
09-11-2017