title: GWT for cycle is not cycling
body: <p>I am developing a GWT application and I have that method:</p>
  
  <pre><code>    private static List&lt;Ticket&gt; getTicketsFromJSON(String ticketsJSONString) {
      JSONValue ticketsArrayValue = JSONParser.parseLenient(ticketsJSONString);
      JSONArray ticketsArray = ticketsArrayValue.isArray();
      List&lt;Ticket&gt; ticketsList = new LinkedList&lt;Ticket&gt;();
  
      for (int i = 0; i &lt; ticketsArray.size(); i++) {
  
          JSONObject ticketJSON = ticketsArray.get(i).isObject();
          Ticket ticket = new Ticket((int)ticketJSON.get("id").isNumber().doubleValue(), 
                  ticketJSON.get("name").isString().stringValue(),
                  ticketJSON.get("description").isString().stringValue(),
                  (int)ticketJSON.get("complexity").isNumber().doubleValue(),
                  (int)ticketJSON.get("priority").isNumber().doubleValue(),
                  (long)ticketJSON.get("started").isNumber().doubleValue(),
                  (long)ticketJSON.get("finished").isNumber().doubleValue(),
                  (long)ticketJSON.get("timespent").isNumber().doubleValue());
          ticketsList.add(ticket);
      }
      Window.alert("Out of the cicle");
      return ticketsList;
  }
  </code></pre>
  
  <p>It seems that I enter the cycle but after the creation of the Ticket object nothing is happening. May be the object isn't even initialising. Here is the Ticket class:</p>
  
  <pre><code>    package org.kanbanizer.client.beans;
  
  public class Ticket {
      private int id;
      private String name;
      private String description;
      private int complexity;
      private int priority;
      private long started;
      private long finished;
      private long timespent;
  
      public Ticket() {
      }
  
      public Ticket(int id, String name, String description, int complexity,
              int priority, long started, long finished, long timespent) {
          this.id = id;
          this.name = name;
          this.description = description;
          this.complexity = complexity;
          this.priority = priority;
          this.started = started;
          this.finished = finished;
          this.timespent = timespent;
      }
  
      public int getId() {
          return id;
      }
  
      public void setId(int id) {
          this.id = id;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getDescription() {
          return description;
      }
  
      public void setDescription(String description) {
          this.description = description;
      }
  
      public int getComplexity() {
          return complexity;
      }
  
      public void setComplexity(int complexity) {
          this.complexity = complexity;
      }
  
      public int getPriority() {
          return priority;
      }
  
      public void setPriority(int priority) {
          this.priority = priority;
      }
  
      public long getStarted() {
          return started;
      }
  
      public void setStarted(long started) {
          this.started = started;
      }
  
      public long getFinished() {
          return finished;
      }
  
      public void setFinished(long finished) {
          this.finished = finished;
      }
  
      public long getTimespent() {
          return timespent;
      }
  
      public void setTimespent(long timespent) {
          this.timespent = timespent;
      }
  
  }
  </code></pre>
  
  <p>I tried to use and Integer.parseInt to get the value but the result was the same. The string that is the argument of the method isn't empty. If someone knows why isn't it working please tell me.</p>