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

Warnings building corba repo due to missing hashCode methods

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • other-libs
    • b96
    • Not verified

    Description


      The corba build emits a bunch of warnings that report missing hashCode methods, this should be examined.

      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepIdDelegator.java:41: warning: [overrides] Class RepIdDelegator overrides equals, but neither it nor any superclass overrides hashCode method
      public final class RepIdDelegator
                   ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/javax/rmi/CORBA/StubDelegateImpl.java:63: warning: [overrides] Class StubDelegateImpl overrides equals, but neither it nor any superclass overrides hashCode method
      public class StubDelegateImpl implements javax.rmi.CORBA.StubDelegate
             ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java:451: warning: [overrides] Class ParserTable.TestBadServerIdHandler overrides equals, but neither it nor any superclass overrides hashCode method
          public final class TestBadServerIdHandler implements BadServerIdHandler
                       ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java:513: warning: [overrides] Class TestLegacyORBSocketFactory overrides equals, but neither it nor any superclass overrides hashCode method
          public static final class TestLegacyORBSocketFactory
                              ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java:538: warning: [overrides] Class TestORBSocketFactory overrides equals, but neither it nor any superclass overrides hashCode method
          public static final class TestORBSocketFactory
                              ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java:567: warning: [overrides] Class TestIORToSocketInfo overrides equals, but neither it nor any superclass overrides hashCode method
          public static final class TestIORToSocketInfo
                              ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java:603: warning: [overrides] Class TestContactInfoListFactory overrides equals, but neither it nor any superclass overrides hashCode method
          public static final class TestContactInfoListFactory
                              ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java:860: warning: [overrides] Class TestORBInitializer1 overrides equals, but neither it nor any superclass overrides hashCode method
          public static final class TestORBInitializer1 extends org.omg.CORBA.LocalObject
                              ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java:877: warning: [overrides] Class TestORBInitializer2 overrides equals, but neither it nor any superclass overrides hashCode method
          public static final class TestORBInitializer2 extends org.omg.CORBA.LocalObject
                              ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java:946: warning: [overrides] Class TestAcceptor1 overrides equals, but neither it nor any superclass overrides hashCode method
          public static final class TestAcceptor1
                              ^
      /u/alanb/ws/jdk8/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java:977: warning: [overrides] Class TestAcceptor2 overrides equals, but neither it nor any superclass overrides hashCode method
          public static final class TestAcceptor2
                              ^
      /u/alanb/ws/jdk8/corba/src/share/classes/sun/rmi/rmic/iiop/CompoundType.java:1779: warning: [overrides] Class CompoundType.Method overrides equals, but neither it nor any superclass overrides hashCode method
          public class Method implements ContextElement, Cloneable {
                 ^
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.

      Attachments

        Activity

          People

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: