|
|
|||||||||||||||||||||||||||||||||||||||||||||||
It was recently discovered that use of the ExcludeDoclet
would screw up the "Tree" javadoc view. I luckily guessed that it might be due
to proxy instances being compared with unwrapped instances as javadoc
searched for common superclasses. Here is a patch:
*** ExcludeDoclet.java.~1.4.~ Tue Jan 18 20:46:07 2005
--- ExcludeDoclet.java Sat Mar 5 22:32:49 2005
***************
*** 83,88 ****
--- 83,89 ----
if (args != null) {
String methodName = method.getName();
if (methodName.equals("compareTo") ||
+ methodName.equals("equals") ||
methodName.equals("overrides") ||
methodName.equals("subclassOf")) {
args[0] = unwrap(args[0] );
***************
*** 97,103 ****
private Object unwrap(Object proxy)
{
! return ((ExcludeHandler)Proxy.getInvocationHandler(proxy)).target;
}
}
}
--- 98,106 ----
private Object unwrap(Object proxy)
{
! if (proxy instanceof Proxy)
! return ((ExcludeHandler)Proxy.getInvocationHandler(proxy)).target;
! return proxy;
}
}
}
The full source for ExcludeDoclet has also been updated.