ClassPublic.Java is a Java .class file converter which makes a Java class public and non-final, its fields public and its methods public and non-final. ClassPublic.java has a compact implementation, depending only on a J2SE 1.5.0 or newer. ClassPublic.java can be used to increase interoperability and code reusability of a .class file whose .java source is not available or it is not feasible to recompile.
Download classpublic-latest.zip.
1 year ago
2 comments:
Do you know JD? It's a free Java decompiler. I used it with great success on class files that I could not get the source for (because they were simply non-existent anymore :-) ). Of course it's a lot more generic solution to the problem for which you created ClassPublic and most probably ClassPublic is better for the specific task that you designed it for.
@müzso: Thank you for mentioning JD. I used to use JAD for decompilation, but that seems to be abandonware now.
ClassPublic has an advantage over decompilation: with decompilation I'd have to distribute a modified .class file, which might be illegal (violating the license of the original software), but adding my ClassLoader to load classes from the original .jar file might be still legal.
Post a Comment