JByteMod-Beta icon indicating copy to clipboard operation
JByteMod-Beta copied to clipboard

at File ClassDialogue,use Field.getType() to get the wrong type

Open q178666380 opened this issue 7 years ago • 2 comments

if the ClassDialogue.object is an FieldNode,the the value Field of FieldNode always return Object.class here should getType from FieldNode.desc

q178666380 avatar Aug 22 '18 06:08 q178666380

I do not really get what you mean, could you tell me the line where the problem is?

GraxCode avatar Aug 25 '18 11:08 GraxCode

at ClassDialogue,line 51,private Object object if this object is a FieldNode, such as ediing a Field,any code to invoke getType(), ex line 97,98 only return Object.class if field name is "value", following is source of FieldNode public class FieldNode extends FieldVisitor { public int access; public String name; public String desc; public String signature; public Object value; ... }

if you still not get what mean,see my fork

q178666380 avatar Aug 26 '18 20:08 q178666380