Tag

Javaassist

1 views collected around this technical thread.

Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 20, 2023 · Backend Development

Using Javaassist for Bytecode Manipulation: Creating, Modifying, and Enhancing Java Classes

This article introduces Javaassist, a Java library for runtime bytecode manipulation, and demonstrates how to view compiled bytecode, add Maven dependencies, generate new classes, modify existing ones, insert fields and methods, and apply AOP‑style enhancements without changing source code.

AOPJavaJavaassist
0 likes · 6 min read
Using Javaassist for Bytecode Manipulation: Creating, Modifying, and Enhancing Java Classes
vivo Internet Technology
vivo Internet Technology
Dec 1, 2021 · Mobile Development

Bytecode and Reference Detection for Android Apps: Principles, Implementation, and Gradle Plugin

The article explains how bytecode‑level reference detection—implemented via a custom Gradle plugin that uses JavaAssist or ASM to scan compiled .class files for missing or inaccessible methods, fields, and classes—can automatically catch runtime‑crash‑inducing errors in large modular Android projects, offering configurable strict or warning modes to enhance build safety.

AndroidGradle PluginJavaassist
0 likes · 18 min read
Bytecode and Reference Detection for Android Apps: Principles, Implementation, and Gradle Plugin