title: Spring security annotations with EL -- requires debug information compiled in?
body: <p>I am considering using Spring Security annotations for my application, with the EL (expression language) feature.  For example:</p>
  
  <pre><code>@PreAuthorize("hasPermission(#contact, 'admin')")
  public void deletePermission(Contact contact, Sid recipient, Permission permission);
  </code></pre>
  
  <p>I need the EL capability because I have built my own ACL implementation.  However, to use this capability with the "#contact" type arguments, the Spring documentation says this:</p>
  
  <blockquote>
    <p>You can access any of the method
    arguments by name as expression
    variables, provided your code has
    debug information compiled in.</p>
  </blockquote>
  
  <p>This begs two questions:</p>
  
  <ol>
  <li>It is acceptable to have a
  production application commercially
  distributed with debug info in it?</li>
  <li>If not, is there any way around
  this?</li>
  </ol>
  
  <p>Thanks for any guidance on this!</p>