reassign 351551 classpath thanks On Sun, Feb 05, 2006 at 06:15:20PM +0000, Egon Willighagen wrote: > Package: cacao > Version: 0.94-1 > Severity: normal > > > Not sure wether this is a true bug, or just incompatibility with Sun JVM > 1.5.0 and kaffe: > > When I run a CDK based test suite [1], the "OpenSource JVM Test Suite", I get > a > NullPointerException, because of this situation: > > - reader.ready() returns true > - a subsequent reader.readLine() returns null > > The code I deduce this from is: > > protected void loadClassList(String classList) throws Exception { > classesToTest = new Vector(); > > // get the src/core.javafiles file > BufferedReader reader = new BufferedReader(new InputStreamReader( > this.getClass().getClassLoader().getResourceAsStream(classList) > )); > while (reader.ready()) { > // load them one by one > String rawClassName = reader.readLine(); > rawClassName = rawClassName.substring(20); > String className = convertSlash2Dot( > rawClassName.substring(0, rawClassName.indexOf('.')) > ); > classesToTest.add(className); > } > } > > The NullPointerException occurs on this line: > > rawClassName = rawClassName.substring(20); > > Because rawClassName is null. > > This happens with cacao and jamvm, but not with kaffe, so seems a Classpath > problem.
This is a classpath problem so it have to be against classpath. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]