Skip to main content
5 votes
2 answers
295 views

I have a class in the source code class BillPughSingleton { private BillPughSingleton() { System.out.println("BillPughSingleton private constructor called"); } // Lớp ...
SoT's user avatar
  • 1,267
0 votes
0 answers
21 views

I have this custom gradle plugin to replace the implementation of a class. When I build the apk I do see that the original class is modified as expected. However, the class packaged in the apk is ...
rysv's user avatar
  • 3,532
1 vote
0 answers
44 views

I want to generate invokedynamic bytecode using BCEL library. Using BCEL I want to generate a class file which calls a bootstrap method using invokedynamic opcode. I can see BCEL has INVOKEDYNAMIC ...
Vikas Yadav's user avatar
0 votes
2 answers
152 views

I'm working on a personal project just for fun, a new programming languages (just because there are not enough). I m going to make it run on JVM but I need to store some metadata in the compiled file. ...
rain 183's user avatar
0 votes
0 answers
139 views

In past versions of the bytecode manipulation framework Mixin, there was a method called prepareConfigs(MixinEnvironment). A nonstandard, but very commonly-used, way to bootstrap Mixins at a certain ...
ABadHaiku's user avatar
  • 119
0 votes
1 answer
269 views

public class TestException extends Exception { public TestException(String msg) { super("This is the message: " + msg); } } The above code is compiled to: public class ...
Irfan Latif's user avatar
0 votes
0 answers
92 views

I am trying to make a class loader which transforms the class bytes of the class being loaded using some kind of class transformer. Suppose I have the following code: static class Test { void foo(); ...
asdafadsfadsfdaf's user avatar
1 vote
1 answer
103 views

There are a number of tools(e.g. JavaAssist, ASM) to re-generate bytecodes at runtime for various purposes. One case is Application permformance Management(APM), which provides agents to rewrite ...
shijie xu's user avatar
  • 2,107
0 votes
1 answer
355 views

I am trying to figure out how ASM works, with the help of A Guide to Java Bytecode Manipulation with ASM. I followed the tutorial and created an 'extra' static field for the Integer class. Here is the ...
Jacob van Lingen's user avatar
0 votes
0 answers
409 views

I have code to insert instructions into the constructor of a class from a third party library (okhttp3.OkHttpClient in this case). Disassembled class shows the added line. However, I am not sure how ...
rysv's user avatar
  • 3,532
0 votes
1 answer
694 views

I am trying to instrument OkHttpClient builder class. However, I am not able to create ClassReader in the first place. import org.objectweb.asm.ClassReader; ... // this works meaning dependency from ...
rysv's user avatar
  • 3,532
0 votes
1 answer
658 views

I am trying to generate Java bytecode using the Java Asm library (I am basically trying to create yet another JVM programming language) Here is the code I am compiling float f = 2f float f2 = new ...
Tambapps's user avatar
3 votes
1 answer
1k views

I'm using Spring Boot 2.7.5 with Hibernate 5.6.12.Final and apply bytecode enhancement at build-time via hibernate-enhance-maven-plugin. It works great and prevents eagerly fetching @OneToOne ...
Blockost's user avatar
  • 602
0 votes
0 answers
2k views

I am trying to change the method access modifier through an agent via javassist, however, I get an error. So, is it possible to change the access modifier via java agent and how to fix it? Is there ...
Question_283's user avatar
-1 votes
1 answer
86 views

I'm trying to make a Bytecode VM in python just for fun, as a hobby project, but i have a problem, how i can encode a json file like this: { "code": [["0xf2", "Hello"], [...
partisani's user avatar

15 30 50 per page
1
2 3 4 5
26