[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-cvs
Subject:    [Jibx-cvs] core/build/src/org/jibx/binding Utility.java,1.20,1.21
From:       Dennis Sosnoski <dsosnoski () users ! sourceforge ! net>
Date:       2010-01-09 10:32:34
Message-ID: E1NTYcU-0001jx-Tq () sfp-cvsdas-3 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/jibx/core/build/src/org/jibx/binding
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv6680/build/src/org/jibx/binding


Modified Files:
	Utility.java 
Log Message:
Add binding name to munge adapter class name, so that precompiled bindings can use \
same package as bindings which reference them (as long as the actual binding names \
are different).

Index: Utility.java
===================================================================
RCS file: /cvsroot/jibx/core/build/src/org/jibx/binding/Utility.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** Utility.java	6 Jan 2010 12:02:37 -0000	1.20
--- Utility.java	9 Jan 2010 10:32:32 -0000	1.21
***************
*** 27,31 ****
  */
  
- 
  package org.jibx.binding;
  
--- 27,30 ----
***************
*** 285,288 ****
--- 284,288 ----
          ClassFile cf = null;
          String tpack = null;
+         String bname = null;
          if (test) {
              BindingElement root = validateBinding(fname, url,
***************
*** 298,301 ****
--- 298,303 ----
                      tpack = cf.getPackage();
                  }
+                 bname = root.getName();
+                 
              }
          }
***************
*** 309,313 ****
                      
                      // set target root and package for created classes
!                     BoundClass.setModify(cf.getRoot(), tpack);
                      
                  }
--- 311,318 ----
                      
                      // set target root and package for created classes
!                     if (bname == null) {
!                         bname = sname;
!                     }
!                     BoundClass.setModify(cf.getRoot(), tpack, bname);
                      
                  }


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Jibx-cvs mailing list
Jibx-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic