Re: [BCEL] deprecation of getClassName in generic/FieldOrMethod

2015-09-09 Thread sebb
On 9 September 2015 at 11:11, sebb wrote: > On 4 September 2015 at 18:46, Mark Roberts wrote: >> I read and understood the comment as to the reasoning, but the problem is >> the shared code nature of FieldOrMethod. > > What comment was that? I see now, you meant the comment against the method g

Re: [BCEL] deprecation of getClassName in generic/FieldOrMethod

2015-09-09 Thread sebb
On 4 September 2015 at 18:46, Mark Roberts wrote: > I read and understood the comment as to the reasoning, but the problem is the > shared code nature of FieldOrMethod. What comment was that? > When dealing with a method you know a priori that the object cannot be an > array. Now to get the C

[BCEL] deprecation of getClassName in generic/FieldOrMethod

2015-09-04 Thread Mark Roberts
I read and understood the comment as to the reasoning, but the problem is the shared code nature of FieldOrMethod. When dealing with a method you know a priori that the object cannot be an array. Now to get the ClassName of an InvokeInstruction operand you must say invoke.getReferenceType(cp)