ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51035] hasmethod NullPointerException @ isMethodFound(
Date Fri, 08 Apr 2011 11:23:01 GMT

--- Comment #3 from Kurt Miller <> 2011-04-08 07:22:58 EDT
(In reply to comment #2)
> OK, usually when the class is not found things are handled differently.
> The only way the class can be null is if findClass throws a SecurityException.
> I'm not sure whether throwing an exception (like we do when the class
> can not be found at all) or returning false would be the better fix.

I agree that we're hitting the SecurityException case. What I don't understand
is why that is the case, because the class exists and <available\> test with
ignoresystemclasses="true" returns true. Shouldn't hasmethod behave similar to
<available\>, such that it can detect if the method exists or not with
ignoresystemclasses="true". Is there a way to work-around the SecurityException
so it can inspect for the method when ignoresystemclasses="true"?

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message