grails / grails-core

The Grails Web Application Framework
http://grails.org
Apache License 2.0
2.79k stars 949 forks source link

GRAILS-11486: Repetitive method name/signature when upgrading to jdk 8 using Grails 2.3.x #1981

Closed graemerocher closed 9 years ago

graemerocher commented 10 years ago

Original Reporter: pkrasmus Environment: Windows 7 / JDK 8 / Grails 2.3.6 / intellij idea 13 Version: 2.3.6 Migrated From: http://jira.grails.org/browse/GRAILS-11486

We are trying to upgrade to JDK 8 and started out trying to keep our current grailsversion (2.3.6). One thing at the time to mess up stuff :) When compiling with jdk 8 and grails 2.3.6 (compile --refresh-dependencies --stacktrace) i get this: {code:xml} C:\jdk1.8_64\bin\java -Dgrails.home=C:\grails-2.3.6 -Dbase.dir=C:\udvikling\GSProJDK8_NO_GRAILS\Arkiv -Dtools.jar=C:\jdk1.8_64\lib\tools.jar -Dgroovy.starter.conf=C:\grails-2.3.6/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -Djline.WindowsTerminal.directConsole=false -Dfile.encoding=windows-1252 -classpath C:\grails-2.3.6\lib\org.codehaus.groovy\groovy-all\jars\groovy-all-2.1.9.jar;C:\grails-2.3.6\dist\grails-bootstrap-2.3.6.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\grails-2.3.6/conf/groovy-starter.conf "compile --refresh-dependencies --stacktrace -plain-output"|Loading Grails 2.3.6 |Configuring classpath :: resolving dependencies :: org.grails.internal#arkiv;1.5 confs: [build] found xalan#serializer;2.7.1 in cache found org.grails#grails-bootstrap;2.3.6 in cache found org.slf4j#jcl-over-slf4j;1.7.5 in cache found org.slf4j#slf4j-api;1.7.5 in cache found org.apache.ant#ant;1.8.4 in cache found org.apache.ant#ant-launcher;1.8.4 in cache found jline#jline;2.11 in cache found org.apache.ant#ant-trax;1.7.1 in cache found net.java.dev.jna#jna;4.0.0 in cache found org.apache.ant#ant-junit;1.8.4 in cache found org.codehaus.gant#gant_groovy1.8;1.9.6 in cache found org.apache.ivy#ivy;2.3.0 in cache found org.fusesource.jansi#jansi;1.11 in cache found org.grails#grails-scripts;2.3.6 in cache found org.spockframework#spock-core;0.7-groovy-2.0 in cache found org.hamcrest#hamcrest-core;1.3 in cache found junit#junit;4.11 in cache found org.grails.plugins#tomcat;7.0.47 in cache found org.apache.tomcat.embed#tomcat-embed-core;7.0.47 in cache found org.apache.tomcat#tomcat-catalina-ant;7.0.47 in cache found org.apache.tomcat.embed#tomcat-embed-jasper;7.0.47 in cache found org.apache.tomcat.embed#tomcat-embed-logging-log4j;7.0.47 in cache found org.eclipse.jdt.core.compiler#ecj;3.7.2 in cache :: resolution report :: resolve 296ms :: artifacts dl 18ms :: evicted modules: org.apache.ant#ant;1.8.2 by [org.apache.ant#ant;1.8.4] in [build]

|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|       build      |   24  |   0   |   0   |   1   ||   23  |   0   |
---------------------------------------------------------------------

:: resolving dependencies :: org.grails.internal#arkiv;1.5 confs: [provided] found javax.servlet#javax.servlet-api;3.0.1 in cache :: resolution report :: resolve 16ms :: artifacts dl 0ms

|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|     provided     |   1   |   0   |   0   |   0   ||   1   |   0   |
---------------------------------------------------------------------

:: resolving dependencies :: org.grails.internal#arkiv;1.5 confs: [test] found org.codehaus.groovy#groovy-all;2.1.9 in cache found org.grails#grails-plugin-rest;2.3.6 in cache found org.slf4j#jcl-over-slf4j;1.7.5 in cache found org.slf4j#slf4j-api;1.7.5 in cache found org.grails#grails-web;2.3.6 in cache found commons-collections#commons-collections;3.2.1 in cache found org.grails#grails-async;2.3.6 in cache found org.codehaus.gpars#gpars;1.1.0 in cache found org.multiverse#multiverse-core;0.7.0 in cache found org.codehaus.jsr166-mirror#jsr166y;1.7.0 in cache found commons-io#commons-io;2.2 in cache found com.googlecode.concurrentlinkedhashmap#concurrentlinkedhashmap-lru;1.3.1 in cache found commons-fileupload#commons-fileupload;1.3.1 in cache found opensymphony#sitemesh;2.4 in cache found org.grails#grails-spring;2.3.6 in cache found org.springframework#spring-web;3.2.7.RELEASE in cache found org.springframework#spring-aop;3.2.7.RELEASE in cache found aopalliance#aopalliance;1.0 in cache found org.springframework#spring-beans;3.2.7.RELEASE in cache found org.springframework#spring-core;3.2.7.RELEASE in cache found org.springframework#spring-context;3.2.7.RELEASE in cache found org.springframework#spring-expression;3.2.7.RELEASE in cache found org.springframework#spring-tx;3.2.7.RELEASE in cache found org.grails#grails-bootstrap;2.3.6 in cache found org.grails#grails-databinding;2.3.6 in cache found commons-lang#commons-lang;2.6 in cache found junit#junit;4.11 in cache found org.hamcrest#hamcrest-core;1.3 in cache found org.grails#grails-plugin-domain-class;2.3.6 in cache found org.grails#grails-datastore-simple;3.0.0.RELEASE in cache found org.grails#grails-datastore-core;3.0.0.RELEASE in cache found org.hibernate.javax.persistence#hibernate-jpa-2.1-api;1.0.0.Final in cache found javax.transaction#jta;1.1 in cache found org.grails#grails-datastore-gorm;3.0.0.RELEASE in cache found org.grails#grails-core;2.3.6 in cache found commons-validator#commons-validator;1.3.1 in cache found xpp3#xpp3_min;1.1.4c in cache found commons-el#commons-el;1.0 in cache found org.springframework#spring-webmvc;3.2.7.RELEASE in cache found commons-beanutils#commons-beanutils;1.8.3 in cache found org.springframework#spring-context-support;3.2.7.RELEASE in cache found org.objenesis#objenesis;1.4 in cache found com.google.code.gson#gson;2.2.4 in cache found taglibs#standard;1.1.2 in cache found org.aspectj#aspectjweaver;1.7.2 in cache found org.aspectj#aspectjrt;1.7.2 in cache found oro#oro;2.0.8 in cache found xalan#serializer;2.7.1 in cache found asm#asm;3.3.1 in cache found cglib#cglib;2.2.2 in cache found org.springframework#spring-aspects;3.2.7.RELEASE in cache found javax.servlet#jstl;1.1.2 in cache found org.grails#grails-plugin-datasource;2.3.6 in cache found org.apache.tomcat#tomcat-jdbc;7.0.50 in cache found org.apache.tomcat#tomcat-juli;7.0.50 in cache found org.springframework#spring-jdbc;3.2.7.RELEASE in cache found org.apache.tomcat.embed#tomcat-embed-logging-log4j;7.0.50 in cache found org.grails#grails-plugin-controllers;2.3.6 in cache found org.grails#grails-plugin-mimetypes;2.3.6 in cache found org.grails#grails-plugin-converters;2.3.6 in cache found org.grails#grails-plugin-validation;2.3.6 in cache found org.grails#grails-plugin-databinding;2.3.6 in cache found org.grails#grails-plugin-i18n;2.3.6 in cache found org.grails#grails-plugin-filters;2.3.6 in cache found org.grails#grails-plugin-gsp;2.3.6 in cache found org.grails#grails-plugin-codecs;2.3.6 in cache found commons-codec#commons-codec;1.6 in cache found org.grails#grails-logging;2.3.6 in cache found org.grails#grails-plugin-log4j;2.3.6 in cache found log4j#log4j;1.2.17 in cache found org.slf4j#jul-to-slf4j;1.7.5 in cache found org.grails#grails-plugin-services;2.3.6 in cache found org.grails#grails-plugin-servlets;2.3.6 in cache found org.grails#grails-plugin-url-mappings;2.3.6 in cache found org.grails#grails-plugin-async;2.3.6 in cache found org.grails.plugins#spring-security-core;2.0-RC2 in cache found org.springframework.security#spring-security-core;3.2.0.RC1 in cache found org.springframework.security#spring-security-web;3.2.0.RC1 in cache found org.grails.plugins#webxml;1.4.1 in cache found org.grails.plugins#spring-security-ldap;2.0-RC2 in cache found org.springframework.security#spring-security-ldap;3.2.0.RC1 in cache found org.springframework.ldap#spring-ldap-core;1.3.2.RELEASE in cache found dk.gensam.grails.plugins#grails-web-plugin;0.3.6 in cache found org.grails.plugins#jquery-ui;1.10.3 in cache found org.grails.plugins#jquery;1.10.2 in cache found com.h2database#h2;1.3.173 in cache found org.grails#grails-resources;2.3.6 in cache found org.grails#grails-plugin-testing;2.3.6 in cache found org.grails#grails-test;2.3.6 in cache found org.apache.ant#ant;1.8.4 in cache found org.apache.ant#ant-launcher;1.8.4 in cache found org.spockframework#spock-core;0.7-groovy-2.0 in cache found junit#junit-dep;4.10 in cache found org.apache.ant#ant-junit;1.8.4 in cache found org.springframework#spring-test;3.2.7.RELEASE in cache :: resolution report :: resolve 774ms :: artifacts dl 49ms :: evicted modules: org.hamcrest#hamcrest-core;1.1 by [org.hamcrest#hamcrest-core;1.3] in [test] org.codehaus.groovy#groovy-all;2.0.5 by [org.codehaus.groovy#groovy-all;2.1.9] in [test] junit#junit;3.8.2 by [junit#junit;4.11] in [test]

|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|       test       |   98  |   0   |   0   |   3   ||   95  |   0   |
---------------------------------------------------------------------

:: resolving dependencies :: org.grails.internal#arkiv;1.5 confs: [runtime] found org.codehaus.groovy#groovy-all;2.1.9 in cache found org.grails#grails-plugin-rest;2.3.6 in cache found org.slf4j#jcl-over-slf4j;1.7.5 in cache found org.slf4j#slf4j-api;1.7.5 in cache found org.grails#grails-web;2.3.6 in cache found commons-collections#commons-collections;3.2.1 in cache found org.grails#grails-async;2.3.6 in cache found org.codehaus.gpars#gpars;1.1.0 in cache found org.multiverse#multiverse-core;0.7.0 in cache found org.codehaus.jsr166-mirror#jsr166y;1.7.0 in cache found commons-io#commons-io;2.2 in cache found com.googlecode.concurrentlinkedhashmap#concurrentlinkedhashmap-lru;1.3.1 in cache found commons-fileupload#commons-fileupload;1.3.1 in cache found opensymphony#sitemesh;2.4 in cache found org.grails#grails-spring;2.3.6 in cache found org.springframework#spring-web;3.2.7.RELEASE in cache found org.springframework#spring-aop;3.2.7.RELEASE in cache found aopalliance#aopalliance;1.0 in cache found org.springframework#spring-beans;3.2.7.RELEASE in cache found org.springframework#spring-core;3.2.7.RELEASE in cache found org.springframework#spring-context;3.2.7.RELEASE in cache found org.springframework#spring-expression;3.2.7.RELEASE in cache found org.springframework#spring-tx;3.2.7.RELEASE in cache found org.grails#grails-bootstrap;2.3.6 in cache found org.grails#grails-databinding;2.3.6 in cache found commons-lang#commons-lang;2.6 in cache found junit#junit;4.11 in cache found org.hamcrest#hamcrest-core;1.3 in cache found org.grails#grails-plugin-domain-class;2.3.6 in cache found org.grails#grails-datastore-simple;3.0.0.RELEASE in cache found org.grails#grails-datastore-core;3.0.0.RELEASE in cache found org.hibernate.javax.persistence#hibernate-jpa-2.1-api;1.0.0.Final in cache found javax.transaction#jta;1.1 in cache found org.grails#grails-datastore-gorm;3.0.0.RELEASE in cache found org.grails#grails-core;2.3.6 in cache found commons-validator#commons-validator;1.3.1 in cache found xpp3#xpp3_min;1.1.4c in cache found commons-el#commons-el;1.0 in cache found org.springframework#spring-webmvc;3.2.7.RELEASE in cache found commons-beanutils#commons-beanutils;1.8.3 in cache found org.springframework#spring-context-support;3.2.7.RELEASE in cache found org.objenesis#objenesis;1.4 in cache found com.google.code.gson#gson;2.2.4 in cache found taglibs#standard;1.1.2 in cache found org.aspectj#aspectjweaver;1.7.2 in cache found org.aspectj#aspectjrt;1.7.2 in cache found oro#oro;2.0.8 in cache found xalan#serializer;2.7.1 in cache found asm#asm;3.3.1 in cache found cglib#cglib;2.2.2 in cache found org.springframework#spring-aspects;3.2.7.RELEASE in cache found javax.servlet#jstl;1.1.2 in cache found org.grails#grails-plugin-datasource;2.3.6 in cache found org.apache.tomcat#tomcat-jdbc;7.0.50 in cache found org.apache.tomcat#tomcat-juli;7.0.50 in cache found org.springframework#spring-jdbc;3.2.7.RELEASE in cache found org.apache.tomcat.embed#tomcat-embed-logging-log4j;7.0.50 in cache found org.grails#grails-plugin-controllers;2.3.6 in cache found org.grails#grails-plugin-mimetypes;2.3.6 in cache found org.grails#grails-plugin-converters;2.3.6 in cache found org.grails#grails-plugin-validation;2.3.6 in cache found org.grails#grails-plugin-databinding;2.3.6 in cache found org.grails#grails-plugin-i18n;2.3.6 in cache found org.grails#grails-plugin-filters;2.3.6 in cache found org.grails#grails-plugin-gsp;2.3.6 in cache found org.grails#grails-plugin-codecs;2.3.6 in cache found commons-codec#commons-codec;1.6 in cache found org.grails#grails-logging;2.3.6 in cache found org.grails#grails-plugin-log4j;2.3.6 in cache found log4j#log4j;1.2.17 in cache found org.slf4j#jul-to-slf4j;1.7.5 in cache found org.grails#grails-plugin-services;2.3.6 in cache found org.grails#grails-plugin-servlets;2.3.6 in cache found org.grails#grails-plugin-url-mappings;2.3.6 in cache found org.grails#grails-plugin-async;2.3.6 in cache found org.grails.plugins#spring-security-core;2.0-RC2 in cache found org.springframework.security#spring-security-core;3.2.0.RC1 in cache found org.springframework.security#spring-security-web;3.2.0.RC1 in cache found org.grails.plugins#webxml;1.4.1 in cache found org.grails.plugins#spring-security-ldap;2.0-RC2 in cache found org.springframework.security#spring-security-ldap;3.2.0.RC1 in cache found org.springframework.ldap#spring-ldap-core;1.3.2.RELEASE in cache found dk.gensam.grails.plugins#grails-web-plugin;0.3.6 in cache found org.grails.plugins#jquery-ui;1.10.3 in cache found org.grails.plugins#jquery;1.10.2 in cache found com.h2database#h2;1.3.173 in cache found org.grails#grails-resources;2.3.6 in cache :: resolution report :: resolve 332ms :: artifacts dl 41ms

|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|      runtime     |   87  |   0   |   0   |   0   ||   87  |   0   |
---------------------------------------------------------------------

:: resolving dependencies :: org.grails.internal#arkiv;1.5 confs: [compile] found org.codehaus.groovy#groovy-all;2.1.9 in cache found org.grails#grails-plugin-rest;2.3.6 in cache found org.slf4j#jcl-over-slf4j;1.7.5 in cache found org.slf4j#slf4j-api;1.7.5 in cache found org.grails#grails-web;2.3.6 in cache found commons-collections#commons-collections;3.2.1 in cache found org.grails#grails-async;2.3.6 in cache found org.codehaus.gpars#gpars;1.1.0 in cache found org.multiverse#multiverse-core;0.7.0 in cache found org.codehaus.jsr166-mirror#jsr166y;1.7.0 in cache found commons-io#commons-io;2.2 in cache found com.googlecode.concurrentlinkedhashmap#concurrentlinkedhashmap-lru;1.3.1 in cache found commons-fileupload#commons-fileupload;1.3.1 in cache found opensymphony#sitemesh;2.4 in cache found org.grails#grails-spring;2.3.6 in cache found org.springframework#spring-web;3.2.7.RELEASE in cache found org.springframework#spring-aop;3.2.7.RELEASE in cache found aopalliance#aopalliance;1.0 in cache found org.springframework#spring-beans;3.2.7.RELEASE in cache found org.springframework#spring-core;3.2.7.RELEASE in cache found org.springframework#spring-context;3.2.7.RELEASE in cache found org.springframework#spring-expression;3.2.7.RELEASE in cache found org.springframework#spring-tx;3.2.7.RELEASE in cache found org.grails#grails-bootstrap;2.3.6 in cache found org.grails#grails-databinding;2.3.6 in cache found commons-lang#commons-lang;2.6 in cache found junit#junit;4.11 in cache found org.hamcrest#hamcrest-core;1.3 in cache found org.grails#grails-plugin-domain-class;2.3.6 in cache found org.grails#grails-datastore-simple;3.0.0.RELEASE in cache found org.grails#grails-datastore-core;3.0.0.RELEASE in cache found org.hibernate.javax.persistence#hibernate-jpa-2.1-api;1.0.0.Final in cache found javax.transaction#jta;1.1 in cache found org.grails#grails-datastore-gorm;3.0.0.RELEASE in cache found org.grails#grails-core;2.3.6 in cache found commons-validator#commons-validator;1.3.1 in cache found xpp3#xpp3_min;1.1.4c in cache found commons-el#commons-el;1.0 in cache found org.springframework#spring-webmvc;3.2.7.RELEASE in cache found commons-beanutils#commons-beanutils;1.8.3 in cache found org.springframework#spring-context-support;3.2.7.RELEASE in cache found org.objenesis#objenesis;1.4 in cache found com.google.code.gson#gson;2.2.4 in cache found taglibs#standard;1.1.2 in cache found org.aspectj#aspectjweaver;1.7.2 in cache found org.aspectj#aspectjrt;1.7.2 in cache found oro#oro;2.0.8 in cache found xalan#serializer;2.7.1 in cache found asm#asm;3.3.1 in cache found cglib#cglib;2.2.2 in cache found org.springframework#spring-aspects;3.2.7.RELEASE in cache found javax.servlet#jstl;1.1.2 in cache found org.grails#grails-plugin-datasource;2.3.6 in cache found org.apache.tomcat#tomcat-jdbc;7.0.50 in cache found org.apache.tomcat#tomcat-juli;7.0.50 in cache found org.springframework#spring-jdbc;3.2.7.RELEASE in cache found org.apache.tomcat.embed#tomcat-embed-logging-log4j;7.0.50 in cache found org.grails#grails-plugin-controllers;2.3.6 in cache found org.grails#grails-plugin-mimetypes;2.3.6 in cache found org.grails#grails-plugin-converters;2.3.6 in cache found org.grails#grails-plugin-validation;2.3.6 in cache found org.grails#grails-plugin-databinding;2.3.6 in cache found org.grails#grails-plugin-i18n;2.3.6 in cache found org.grails#grails-plugin-filters;2.3.6 in cache found org.grails#grails-plugin-gsp;2.3.6 in cache found org.grails#grails-plugin-codecs;2.3.6 in cache found commons-codec#commons-codec;1.6 in cache found org.grails#grails-logging;2.3.6 in cache found org.grails#grails-plugin-log4j;2.3.6 in cache found log4j#log4j;1.2.17 in cache found org.slf4j#jul-to-slf4j;1.7.5 in cache found org.grails#grails-plugin-services;2.3.6 in cache found org.grails#grails-plugin-servlets;2.3.6 in cache found org.grails#grails-plugin-url-mappings;2.3.6 in cache found org.grails#grails-plugin-async;2.3.6 in cache found org.grails.plugins#spring-security-core;2.0-RC2 in cache found org.springframework.security#spring-security-core;3.2.0.RC1 in cache found org.springframework.security#spring-security-web;3.2.0.RC1 in cache found org.grails.plugins#webxml;1.4.1 in cache found org.grails.plugins#spring-security-ldap;2.0-RC2 in cache found org.springframework.security#spring-security-ldap;3.2.0.RC1 in cache found org.springframework.ldap#spring-ldap-core;1.3.2.RELEASE in cache found dk.gensam.grails.plugins#grails-web-plugin;0.3.6 in cache found org.grails.plugins#jquery-ui;1.10.3 in cache found org.grails.plugins#jquery;1.10.2 in cache :: resolution report :: resolve 320ms :: artifacts dl 37ms

|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|      compile     |   85  |   0   |   0   |   0   ||   85  |   0   |
---------------------------------------------------------------------
. Environment set to development ........ Compiling 10 source files .Error

Fatal error during compilation org.apache.tools.ant.BuildException: Compilation Failed (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.IllegalArgumentException: URI is not hierarchical at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.codehaus.gant.GantBuilder.invokeMethod(GantBuilder.java:99) at _GrailsCompile_groovy$_run_closure3_closure8_closure9.doCall(_GrailsCompile_groovy:61) at _GrailsCompile_groovy$_run_closure3_closure8_closure9.doCall(_GrailsCompile_groovy) at _GrailsCompile_groovy.withCompilationErrorHandling(_GrailsCompile_groovy:68) at _GrailsCompile_groovy.this$4$withCompilationErrorHandling(_GrailsCompile_groovy) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:168) at _GrailsCompile_groovy$_run_closure3_closure8.doCall(_GrailsCompile_groovy:60) at _GrailsCompile_groovy$_run_closure3_closure8.doCall(_GrailsCompile_groovy) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:57) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) at org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81) at org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128) at _GrailsCompile_groovy$_run_closure2.doCall(_GrailsCompile_groovy:44) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) at gant.Gant.withBuildListeners(Gant.groovy:427) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:415) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.executeTargets(Gant.groovy:591) at gant.Gant.executeTargets(Gant.groovy:590)

Error | Fatal error during compilation org.apache.tools.ant.BuildException: Compilation Failed Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0 {code}

If i instead of compiling just try to run it i get this: {code:xml} C:\jdk1.8_64\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:57742,suspend=y,server=n -Dgrails.home=C:\grails-2.3.6 -Dbase.dir=C:\udvikling\GSProJDK8_NO_GRAILS\WEBGUI -Dtools.jar=C:\jdk1.8_64\lib\tools.jar -Dgroovy.starter.conf=C:\grails-2.3.6/conf/groovy-starter.conf -Ddatabase=fyk -Dpowerserver=s44b1457 -Duser=fykweb -Dpassword_ext=011114C5ACA5E88064F4BD94A1D8F0D0 -Difsuser=fykweb -Difspassword_ext=011114C5ACA5E88064F4BD94A1D8F0D0 -Dcprwebusr=cprwebusr -Dcprwebpassword_ext=9C93AA2659E1B319D7D74CFFFB53BEB0 -Dgspro.miljoe=k -Dloglevel=INFO -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -Djline.WindowsTerminal.directConsole=false -javaagent:C:\grails-2.3.6\lib\org.springsource.springloaded\springloaded-core\jars\springloaded-core-1.1.4.jar -noverify -Dspringloaded=profile=grails -Dfile.encoding=windows-1252 -classpath "C:\grails-2.3.6\lib\org.codehaus.groovy\groovy-all\jars\groovy-all-2.1.9.jar;C:\grails-2.3.6\dist\grails-bootstrap-2.3.6.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1\lib\idea_rt.jar" org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\grails-2.3.6/conf/groovy-starter.conf "run-app -plain-output" Connected to the target VM, address: '127.0.0.1:57742', transport: 'socket' Loading Grails 2.3.6 Configuring classpath . Environment set to development ................................. Packaging Grails application .... Compiling 20 source files .Error

Compilation error: startup failed: C:\udvikling\GSProJDK8_NO_GRAILS\WEBGUI\work\plugins\grails-web-plugin-0.3.6\grails-app\controllers\dk\gensam\grails\plugins\grailswebplugin\controllers\IsAliveController.groovy: -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class 'dk.gensam.grails.plugins.grailswebplugin.controllers.IsAliveController'. @ line -1, column -1. Disconnected from the target VM, address: '127.0.0.1:57742', transport: 'socket' C:\udvikling\GSProJDK8_NO_GRAILS\WEBGUI\work\plugins\grails-web-plugin-0.3.6\grails-app\controllers\dk\gensam\grails\plugins\grailswebplugin\controllers\IsAliveController.groovy: -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class 'dk.gensam.grails.plugins.grailswebplugin.controllers.IsAliveController'. @ line -1, column -1. 2 errors

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0

Process finished with exit code 1 {code}

I have tried compiling 5 different grails applications and i get the same results.

I have tried upgrading to Grails 2.4 but there are also issues. This seem to be a showstopper, so any help on getting around this is very much appreciated. I can also append the errors i get when upgrading to grails 2.4 if that will help.

graemerocher commented 10 years ago

lhotari said: Groovy 2.1.x used in Grails 2.3.x doesn't support JDK 8 . Please upgrade to Grails 2.4.x if you want to get JDK 8 support. Please ask upgrade questions on [Stackoverflow|http://stackoverflow.com/tags/grails] and report possible bugs to this jira.