Descriptor stuff
This commit is contained in:
@@ -55,7 +55,7 @@ public class ClassInstance
|
||||
public StaticFieldInstance findStaticField(NameAndType nat)
|
||||
{
|
||||
for (StaticFieldInstance f : fields)
|
||||
if (f.getField().getName().equals(nat.getName()) && f.getField().getDescriptor().equals(nat.getDescriptor()))
|
||||
if (f.getField().getName().equals(nat.getName()) && f.getField().getType().equals(nat.getDescriptorType()))
|
||||
return f;
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class ObjectInstance extends ObjectInstanceBase
|
||||
public FieldInstance getField(NameAndType nat)
|
||||
{
|
||||
for (FieldInstance f : fields)
|
||||
if (f.getField().getName().equals(nat.getName()) && f.getField().getDescriptor().equals(nat.getDescriptor()))
|
||||
if (f.getField().getName().equals(nat.getName()) && f.getField().getType().equals(nat.getDescriptorType()))
|
||||
return f;
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user