[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...

Tom Elrod tom.elrod at jboss.com
Tue Jul 25 15:52:21 EDT 2006


  User: telrod  
  Date: 06/07/25 15:52:21

  Modified:    src/main/org/jboss/remoting  InvokerLocator.java
  Log:
  JBREM-556 - fixed some problems with remoting versioning.
  
  Revision  Changes    Path
  1.22      +16 -2     JBossRemoting/src/main/org/jboss/remoting/InvokerLocator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InvokerLocator.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/InvokerLocator.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -b -r1.21 -r1.22
  --- InvokerLocator.java	17 Jul 2006 21:21:28 -0000	1.21
  +++ InvokerLocator.java	25 Jul 2006 19:52:21 -0000	1.22
  @@ -58,11 +58,12 @@
    *
    * @author <a href="mailto:jhaynie at vocalocity.net">Jeff Haynie</a>
    * @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
  - * @version $Revision: 1.21 $
  + * @version $Revision: 1.22 $
    */
   public class InvokerLocator implements Serializable
   {
  -   private static final long serialVersionUID = -4977622166779282521L;
  +   static final long serialVersionUID;
  +
      protected String protocol;
      protected String host;
      protected int port;
  @@ -71,6 +72,19 @@
      private String uri;
      private String originalURL;
   
  +
  +   static
  +   {
  +      if(Version.getDefaultVersion() == Version.VERSION_1)
  +      {
  +         serialVersionUID = -2909329895029296248L;
  +      }
  +      else
  +      {
  +         serialVersionUID = -4977622166779282521L;
  +      }
  +   }
  +
      /**
       * Indicates should address binding to all network interfaces (i.e. 0.0.0.0)
       */
  
  
  



More information about the jboss-cvs-commits mailing list