User: reverbel
  Date: 01/11/13 13:28:24

  Modified:    iiop/src/main/org/jboss/iiop/rmi InterfaceAnalysis.java
  Log:
  Fixed bug in calculateOperationAnalysisMap(). This bug shows up for
  non-remote interfaces containing methods that follows the JavaBean
  attribute pattern (i.e., a getFoo() method or a pair of getFoo()/setFoo()
  methods) .
  
  Corrected array indexing typo in calculateAllTypeIds().
  
  Revision  Changes    Path
  1.4       +11 -6     contrib/iiop/src/main/org/jboss/iiop/rmi/InterfaceAnalysis.java
  
  Index: InterfaceAnalysis.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/iiop/src/main/org/jboss/iiop/rmi/InterfaceAnalysis.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- InterfaceAnalysis.java    2001/08/10 16:14:31     1.3
  +++ InterfaceAnalysis.java    2001/11/13 21:28:24     1.4
  @@ -42,7 +42,7 @@
    *  Specification", version 1.1 (01-06-07).
    *      
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Ole Husgaard</a>
  - *  @version $Revision: 1.3 $
  + *  @version $Revision: 1.4 $
    */
   public class InterfaceAnalysis
      extends ContainerAnalysis
  @@ -169,11 +169,16 @@
            AttributeAnalysis attr = attributes[i];
   
            oa = attr.getAccessorAnalysis();
  -         operationAnalysisMap.put(oa.getIDLName(), oa);
   
  -         oa = attr.getMutatorAnalysis();
  -         if (oa != null)
  +         // Not having an accessor analysis means that 
  +         // the attribute is not in a remote interface
  +         if (oa != null) {
               operationAnalysisMap.put(oa.getIDLName(), oa);
  +
  +            oa = attr.getMutatorAnalysis();
  +            if (oa != null)
  +               operationAnalysisMap.put(oa.getIDLName(), oa);
  +         }
         }
      }
   
  @@ -190,8 +195,8 @@
            String[] ss = intfs[i].getAllTypeIds();
   
            for (int j = 0; j < ss.length; ++j)
  -            if (!a.contains(ss[i]))
  -               a.add(ss[i]);
  +            if (!a.contains(ss[j]))
  +               a.add(ss[j]);
         }
         allTypeIds = new String[a.size() + 1];
         allTypeIds[0] = getRepositoryId();
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to