Tagged articles
Bytecode Manipulation
11 articles · Page 1 of 1
This article demonstrates how to build a Java Agent using the Instrumentation API and ASM for bytecode manipulation, covering premain/agentmain entry points, dynamic class redefinition via Attach API, and explores Arthas trace command's implementation using the bytekit framework for non-invasive method profiling.
ASMArthasAttach API
0 likes · 21 min read

This article explains the pain points of traditional Java backend debugging, compares existing solutions, and presents a SpringBoot zero‑impact online debug injector built with ByteBuddy, Java Instrumentation, and a lightweight Tailwind/Alpine.js UI that enables instant, precise, and secure method‑level debugging in production.
Bytecode ManipulationJava AgentOnline Debugging
0 likes · 19 min read

This article explains how to replace invasive timing code with a Java Agent using the Instrumentation API, demonstrates both premain and attach approaches, shows ASM‑based bytecode transformation examples, and explores how Arthas trace leverages similar techniques for runtime monitoring.
ArthasBytecode ManipulationJava Agent
0 likes · 23 min read

This tutorial explains Java Agent technology, shows how to implement a custom agent using the Instrumentation API and Javassist, integrates it with a Spring Boot 3 application to log API execution time, and provides step‑by‑step packaging and execution instructions.
Bytecode ManipulationJava AgentPerformance Monitoring
0 likes · 10 min read

This article explains the concept of Java Agent, compares it with AOP, and provides step‑by‑step implementations of both premain and agentmain modes, including Maven packaging, VM attachment, class transformation, redefinition, retransformation, and a Javassist example for method timing.
AgentmainBytecode ManipulationJava Agent
0 likes · 17 min read

This article details the necessity of establishing a no-buried-point scheme mindset, key advantages over traditional methods, mobile client no-buried-point collection implementation mechanisms, data processing, and the benefits of this approach.
AndroidBytecode ManipulationNo-Buried-Point
0 likes · 12 min read

This article demonstrates how to use Spring's ApplicationContextInitializer together with Javassist to intercept class loading in a Spring Cloud environment, modify the bytecode of org.apache.commons.lang3.RandomStringUtils, and record method calls, handling parent‑child container initialization nuances.
AOPBytecode ManipulationJava
0 likes · 5 min read


政采云技术Dec 26, 2023 · Backend Development
This article explains how Java achieves "write once, run anywhere" through platform‑independent bytecode, describes the .class file structure, introduces tools for viewing bytecode, and provides detailed guidance on using the ASM library’s Core and Tree APIs for bytecode enhancement, including practical code demos and application scenarios.
ASMBytecode ManipulationJVM
0 likes · 16 min read

This comprehensive guide explains what ASM is, its core and tree APIs, common use cases such as Spring AOP and JDK lambda support, and provides step‑by‑step code examples for generating interfaces and classes, modifying bytecode, adding timers, printing parameters, handling control structures, and using handy tools for inspection.
ASMBytecode ManipulationClassVisitor
0 likes · 42 min read

This tutorial explains Java Agent technology, compares it with AOP, and provides step‑by‑step implementations of Premain and Agentmain modes, covering agent packaging, manifest configuration, instrumentation APIs, class transformation, redefinition, retransformation, and integration with Javassist for dynamic bytecode manipulation.
AgentmainBytecode ManipulationJava Agent
0 likes · 21 min read

To meet new Chinese privacy regulations, the article presents an mPaaS‑based solution that uses compile‑time Java HOOKs to replace privacy‑sensitive API calls and dangerous permission requests, automatically detecting and logging violations during build and runtime, and providing backend alerts and management tools for compliance.
ASMAndroidBytecode Manipulation
0 likes · 14 min read
