X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2Fbind%2FBindable.java;h=0e2da13b635d23badfa8fa02f03418867fe08b79;hb=bd03a63787dd15ecb9840aa0ee0315d54d738564;hp=c2c0a02400bf091cf3e06acf72160373041273cc;hpb=8abe88ea7a5d7b1fc20c45b05e6397dad81e7cdb;p=sbp.git diff --git a/src/edu/berkeley/sbp/bind/Bindable.java b/src/edu/berkeley/sbp/bind/Bindable.java index c2c0a02..0e2da13 100644 --- a/src/edu/berkeley/sbp/bind/Bindable.java +++ b/src/edu/berkeley/sbp/bind/Bindable.java @@ -52,7 +52,7 @@ public abstract class Bindable implements ToJava { private final Constructor _constructor; public String toString() { return "BindableConstructor["+_constructor+"]"; } public BindableConstructor(Constructor _constructor) { this._constructor = _constructor; } - public String getSimpleName() { return _constructor.getName(); } + public String getSimpleName() { return _constructor.getDeclaringClass().getSimpleName(); } public A getAnnotation(Class c) { return _constructor.getAnnotation(c); } public Object impose(Object[] fields) { return Reflection.impose(_constructor, fields); } public Annotation[][] getArgAnnotations() { return _constructor.getParameterAnnotations(); }