diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-01-11 06:06:30 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-01-11 06:06:30 +0000 |
commit | 52a455616e4077b5b61823cb4765c02fc6866f9a (patch) | |
tree | a9f95d54cccee9e336a667043b4e958d30257064 /sample/evolve/Evolution.java | |
parent | 5b8d2d6c7ab0102e8a1bb0384cf769ed8f0f34da (diff) | |
download | javassist-52a455616e4077b5b61823cb4765c02fc6866f9a.tar.gz javassist-52a455616e4077b5b61823cb4765c02fc6866f9a.zip |
restructred sub packages
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@233 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'sample/evolve/Evolution.java')
-rw-r--r-- | sample/evolve/Evolution.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sample/evolve/Evolution.java b/sample/evolve/Evolution.java index ecae0921..e804ff46 100644 --- a/sample/evolve/Evolution.java +++ b/sample/evolve/Evolution.java @@ -60,9 +60,9 @@ public class Evolution implements Translator { private void onLoadUpdatable(String classname) throws NotFoundException,
CannotCompileException {
// if the class is a concrete class,
- // classname is <updatableClassName>$<version>.
+ // classname is <updatableClassName>$$<version>.
- int i = classname.lastIndexOf('$');
+ int i = classname.lastIndexOf("$$");
if (i <= 0)
return;
@@ -72,7 +72,7 @@ public class Evolution implements Translator { int version;
try {
- version = Integer.parseInt(classname.substring(i + 1));
+ version = Integer.parseInt(classname.substring(i + 2));
}
catch (NumberFormatException e) {
throw new NotFoundException(classname, e);
|