From: pcm <pcm...@us...> - 2005-09-23 17:12:54
|
Update of /cvsroot/javapathfinder/javapathfinder/env/jpf/java/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1242/jpf/java/lang Modified Files: Class.java Log Message: nce it is easy enough and we needed a quick solution, today's 5min hack is to add Class.getSuperclass() Index: Class.java =================================================================== RCS file: /cvsroot/javapathfinder/javapathfinder/env/jpf/java/lang/Class.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Class.java 18 May 2005 06:41:46 -0000 1.3 +++ Class.java 23 Sep 2005 17:12:45 -0000 1.4 @@ -126,15 +126,7 @@ return isPrimitive; } - /* the following methods are not (yet) supported, but are required by some - * braindead IDEs who cannot compile classes w/o putting them into the - * build classpath - which means they will use THIS java.lang.Class to - * compile the rest of JPF. Don't ask what I think of this - */ - public Class getSuperclass () { - // <2do> - throw new JPFException("Class.getSuperClass() not yet supported"); - } + public native Class getSuperclass (); public native Object newInstance () throws InstantiationException, IllegalAccessException; |