src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java

Print this page

        

@@ -453,10 +453,14 @@
         public boolean equals( Object other )
         {
             return other instanceof TestBadServerIdHandler ;
         }
 
+        public int hashCode() {
+            return 1;
+        }
+
         public void handle( ObjectKey objectKey )
         {
         }
     }
 

@@ -516,10 +520,14 @@
         public boolean equals( Object other )
         {
             return other instanceof TestLegacyORBSocketFactory ;
         }
 
+        public int hashCode() {
+            return 1;
+        }
+
         public ServerSocket createServerSocket( String type, int port )
         {
             return null ;
         }
 

@@ -541,10 +549,14 @@
         public boolean equals( Object other )
         {
             return other instanceof TestORBSocketFactory ;
         }
 
+        public int hashCode() {
+            return 1;
+        }
+
         public void setORB(ORB orb)
         {
         }
 
         public ServerSocket createServerSocket( String type, InetSocketAddress a )

@@ -570,10 +582,14 @@
         public boolean equals( Object other )
         {
             return other instanceof TestIORToSocketInfo;
         }
 
+        public int hashCode() {
+            return 1;
+        }
+
         public List getSocketInfo(IOR ior)
         {
             return null;
         }
     }

@@ -606,10 +622,14 @@
         public boolean equals( Object other )
         {
             return other instanceof TestContactInfoListFactory;
         }
 
+        public int hashCode() {
+            return 1;
+        }
+
         public void setORB(ORB orb) { }
 
         public CorbaContactInfoList create( IOR ior ) { return null; }
     }
 

@@ -863,10 +883,14 @@
         public boolean equals( Object other )
         {
             return other instanceof TestORBInitializer1 ;
         }
 
+        public int hashCode() {
+            return 1;
+        }
+
         public void pre_init( ORBInitInfo info )
         {
         }
 
         public void post_init( ORBInitInfo info )

@@ -880,10 +904,14 @@
         public boolean equals( Object other )
         {
             return other instanceof TestORBInitializer2 ;
         }
 
+        public int hashCode() {
+            return 1;
+        }
+
         public void pre_init( ORBInitInfo info )
         {
         }
 
         public void post_init( ORBInitInfo info )

@@ -948,10 +976,12 @@
     {
         public boolean equals( Object other )
         {
             return other instanceof TestAcceptor1 ;
         }
+
+        public int hashCode() { return 1; }
         public boolean initialize() { return true; }
         public boolean initialized() { return true; }
         public String getConnectionCacheType() { return "FOO"; }
         public void setConnectionCache(InboundConnectionCache connectionCache){}
         public InboundConnectionCache getConnectionCache() { return null; }

@@ -979,10 +1009,11 @@
     {
         public boolean equals( Object other )
         {
             return other instanceof TestAcceptor2 ;
         }
+        public int hashCode() { return 1; }
         public boolean initialize() { return true; }
         public boolean initialized() { return true; }
         public String getConnectionCacheType() { return "FOO"; }
         public void setConnectionCache(InboundConnectionCache connectionCache){}
         public InboundConnectionCache getConnectionCache() { return null; }