any know if there were breaking changes related to...
# questions
d
any know if there were breaking changes related to PluginAwareResourceBundleMessageSource I have a class that extends it that is having issues registering the bean
Copy code
messageSource(DatabaseAwareResourceBundleMessageSource) {
        fallbackToSystemLocale = false
        pluginManager = ref('pluginManager')
        customLabelLookupSource = ref('customLabelLookupSource')
        configInfoService = ref('configInfoService')

        if (Environment.current.isReloadEnabled() || gspEnableReload) {
            cacheSeconds = config.getProperty(Settings.I18N_CACHE_SECONDS, Integer, 5)
            fileCacheSeconds = config.getProperty(Settings.I18N_FILE_CACHE_SECONDS, Integer, 5)
        }
        defaultEncoding = encoding
    }
fails on this line DatabaseAwareResourceBundleMessageSource messageSource in the service class saying it cant cast PluginAwareResourceBundleMessageSource to DatabaseAwareResourceBundleMessageSource
m
@Dylan Kolson Which versions are you updating from->to?
d
grails core 3.3.8 to 5.3.0
Cannot convert value of type 'org.grails.spring.context.support.PluginAwareResourceBundleMessageSource' to required type 'com.cmt.spring.context.support.DatabaseAwareResourceBundleMessageSource' for property 'messageSource': no matching editors or conversion strategy found at org.springframework.beans.TypeConver
i think it might have something to do with proxyTargetClass i dont know if anything underlying changed
m
@Dylan Kolson If you haven't already done so, I would advice you to create a new fresh 5.3.6 application and only try to get your
DatabaseAwareResourceBundleMessageSource
to work in that, no other changes. That way you may isolate this particular issue. If you don't get it to work, you could share that project to let others have a look.