【问题标题】:Method Too Large : While upgrading from grails 2.3.7 to grails 2.4.4方法太大:从 grails 2.3.7 升级到 grails 2.4.4 时
【发布时间】:2019-02-27 12:30:04
【问题描述】:

我目前正在使用带有 java 7 的 grails 2.3.7,现在我想将其升级到带有 java 8 的 grails 2.4.4 但是在升级时我收到了这个错误:

  [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  [groovyc] General error during class generation: Method code too large!
  [groovyc] java.lang.RuntimeException: Method code too large!

【问题讨论】:

  • 插件配置在 BuildConfig.groovy plugins { build ":tomcat:7.0.52.1" compile ':spring-security-core:2.0-RC3' compile ":mail:1.0.7 " compile ":asynchronous-mail:1.2" compile ":quartz:1.0.2" compile ":asset-pipeline:2.5.7" compile ":jxl:0.54" runtime ":hibernate:3.6.10.9" // 或 " :hibernate4:4.3.4" 运行时 ":database-migration:1.3.8" 运行时 ":cors:1.3.0" 运行时 "org.grails.plugins:angularjs -resources:1.4.2" 运行时 ":jquery:1.10.2.2" }
  • 如果是开放代码,能否提供更多细节和代码示例或项目本身?仅根据您的问题很难说发生了什么。
  • 我没有对代码进行任何更改,我只是将我的应用程序从 grails 2.3.7 迁移到 grails 2.4.4 并运行编译器
  • 我认为我在 BuildConfig 中提到的一些插件不兼容,但我找不到哪个。
  • 您能否提供任何其他信息或尝试逐步迁移?迁移到 Java8 并确保代码正常,然后再升级插件(除非它完全按照您的开始方式)。

标签: java grails groovy


【解决方案1】:

现在我想用 java 8 将它升级到 grails 2.4.4

如果没有看到您的项目,很难说这是否相关,但我们不支持 Java 8 和 Grails 2.4.4。 Grails 2.5 是我们支持 Java 8 的第一个 Grails 版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-09-10
    • 1970-01-01
    • 2014-12-28
    • 2014-05-07
    • 2015-02-16
    • 2014-07-30
    • 1970-01-01
    相关资源
    最近更新 更多