title: Source not found error in Eclipse (Java)
body: <p>I have thhis few lines of code:</p>
  
  <pre><code>Set&lt;Group&gt; setofAllGroups;
  setofAllGroups = new TreeSet&lt;Group&gt;();
  Group[] allGroupsArray = (Group[]) setofAllGroups.toArray();
  </code></pre>
  
  <p>the last line causes a runtime error, in debug mode I get "Source not found" </p>
  
  <p>the code for the class Group:</p>
  
  <pre><code>public class Group 
  {
  String groupName;
  Set&lt;Recipient&gt; groupMembers;
  
  public Group()
  {
      groupName = "";
      groupMembers = new TreeSet&lt;Recipient&gt;();
  }
  
  public void setGroupName(String name)
  {
      groupName = name;
      return;
  }
  
  public void addMember(Recipient toAdd)
  {
      groupMembers.add(toAdd);
      return;
  }
  public void addMember(String name, String phoneNumber)
  {
      Recipient toAdd = new Recipient(name, phoneNumber);
      groupMembers.add(toAdd);
      return;
  }
  public void removeMember(Recipient toRemove)
  {
      groupMembers.remove(toRemove);
  }
  public void removeMember(String name, String phoneNumber)
  {
      Recipient toRemove = new Recipient(name, phoneNumber);
      groupMembers.remove(toRemove);
  }
  public void removeAllGroupMembers()
  {
      groupMembers.clear();
  }
  
  }
  </code></pre>
  
  <p>What is the reason for the runtime error ?</p>