Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8016452

Warnings compiling JMX classes due to missing hashCode method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 8
    • core-svc
    • None

    Description


      When building jdk8 there are a lot of warnings, including a few when compiling the JMX classes. They should be examined as there may be real bugs here.


      /u/alanb/ws/tl/jdk/src/share/classes/javax/management/NotificationBroadcasterSupport.java:278: warning: [overrides] Class ListenerInfo overrides equals, but neither it nor any superclass overrides hashCode method
          private static class ListenerInfo {
                         ^
      /u/alanb/ws/tl/jdk/src/share/classes/javax/management/NotificationBroadcasterSupport.java:303: warning: [overrides] Class WildcardListenerInfo overrides equals, but neither it nor any superclass overrides hashCode method
          private static class WildcardListenerInfo extends ListenerInfo {
                         ^
      :

      /u/alanb/ws/tl/jdk/src/closed/share/classes/com/sun/jmx/snmp/SnmpParameters.java:34: warning: [overrides] Class SnmpParameters overrides equals, but neither it nor any superclass overrides hashCode method
      public class SnmpParameters extends SnmpParams implements Cloneable, Serializable {
             ^

      Attachments

        Issue Links

          Activity

            People

              dxu Dan Xu (Inactive)
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: