Javassist
Java bytecode engineering toolkit (by jboss-javassist)
Maker
Lightweight, full-featured, low-level dynamic Java class generator designed for ease of use. (by cojen)
Our great sponsors
Javassist | Maker | |
---|---|---|
5 | 6 | |
4,009 | 43 | |
0.4% | - | |
0.0 | 8.8 | |
3 months ago | 3 days ago | |
Java | Java | |
GNU General Public License v3.0 or later | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Javassist
Posts with mentions or reviews of Javassist.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-21.
-
JUnit 5: link tests with task tracker issues
ClassPool comes from Javaassist library. It gives convenient API to retrieve the line number of Java method.
-
Kimmer: Port immer for kotlin/jvm
This problem can be resolved by https://github.com/jboss-javassist/javassist/blob/master/src/main/javassist/util/proxy/DefineClassHelper.java perfectly, I will use some of its code to fix this problem on 0.0.1
-
Bytecode Transformations: The Android Gradle Plugin
Other higher-level abstractions like Javassist: are all based on ASM, but have a nicer and easier-to-understand APIs to deal with.
- Functions hooking
-
Hacking third-party APIs on the JVM
In the following snippet, the transformer uses Javassist:
Maker
Posts with mentions or reviews of Maker.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-23.
-
Any news on the Classfile API?
If you want an alternative to ASM, try Cojen/Maker, which is designed to be much easier to use than any of the other class writing APIs, including the one proposed by JEP-8280389. Here's a comparison.
-
Jdk.Classfile Javadoc (in-development)
That's a lot right arrow operators just to implement a simple Hello World program (5). I can't even begin to imagine how difficult it might be to generate anything more interesting than this. Here's a comparison against a classfile API which is designed to be easy to use: https://github.com/cojen/Maker/wiki/JEP-8280389
- JEP draft: Classfile API
-
Show HN: I spent my vacation writing a modern JVM assembler
For the code generation phase, it might be easier to bypass emitting a text-based assembly format and just use the ASM library directly. If you want something easier, I wrote a code generation library specifically for that purpose: https://github.com/cojen/Maker It also includes an example "Mini-C" language compiler.
- Show HN: Cojen/Maker – lightweight Java class generator designed for ease of use
What are some alternatives?
When comparing Javassist and Maker you can also consider the following projects:
Byte Buddy - Runtime code generation for the Java virtual machine.
obfuscator - A java obfuscator (GUI)
Byteman - Byteman Project main repo
JavaParser - Java 1-17 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.
Recaf - The modern Java bytecode editor
jdk-sandbox - JDK Committers Sandbox
obfuscator
proguard-core - Library to read, write, analyze, and process java bytecode
threadtear - Multifunctional java deobfuscation tool suite
golo-lang - Golo - a lightweight dynamic language for the JVM.