Fixing some issues with runtime annotations within avian.

We were not properly converting dots to slashes internally for package names
and we did not properly handle Method.getAnnotations and
Method.getAnnotation(Class<T>) on methods without any annotations.

Added some tests to cover these cases.
This commit is contained in:
Mike Keesey
2012-05-22 14:00:31 -06:00
parent 0addd8c814
commit a5c9dd6f24
9 changed files with 55 additions and 25 deletions

View File

@ -358,7 +358,7 @@ public class Proxy {
int[] interfaceIndexes = new int[interfaces.length];
for (int i = 0; i < interfaces.length; ++i) {
interfaceIndexes[i] = ConstantPool.addClass
(pool, interfaces[i].getName());
(pool, interfaces[i].getName().replace('.', '/'));
}
Map<String,avian.VMMethod> virtualMap = new HashMap();