Nice/src/bossa/syntax javaMethod.nice,1.11,1.12

Daniel Bonniot <[email protected]> Wed, 30 Mar 2005 12:42:36 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24574/src/bossa/syntax

Modified Files:
	javaMethod.nice 
Log Message:
Do not load non-public fields from java* packages.


Index: javaMethod.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/javaMethod.nice,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** javaMethod.nice	25 Mar 2005 16:40:00 -0000	1.11
--- javaMethod.nice	30 Mar 2005 12:42:34 -0000	1.12
***************
*** 212,217 ****
  
      for (?gnu.bytecode.Field f = classType.getFields(); f != null; f = f.getNext())
!       if (retyped.get(f) == null)
!         addJavaSymbol(f, makeJavaFieldAccess(f));
  
      for (?gnu.bytecode.Method m = classType.getMethods(); m != null; m = m.getNext())
--- 212,224 ----
  
      for (?gnu.bytecode.Field f = classType.getFields(); f != null; f = f.getNext())
!       {
! 	// Ignore non-public fields in a "java*" package
! 	if ((f.getModifiers() & gnu.bytecode.Access.PUBLIC) == 0 &&
! 	    classType.getName().startsWith("java"))
! 	  continue;
! 
! 	if (retyped.get(f) == null)
! 	  addJavaSymbol(f, makeJavaFieldAccess(f));
!       }
  
      for (?gnu.bytecode.Method m = classType.getMethods(); m != null; m = m.getNext())



-------------------------------------------------------
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