Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!

Dylan Smith

Greenhorn
+ Follow
since Mar 04, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dylan Smith

I am trying to analyse byte code with javassist using simple class MyData:



Here is the code I am running against this class:



It works and prints:


Reference example : https://zgrepcode.com/examples/android/javassist/bytecode/fieldinfo-implementations

Line 35 invokes method add() of collection named strings. The code snippet I posted retrieves only invokeinterface and line 35. OK, I can know that it was class field (getfield).

I would like to know how to get the rest of information:

the field name is strings
the interface method being called is add()

Can some body help me on this.

I am trying to use the below code :



Source : https://zgrepcode.com/examples/java/java/util/base64-implementations
(Example 3)
In the above when I get the decoder object by calling :



What will be the type of decoder I will be getting on it.
I see java has the different RFC (https://www.ietf.org/standards/rfcs/) available like :
  • RFC4648
  • RFC2045

  • Can you please help me on this.
    1 month ago
    I am new to Java and understanding the Period API of Java, Period Examples. It explains nicely about the Period API.
    Can some explain if difference between dates can be found with Period API?
    1 month ago