Skip to content

Grails 7: i18n file changes throws exception #13668

@arjangch

Description

@arjangch

Expected Behavior

In Grails5, i can hot change (while grails running) i18n properties files and it will take effect after grails re complies.

Actual Behaviour

Grails 7 throws exception.

2024-09-22T08:09:43.761-04:00 ERROR 3873 --- [ Thread-3] o.g.plugins.AbstractGrailsPluginManager : Plugin [i18n:7.0.0-SNAPSHOT] could not reload changes to file [/.../grails-website-test/grails-app/i18n/messages.properties]: No such property: canonicalFile for class: java.lang.Boolean groovy.lang.MissingPropertyException: No such property: canonicalFile for class: java.lang.Boolean at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:67) at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:163) at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321) at org.grails.plugins.i18n.I18nGrailsPlugin.onChange(I18nGrailsPlugin.groovy:84) at org.grails.plugins.DefaultGrailsPlugin.notifyOfEvent(DefaultGrailsPlugin.java:747) at org.grails.plugins.AbstractGrailsPluginManager.informOfClassChange(AbstractGrailsPluginManager.java:528) at org.grails.plugins.AbstractGrailsPluginManager.informOfFileChange(AbstractGrailsPluginManager.java:471) at grails.boot.GrailsApp$3.onChange(GrailsApp.groovy:397) at org.grails.io.watch.AbstractDirectoryWatcher.fireOnChange(AbstractDirectoryWatcher.java:76) at org.grails.io.watch.WatchServiceDirectoryWatcher.run(WatchServiceDirectoryWatcher.java:116) at org.grails.io.watch.DirectoryWatcher.run(DirectoryWatcher.java:184) 

Steps To Reproduce

1- start grails 7
2- change anything in i18n properties file

Environment Information

  • Mac OS
  • java=22.0.2-zulu
  • gradle=8.10
  • groovy=4.0.22

Example Application

No response

Version

grails=7.0.0-SNAPSHOT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions