ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r936546 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java
Date Wed, 21 Apr 2010 22:20:55 GMT
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)) {



Mime
View raw message