title: How to intentionally cause a custom java compiler warning message?
body: <p>I'm about to commit an ugly temporary hack in order to work around a blocking issue while we wait for an external resource to be fixed.  Aside from marking it with a big scary comment and a bunch of FIXMEs, I'd love to have the compiler throw an obvious warning message as a reminder so we don't forget to take this out.  For example, something like:</p>
  
  <pre><code>[javac] com.foo.Hacky.java:192: warning: FIXME temporary hack to work around library bug, remove me when library is fixed!
  </code></pre>
  
  <p>Is there a way I can cause an intentional compiler warning with a message of my choosing?  Failing that, what's the easiest thing to add to the code to throw an existing warning, with perhaps a message in a string on the offending line so it gets printed in the warning message?</p>
  
  <p>EDIT:
  Deprecated tags don't seem to be doing anything for me:</p>
  
  <pre><code>/**
   * @deprecated "Temporary hack to work around remote server quirks"
   */
  @Deprecated
  private void doSomeHackyStuff() { ... }
  </code></pre>
  
  <p>No compiler or runtime errors in eclipse or from sun javac 1.6 (running from ant script), and it's definitely executing the function.</p>