JDK-8044865 : Fix raw and unchecked lint warnings in management-related code
  • Type: Sub-task
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-06-04
  • Updated: 2014-07-03
  • Resolved: 2014-06-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b19Fixed
Related Reports
Relates :  
Description
Various management-related libraries have raw and unchecked warnings; these should be fixed.
Comments
Warning locations include: src/share/classes/com/sun/jmx/mbeanserver/Introspector.java:565: warning: [rawtypes] found raw type: Class src/share/classes/com/sun/jmx/mbeanserver/MBeanInstantiator.java:760: warning: [rawtypes] found raw type: Class src/share/classes/com/sun/jmx/remote/internal/ClientNotifForwarder.java:61: warning: [rawtypes] found raw type: Map src/share/classes/com/sun/jmx/remote/internal/ClientNotifForwarder.java:62: warning: [unchecked] unchecked conversion src/share/classes/com/sun/jmx/remote/internal/ClientNotifForwarder.java:62: warning: [unchecked] unchecked method invocation: constructor <init> in class ClientNotifForwarder is applied to given types src/share/classes/com/sun/jmx/remote/security/MBeanServerFileAccessController.java:313: warning: [rawtypes] found raw type: Set src/share/classes/com/sun/jmx/remote/security/MBeanServerFileAccessController.java:315: warning: [rawtypes] found raw type: Iterator src/share/classes/com/sun/jmx/snmp/agent/SnmpRequestTree.java:538: warning: [rawtypes] found raw type: Vector src/share/classes/javax/management/modelmbean/RequiredModelMBean.java:1218: warning: [rawtypes] found raw type: Class src/share/classes/javax/management/modelmbean/RequiredModelMBean.java:1676: warning: [rawtypes] found raw type: Class src/share/classes/javax/management/modelmbean/RequiredModelMBean.java:1681: warning: [rawtypes] found raw type: Class src/share/classes/javax/management/modelmbean/RequiredModelMBean.java:2858: warning: [rawtypes] found raw type: Class src/share/classes/javax/management/remote/rmi/RMIConnector.java:2014: warning: [rawtypes] found raw type: WeakReference src/share/classes/javax/management/remote/rmi/RMIConnector.java:2014: warning: [unchecked] unchecked call to WeakReference(T) as a member of the raw type WeakReference src/share/classes/javax/management/remote/rmi/RMIConnector.java:2014: warning: [unchecked] unchecked conversion src/share/classes/javax/management/remote/rmi/RMIConnector.java:2020: warning: [rawtypes] found raw type: WeakReference src/share/classes/javax/management/remote/rmi/RMIConnector.java:2020: warning: [unchecked] unchecked call to WeakReference(T) as a member of the raw type WeakReference src/share/classes/javax/management/remote/rmi/RMIConnector.java:2020: warning: [unchecked] unchecked conversion src/share/classes/javax/management/remote/rmi/RMIConnector.java:2020: warning: [unchecked] unchecked method invocation: method put in class WeakHashMap is applied to given types src/share/classes/javax/management/remote/rmi/RMIConnector.java:2118: warning: [rawtypes] found raw type: Class src/share/classes/javax/management/remote/rmi/RMIConnector.java:2357: warning: [rawtypes] found raw type: Class src/share/classes/sun/management/DiagnosticCommandImpl.java:101: warning: [rawtypes] found raw type: Constructor src/share/classes/sun/management/DiagnosticCommandImpl.java:101: warning: [unchecked] unchecked call to getConstructor(Class<?>...) as a member of the raw type Class src/share/classes/sun/management/DiagnosticCommandImpl.java:161: warning: [unchecked] unchecked cast src/share/classes/sun/management/DiagnosticCommandImpl.java:192: warning: [unchecked] unchecked cast src/share/classes/sun/management/DiagnosticCommandImpl.java:87: warning: [rawtypes] found raw type: Class src/share/classes/sun/management/DiagnosticCommandImpl.java:90: warning: [rawtypes] found raw type: Constructor src/share/classes/sun/management/DiagnosticCommandImpl.java:90: warning: [unchecked] unchecked call to getConstructor(Class<?>...) as a member of the raw type Class src/share/classes/sun/management/GarbageCollectionNotifInfoCompositeData.java:68: warning: [rawtypes] found raw type: Class src/share/classes/sun/management/GcInfoBuilder.java:101: warning: [rawtypes] found raw type: OpenType src/share/classes/sun/management/GcInfoCompositeData.java:185: warning: [rawtypes] found raw type: OpenType src/share/classes/sun/management/GcInfoCompositeData.java:186: warning: [rawtypes] found raw type: OpenType src/share/classes/sun/management/GcInfoCompositeData.java:75: warning: [rawtypes] found raw type: Class src/share/classes/sun/management/GcInfoCompositeData.java:87: warning: [rawtypes] found raw type: Class src/share/classes/sun/management/MappedMXBeanType.java:230: warning: [rawtypes] found raw type: Class src/share/classes/sun/management/MappedMXBeanType.java:757: warning: [rawtypes] found raw type: OpenType src/share/classes/sun/management/MappedMXBeanType.java:794: warning: [rawtypes] found raw type: OpenType src/share/classes/sun/tools/jconsole/inspector/OperationEntry.java:35: warning: [rawtypes] found raw type: JComboBox src/share/classes/sun/tools/jconsole/inspector/TableSorter.java:149: warning: [rawtypes] found raw type: Vector src/share/classes/sun/tools/jconsole/inspector/TableSorter.java:220: warning: [rawtypes] found raw type: Vector src/share/classes/sun/tools/jconsole/inspector/TableSorter.java:225: warning: [rawtypes] found raw type: Vector src/share/classes/sun/tools/jconsole/inspector/TableSorter.java:230: warning: [rawtypes] found raw type: Vector src/share/classes/sun/tools/jconsole/ProxyClient.java:957: warning: [rawtypes] found raw type: Class src/share/classes/sun/tools/jconsole/TimeComboBox.java:40: warning: [rawtypes] found raw type: JComboBox src/share/classes/sun/tools/jconsole/TimeComboBox.java:44: warning: [unchecked] unchecked call to JComboBox(E[]) as a member of the raw type JComboBox src/share/classes/sun/tools/jmap/JMap.java:197: warning: [rawtypes] found raw type: Class src/share/classes/sun/tools/jstack/JStack.java:136: warning: [rawtypes] found raw type: Class src/share/classes/sun/tools/jstat/Alignment.java:113: warning: [rawtypes] found raw type: Set src/share/classes/sun/tools/jstat/ColumnFormat.java:146: warning: [rawtypes] found raw type: Iterator src/share/classes/sun/tools/jstat/Jstat.java:119: warning: [rawtypes] found raw type: Iterator src/share/classes/sun/tools/jstat/Operator.java:108: warning: [rawtypes] found raw type: Set src/share/classes/sun/tools/jstat/OptionFormat.java:80: warning: [rawtypes] found raw type: Iterator src/share/classes/sun/tools/jstat/OptionFormat.java:85: warning: [rawtypes] found raw type: Iterator src/share/classes/sun/tools/jstat/Parser.java:144: warning: [rawtypes] found raw type: Set src/share/classes/sun/tools/jstat/Parser.java:66: warning: [rawtypes] found raw type: Set src/share/classes/sun/tools/jstat/Parser.java:67: warning: [rawtypes] found raw type: Set src/share/classes/sun/tools/jstat/RawOutputFormatter.java:38: warning: [rawtypes] found raw type: List src/share/classes/sun/tools/jstat/RawOutputFormatter.java:42: warning: [rawtypes] found raw type: List src/share/classes/sun/tools/jstat/RawOutputFormatter.java:51: warning: [rawtypes] found raw type: Iterator src/share/classes/sun/tools/jstat/RawOutputFormatter.java:63: warning: [rawtypes] found raw type: Iterator src/share/classes/sun/tools/jstat/Scale.java:178: warning: [rawtypes] found raw type: Set src/share/classes/sun/tools/jstat/SyntaxException.java:65: warning: [rawtypes] found raw type: Set src/share/classes/sun/tools/jstat/SyntaxException.java:71: warning: [rawtypes] found raw type: Iterator
04-06-2014