title: Unable to access java fields in clojure
body: <p>I'm having an issue where I can see the fields of a Java class/object, but I can't actually access them. I can see the fields in two ways. Using this following code.</p>
  
  <pre><code>=&gt;(require '[clojure.reflect :as r])    
  =&gt;(use '[clojure.pprint :only [print-table]])    
  =&gt;(print-table (sort-by :name (:members (r/reflect  myClass))))
  </code></pre>
  
  <p>And also, by creating an instance of the object. Let's say the fields are an int denoted a, a string denoted word , and a String ArrayList denoted mylist.</p>
  
  <pre><code>=&gt;myObj
  #&lt;myClass 1 hello [world]&gt;
  </code></pre>
  
  <p>In both cases, I can see that these fields exist. However, when I run the following code, I get the following error.</p>
  
  <pre><code>=&gt;(. myObj mylist)
  IllegalArgumentException No matching field found: mylist for class myClass clojure.lang.Reflector.getInstanceField (Reflector.java:271)
  </code></pre>
  
  <p>Does anyone have any idea what is going on?</p>
  
  <hr>
  
  <p>In response to Nicolas Modrzyk's answer, I run (.-myFieild myObject) and get 
      IllegalArgumentException No matching field found: myField for class myClass clojure.lang.Reflector.invokeNoArgInstanceMember (Reflector.java:308)</p>
  
  <p>Additionally, these fields are not private. I have the Java source code in front of me.</p>