[Nice-commit] Nice/src/bossa/syntax niceMethod.nice,1.27,1.28
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-04-07 22:28:21
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18928/src/bossa/syntax Modified Files: niceMethod.nice Log Message: Don't compile methods into classes imported from a different package. Index: niceMethod.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/niceMethod.nice,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** niceMethod.nice 29 Mar 2005 16:18:39 -0000 1.27 --- niceMethod.nice 7 Apr 2005 22:28:12 -0000 1.28 *************** *** 360,370 **** receiver = getNiceClass(def.getArgTypes()[0]); ! // JVM interfaces cannot contain code. ! if (receiver != null && receiver.isInterface()) ! receiver = null; ! ! // Special treatment for serialization at the moment. ! if (def.getArity() == 2 && ! (name.equals("writeObject")||name.equals("readObject"))) receiver = null; } --- 360,375 ---- receiver = getNiceClass(def.getArgTypes()[0]); ! if (receiver != null && ! ( ! // JVM interfaces cannot contain code. ! receiver.isInterface() ! || ! // For the moment, don't compile inside classes from another package ! receiver.definition.module.pkg != def.module.pkg ! || ! // Special treatment for serialization at the moment. ! (def.getArity() == 2 && ! (name.equals("writeObject")||name.equals("readObject"))) ! )) receiver = null; } |