Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-847

Property with an empty string value are not processed in the current main (2.11.0-snapshot)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Nightly Builds
    • 2.11.0
    • None
    • None

    Description

      I hit a side effect of the https://issues.apache.org/jira/browse/CONFIGURATION-846 recently solved.

      Assuming that we have a property file as configuration source like that

      test.empty.property =

       

      and that we will try to inject such property in a spring bean

      @Value("${test.empty.property"})
      private String emptyValue;

       we will get an exception like:  BeanDefinitionStore Invalid bean definition ... Could not resolve placeholder

      Attachments

        Issue Links

          Activity

            People

              ggregory Gary D. Gregory
              bollini Andrea Bollini
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: