--- org/codehaus/jam/internal/JamClassLoaderImpl.java 2004-12-10 13:41:34.000000000 +0100 +++ org/codehaus/jam/internal/JamClassLoaderImpl.java 2007-06-14 21:08:50.000000000 +0200 @@ -91,7 +91,7 @@ // yet, that means we need to go get the outer class. when that's // done, the inner class will in the cache (or not). int dollar = fd.indexOf('$'); - if (dollar != -1) { + if (dollar > 0) { String outerName = fd.substring(0,dollar); ((ClassImpl)loadClass(outerName)).ensureLoaded(); out = cacheGet(fd);