title: Play : Invalid method Code length
body: <p>I have added one condition on my HTML page that is </p>
  
  <pre><code>#{if userObject == null}
  &lt;a href="/login"&gt;Text&lt;/a&gt;
  #{/if}
  </code></pre>
  
  <p>The code is working fine on the dev mode and getting this error in PROD mode.</p>
  
  <pre><code>SEVERE: Cannot start in PROD mode with errors
  java.lang.ClassFormatError: Invalid method Code length 65561 in class file Template_M1175588447$_run_closure1_closure2
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      at play.templates.GroovyTemplate$TClassLoader.defineTemplate(GroovyTemplate.java:77)
      at play.templates.GroovyTemplate.compile(GroovyTemplate.java:133)
      at play.templates.TemplateLoader.scan(TemplateLoader.java:184)
      at play.templates.TemplateLoader.scan(TemplateLoader.java:194)
      at play.templates.TemplateLoader.scan(TemplateLoader.java:194)
      at play.templates.TemplateLoader.getAllTemplate(TemplateLoader.java:164)
      at play.Play.preCompile(Play.java:501)
      at play.Play.init(Play.java:273)
      at play.server.Server.main(Server.java:131)
  </code></pre>
  
  <p>Is there any way out on this</p>