
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Hi All,
I`m trying to write some custom FindBugs rules.
I need some help as to figure out how to get the value as
highlighted below,
I`m able to get the correct OPCODE value in side the
sawopcode method but when I try to call the super class methods to get operand
or other information
I always get an exception “xxxmethod called but value
not available”;
I need to get the value like the value being pushed on to
the stack using bipush or sipush.
Code::Code(max_stack = 2, max_locals = 2, code_length = 23)
0: ldc
"AES" (3)
2:
invokestatic
javax.crypto.KeyGenerator.getInstance (Ljava/lang/String
;)Ljavax/crypto/KeyGenerator; (4)
5: astore_1
6: aload_1
7:
bipush 127
9: invokevirtual
javax.crypto.KeyGenerator.init (I)V (5)
12: aload_0
13:
getfield
com.symcor.pmd.test.KeyTooShort.k1 Ljavax/crypto/KeyGenerator; (2)
16:
sipush 128
19: invokevirtual
javax.crypto.KeyGenerator.init (I)V (5)
22: return
Please help me out.
Thanks & Regards
Gaurav Thakur
_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss