Mercurial > hg > Members > kono > jpf-core
diff src/main/gov/nasa/jpf/vm/NativePeer.java @ 25:3517702bd768
added class name to warning for ambiguous native methods (without MJI signatures)
fixed VarTracker, which was utterly unaware of new instruction type hierarchy.
added JVMArrayElementInstruction.get{Array/Index}Attr(ti) since listeners most
likely use attrs which otherwise would have to be retrieved/cached in
executeInstruction() notifications (e.g. variable name for array)
fixed ReadInstruction, which somehow extended StoreInstruction
author | Peter Mehlitz <pcmehlitz@gmail.com> |
---|---|
date | Wed, 22 Apr 2015 15:54:26 -0700 |
parents | 61d41facf527 |
children |
line wrap: on
line diff
--- a/src/main/gov/nasa/jpf/vm/NativePeer.java Tue Apr 21 00:34:15 2015 -0700 +++ b/src/main/gov/nasa/jpf/vm/NativePeer.java Wed Apr 22 15:54:26 2015 -0700 @@ -407,7 +407,7 @@ return annotation.noOrphanWarning(); } - private static MethodInfo searchMethod (String mname, MethodInfo[] methods) { + private MethodInfo searchMethod (String mname, MethodInfo[] methods) { int idx = -1; for (int j = 0; j < methods.length; j++) { @@ -419,7 +419,7 @@ if (idx == -1) { idx = j; } else { - throw new JPFException("overloaded native method without signature: " + mname); + throw new JPFException("overloaded native method without signature: " + ci.getName() + '.' + mname); } } }