mx4j/src/core/mx4j/util Utils.java,1.17,1.18

Jeremy Boynes <[email protected]> Tue, 08 Feb 2005 04:11:52 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/core/mx4j/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27695/src/core/mx4j/util

Modified Files:
	Utils.java 
Log Message:
Fix for [ 1115663 ] "is" is not a attr
Added testcase for introspection in general, more tests needed though :-) 

Index: Utils.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/mx4j/util/Utils.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Utils.java	13 Nov 2004 16:38:28 -0000	1.17
--- Utils.java	8 Feb 2005 04:11:50 -0000	1.18
***************
*** 142,146 ****
           if (name.startsWith("get") && name.length() > 3)
              return true;
!          else if (name.startsWith("is") && retType == Boolean.TYPE) return true;
        }
        return false;
--- 142,146 ----
           if (name.startsWith("get") && name.length() > 3)
              return true;
!          else if (name.startsWith("is") && name.length() > 2 && retType == Boolean.TYPE) return true;
        }
        return false;



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click