Skip to main content
1 vote
1 answer
109 views

So I am trying to add information about locals I use. The current way I am trying to achieve it - is: methodVisitor = classWriter.visitMethod(ACC_PUBLIC | ACC_STATIC, "something", "()V&...
Gleb's user avatar
  • 258
0 votes
1 answer
61 views

I have a perplexing problem. We use run-time created codec:s for message en- and decoding. The original authors has long since left the building. I've been asked to add some rather simple ...
Erik's user avatar
  • 2,081
0 votes
2 answers
80 views

Hi I'm trying to build a trace agent where app agent propagates the origin application name across the multiple network calls using the HTTPUrlConnection. So far, I was able to invoke the Advice ...
Jay_ran's user avatar
0 votes
0 answers
109 views

I’m Trying to Intercept Some Methods Using the Byte-Buddy Android Gradle Plugin I want to intercept some methods using the Byte-Buddy Android Gradle plugin. Here are the versions I am using: • Java ...
Engin Kadir Şahin's user avatar
0 votes
1 answer
91 views

I am playing with Java bytecode generation (using Clojure with https://github.com/jgpc42/insn), Currently I am trying to generate a bytecode for a nested for loop, bellow is the relevant part of the ...
Édipo Féderle's user avatar
1 vote
1 answer
631 views

As shown in the following figure, a custom Java agent package is added to the JVM options -javaagent:/usr/local/maven/apache-maven-3.6.3/repository/com/graviton/Probe-Agent/1.0-SNAPSHOT/Probe-Agent-1....
Photon's user avatar
  • 29
-1 votes
1 answer
144 views

I have code that attempts to redefine a class at runtime using a ClassFileTransformer and an instance of Instrumentation. However, I've noticed that the transform method of ClassFileTransformer fails ...
crazycat256's user avatar
0 votes
1 answer
127 views

I am writing a term paper for the university. The task is to write two programs, one of which collects some information, signs it with a digital key, and saves the encrypted data and the key to ...
Артем Лебідь's user avatar
0 votes
2 answers
173 views

I'm currently working on a project where I generate Java bytecode from my own intermediate representation using the ASM library. For some methods in my code, I already have pre-calculated values for ...
Volodya Lombrozo's user avatar
-1 votes
1 answer
106 views

It seems that ASM ClassWriter does not preserve the order of entries in the constant pool. For example, consider the following code snippet: @Test void hashShouldBeSame() throws IOException, ...
AMAN SHARMA's user avatar
-1 votes
1 answer
296 views

I'm currently trying to edit the bytecode of a java class after it has been loaded by the JVM. I use Java 8 and ASM 5.0.3. I can't change the command line or the JVM arguments. Here is a minimal ...
crazycat256's user avatar
0 votes
2 answers
224 views

for example:I want to change LocalDateTime.now() return result in non-production enviroment, I am trying to invoke the following code,but error occors: @Test public void test3() { ...
yicai.liu's user avatar
1 vote
2 answers
141 views

I'am working in a Transparent Dirty Detection Agent (tdd-agent). It work really well redefining the target classes to implement the setDirty()/isDirty() and set it when it detect a putfield, but I ...
Marcelo D. Ré's user avatar
1 vote
1 answer
217 views

I am currently utilizing org.objectweb.asm.util.CheckClassAdapter for bytecode verification in my Java project. However, I've observed that this class prints errors to stderr instead of throwing ...
Volodya Lombrozo's user avatar
1 vote
0 answers
156 views

I'm trying to replace methods in a class with their counterparts in a subpackage, if they exist. For example, if I have a class "name.package.ClassName" and I want to replace its methods ...
LostInCode-dvp's user avatar

15 30 50 per page
1
2 3 4 5
54