title: Grails Java 8 dev-mode Support
body: <p>As Java 7 is now no longer being publicly maintained and Grails 2.4.X support for Java 8 is marginal (it crashes) in dev-mode <em>when reloading</em>.   <strong>I was wondering if anyone had a better luck with Java 8 dev-mode Grails 2.5 or Grails 3</strong> before I migrate?    </p>
  
  <p>In theory a lot of things were upgraded by migrating to the newer Spring Boot (i.e., grails 3).   </p>
  
  <p>My errors:</p>
  
  <pre><code>found a projection 312
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  #  SIGSEGV (0xb) at pc=0x000000010e4eee40, pid=95784, tid=20739
  #
  # JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14)
  # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode bsd-amd64 compressed oops)
  # Problematic frame:
  # V  [libjvm.dylib+0xeee40]
  #
  # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
  #
  # An error report file with more information is saved as:
  # /Users/nathandunn/repositories/Apollo/hs_err_pid95784.log
  [thread 36867 also had an error]
  </code></pre>
  
  <p>From the log file:</p>
  
  <pre><code>Internal exceptions (10 events):
  Event: 40.212 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/ProjectionService$_$tt__loadTrackJson_closure25BeanInfo&gt; (0
  x00000007a09ab690) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile/systemDi
  Event: 40.212 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/ProjectionService$_$tt__loadTrackJson_closure25Customizer&gt; 
  (0x00000007a0a3a9b0) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile/system
  Event: 40.227 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/projection/ProjectionSequence$_toJSONObject_closure1BeanInf
  o&gt; (0x00000007a0e2e020) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile/sys
  Event: 40.228 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/projection/ProjectionSequence$_toJSONObject_closure1Customi
  zer&gt; (0x00000007a0ec5290) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile/s
  Event: 40.232 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/ProjectionService$_createExonLocations_closure9BeanInfo&gt; (0
  x00000007a1048ae0) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile/systemDi
  Event: 40.233 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/ProjectionService$_createExonLocations_closure9Customizer&gt; 
  (0x00000007a10d7a40) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile/system
  Event: 40.237 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/ProjectionService$_extractHighLevelLocations_closure12BeanI
  nfo&gt; (0x00000007a1253d28) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile/s
  Event: 40.238 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/ProjectionService$_extractHighLevelLocations_closure12Custo
  mizer&gt; (0x00000007a12edd70) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile
  Event: 40.243 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/ProjectionService$_extractExonArrayLocations_closure13BeanI
  nfo&gt; (0x00000007a148f458) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile/s
  Event: 40.244 Thread 0x00007f8690d2b800 Exception &lt;a 'java/lang/ClassNotFoundException': org/bbop/apollo/ProjectionService$_extractExonArrayLocations_closure13Custo
  mizer&gt; (0x00000007a152a408) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u45/3457/hotspot/src/share/vm/classfile
  </code></pre>