title: Merge java.util.date with java.sql.Time
body: <p>I have an extensive DATE-TIME conversion class, but i came across a scenario that i cannot resolve:</p>
  
  <p>I have a java.util.date: Tue May 10 00:00:00 BST 2011<br>
  I have a java.sql.time: 03:58:44</p>
  
  <p><strong>I need to create a java.util.date: Tue May 10 03:58:44 BST 2011</strong></p>
  
  <p>The only approach i came up with is:</p>
  
  <pre><code>public static Date getDate(Date date, Time time) {
      Calendar calendar=Calendar.getInstance();
      calendar.set(date.getYear(), date.getMonth(), date.getDay(), time.getHours(), time.getMinutes(), time.getSeconds());
      return calendar.getTime();
  }
  </code></pre>
  
  <p>Totally deprecated code, and does not work:
  java.lang.IllegalArgumentException at java.sql.Time.getYear(Unknown Source)</p>
  
  <p>Any ideas?</p>