[Jpeergen-cvs] dev/src/java/org/progeeks/jni JniCodelet.java,1.1,1.2
Status: Beta
Brought to you by:
pspeed
|
From: <ps...@us...> - 2004-08-15 05:15:10
|
Update of /cvsroot/jpeergen/dev/src/java/org/progeeks/jni In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16955/src/java/org/progeeks/jni Modified Files: JniCodelet.java Log Message: Put some code back in because I can't remember why I removed it... plus it was breaking a project that was relying on this behavior. Index: JniCodelet.java =================================================================== RCS file: /cvsroot/jpeergen/dev/src/java/org/progeeks/jni/JniCodelet.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JniCodelet.java 12 Aug 2004 21:11:03 -0000 1.1 --- JniCodelet.java 15 Aug 2004 05:15:02 -0000 1.2 *************** *** 331,341 **** // If the type is the same as ourselves, then we can in fact // auto-convert it in most cases ! //if( type.qualifiedTypeName().equals( currentClass.qualifiedName() ) ) ! // { ! // return( true ); ! // } // While the above statement may be true, it's going to take a lot // of work... nor does it allow static-only class peering which is // a useful utility. // Short-cut --- 331,348 ---- // If the type is the same as ourselves, then we can in fact // auto-convert it in most cases ! if( type.qualifiedTypeName().equals( currentClass.qualifiedName() ) ) ! { ! return( true ); ! } // While the above statement may be true, it's going to take a lot // of work... nor does it allow static-only class peering which is // a useful utility. + // I no longer know what the heck the comment above was talking about. + // If we are the same class as the return type, then the return value + // can simply be run through the static getPeer() method for the C++ + // peer. Which works for static and non-static methods. So I don't + // know what the big deal is. + // So I've put the code back in, but I'm saving the comment in case + // I remember why I said it. // Short-cut |