Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grails 4.1.0.M1 "Accessing config through dot notation is deprecated" #11920

Closed
davidkron opened this issue May 22, 2020 · 0 comments · Fixed by #11921
Closed

Grails 4.1.0.M1 "Accessing config through dot notation is deprecated" #11920

davidkron opened this issue May 22, 2020 · 0 comments · Fixed by #11921
Assignees

Comments

@davidkron
Copy link
Contributor

Im doing some Grails 4.1.0.M1 testing with some of our applications and I get a lot of warnings:

org.grails.config.NavigableMap: Accessing config through dot notation is deprecated, and it will be removed in a future release. Use 'config.getProperty(key, targetClass)' instead.

One such warning is generated by the ApplicationTabLib's meta tag:

    /**
     * Output application metadata that is loaded from application.yml and grails.build.info if it is present.
     *
     * @emptyTag
     *
     * @attr name REQUIRED the metadata key
     */
    Closure meta = { attrs ->
        if (!attrs.name) {
            throwTagError('Tag ["meta"] missing required attribute ["name"]')
        }
        return Metadata.current[attrs.name]
    }

The Metadata.current[attrs.name] seems to trigger the warning, as Metadata extends NavigableMap.

@jeffscottbrown jeffscottbrown self-assigned this Jul 15, 2021
@puneetbehl puneetbehl transferred this issue from grails/grails-gsp Jul 29, 2021
puneetbehl added a commit that referenced this issue Jul 29, 2021
* Use Micronaut's PropertySourcePropertyResolver and PropertySource loaders
* Fixes #11920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants