judovana / java-runtime-decompiler

GNU General Public License v3.0
68 stars 14 forks source link

declare new class #195

Closed judovana closed 1 year ago

judovana commented 2 years ago

This is how it should be possible

Maybe the /tmp is not necessary, and classloader should be able to take in a Map<String,byte[]>

judovana commented 2 years ago

I wish it is just agent...

AurumTheEnd commented 2 years ago

I wish it is just agent...

Do you get email notifications of me adding issue labels? Or did you just spontaneously notice it?

AurumTheEnd commented 2 years ago

NEW_CLASS string body

able to take in a Map<String,byte[]>

These contradict each other. The agent should receive precompiled bytes, right? Not a String body?

judovana commented 2 years ago

maybe: ClassDefintions defs[] = Profiler.buildProfiledClassDefintions(classes); ...loadAgent.. InstrumentationDelegate.redefineClasses(classDefintions); may be better approach tehn claslaoder

judovana commented 2 years ago

NEW_CLASS string body

able to take in a Map<String,byte[]>

These contradict each other. The agent should receive precompiled bytes, right? Not a String body?

that is nice mireading :)

NEW_CLASS string:name base64:body

That was not type and name, but tvo vars.

judovana commented 1 year ago

done