[logback-dev] [JIRA] Created: (LBCLASSIC-210) configuration: property: detect circular references

Cristian Vasile Mocanu (JIRA) noreply-jira at qos.ch
Sun May 23 11:16:16 CEST 2010


configuration: property: detect circular references
---------------------------------------------------

                 Key: LBCLASSIC-210
                 URL: http://jira.qos.ch/browse/LBCLASSIC-210
             Project: logback-classic
          Issue Type: Improvement
          Components: joran
    Affects Versions: 0.9.21
            Reporter: Cristian Vasile Mocanu
            Assignee: Logback dev list


In case I have cycles in properties, I get an unfriendly StackOverflowError in OptionHelper. I am referring to properties like this:
{code}
a=${b}
b=${a}
{code}

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).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list