jira-importer opened a new issue, #976:
URL: https://github.com/apache/httpcomponents-client/issues/976

   **[Gordon 
Vidaver](https://issues.apache.org/jira/secure/[email protected])**
 opened 
**[HTTPCLIENT-8](https://issues.apache.org/jira/browse/HTTPCLIENT-8?redirect=false)**
 and commented
   
   When I call LogSource.setLevel, I get the following exception:
   
   java.lang.ClassCastException: java.util.HashMap$Entry
   at org.apache.commons.httpclient.log.LogSource.setLevel
   (LogSource.java:158)
   
   The calling code is :
   
       LogSource.setLevel (Log.OFF);
   
   The error (I believe) is that you should get the value set from the map, not
   the entry set (in LogSource):
   
       static public void setLevel(int level) {
           Iterator it = _logs.entrySet().iterator(); <-- should be 
_logs.values()
           while(it.hasNext()) {
               Log log = (Log)(it.next());
               log.setLevel(level);
           }
       }
   
   
   
   ---
   No further details from 
[HTTPCLIENT-8](https://issues.apache.org/jira/browse/HTTPCLIENT-8?redirect=false)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to