You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2010/04/22 00:20:55 UTC
svn commit: r936546 -
/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java
Author: maartenc
Date: Wed Apr 21 22:20:55 2010
New Revision: 936546
URL: http://svn.apache.org/viewvc?rev=936546&view=rev
Log:
The original Authenticator was not obtained correctly (it's a private field, so we need to call setAccessible(true) !
Modified:
ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java
Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java?rev=936546&r1=936545&r2=936546&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java Wed Apr 21 22:20:55 2010
@@ -51,9 +51,10 @@ public final class IvyAuthenticator exte
try {
Field f = Authenticator.class.getDeclaredField("theAuthenticator");
+ f.setAccessible(true);
original = (Authenticator) f.get(null);
} catch (Throwable t) {
- Message.debug("Error occured while getting the original authenticator!");
+ Message.debug("Error occured while getting the original authenticator: " + t.getMessage());
}
if (!(original instanceof IvyAuthenticator)) {