<html>
    <head>
      <base href="http://icedtea.classpath.org/bugzilla/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - API: Avoid ever creating Request objects without a receiver"
   href="http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2052">2052</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>API: Avoid ever creating Request objects without a receiver
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Thermostat
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>hg
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Thermostat
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassigned@icedtea.classpath.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>omajid@redhat.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>thermostat@icedtea.classpath.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The Request API currently allows the creation of requests without a receiever.
The agent encounters a NullPointerException when it tries to handle them, and
no reply (not even ERROR) is ever sent to the client. In my test, the client
hung until I killed it.

A Request without a receiver set is essentially a mistake by the developer
trying to use the Request API. We should try and limit such mistakes. Each
Request object requires a target (in the constructor); it should also require a
receiver.

On a slightly different note, should a receiver be part of the request API at
all? Seems more flexible if anything that wants to handle a request can handle
it.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>