Questions tagged [bcel]

Apache Byte Code Engineering Library, an open-source library for inspecting and manipulating Java byte code files (.class files)

For details see: http://jakarta.apache.org/bcel/

123 questions
0
votes
2 answers

Extracting and executing an arbitrary sequence of Java bytecodes

Given the .class file of Java Class A, is there a way (with BCEL, ASM, etc. for instance) to extract a given bytecode sequence (assuming it's a basic block), place it in a separate location, and then later execute that sequence of…
ChaimKut
  • 2,759
  • 3
  • 38
  • 64
-1
votes
1 answer

How to obtain generic type of list

I am using the BCEL library to analyze some code. I came across a method (getAllNames()) whose return type is List< Name >. I want to be able to obtain the return type of this method. I want to be able to obtain the full class of "Name". I have…
user161733
  • 21
  • 5
-1
votes
2 answers

if local variables cant be tested then what other ways can the variable values be checked

This is going to be a long question, driven by the thirst of wanting to know how something is working against the conventional methodologies. I came across a very interesting application codeacademy, that was actually testing the local variables…
isnvi23h4
  • 1,910
  • 1
  • 27
  • 45
1 2 3
8
9