Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-634

configuration: property: detect circular references

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.21
    • logback-classic
    • None

    Description

      In case I have cycles in properties, I get an unfriendly StackOverflowError in OptionHelper. I am referring to properties like this:

      a=${b}
      b=${a}
      

      It would be nice to detect these cases and show a nice error message explaining the actual problem, instead of StackOverflowError.

      For inspiration, you can take a look at Spring's PropertyPlaceholderConfigurer (the actual place where they detect this is org.springframework.util.PropertyPlaceholderHelper#parseStringValue in version 3.0.1.RELEASE).

      Attachments

        Activity

          People

            logback-dev Logback dev list
            cvmocanu Cristian Vasile Mocanu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: