possible to create an infinite loop in processing a POM
-------------------------------------------------------

                 Key: MNG-2659
                 URL: http://jira.codehaus.org/browse/MNG-2659
             Project: Maven 2
          Issue Type: Bug
          Components: Inheritence and Interpolation
    Affects Versions: 2.0.4
            Reporter: Brett Porter


If you define a property like this:

{code:xml}
<properties>
  <http.port>${http.port}</http.port>
</properties>
{code}

The interpolator *correctly* identifies that this will cause a loop and throws 
an Exception.

However, if you define it with some indirection, eg:
{code:xml}
<properties>
  <http.port>${foo}</http.port>
  <foo>${http.port}</foo>
</properties>
{code}

This causes an infinite loop, where it should be detected and the same 
exception thrown as above.

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

        

Reply via email to