Peter Reilly wrote:

Good catch,
the javadoc is out of date.

However, there are cases that null can be returned: <script language="beanshell"> hello = project.createTask("echo"); System.out.println("hello's owner is " + hello.getOwningTarget()); </script>

Peter

Peter
Darin Swanson wrote:

Tasks that are top level tasks (in the "implicit" target) are returning the implicit target for Task.getOwningTarget()

This appears to clash with the javadoc for set/getOwningTarget.

Can the owning target be null or the implicit target or is the javadoc out of date (null cannot be returned)?

Thanks
Darins




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to