You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Keppler (Jira)" <ji...@apache.org> on 2020/05/17 18:10:00 UTC

[jira] [Created] (MNG-6907) endless loop in StringSearchModelInterpolator

Michael Keppler created MNG-6907:
------------------------------------

             Summary: endless loop in StringSearchModelInterpolator
                 Key: MNG-6907
                 URL: https://issues.apache.org/jira/browse/MNG-6907
             Project: Maven
          Issue Type: Bug
          Components: Inheritance and Interpolation
    Affects Versions: 3.6.3
            Reporter: Michael Keppler


I have some company confidential projects (therefore no reproduction pom), which cause an endless loop when running

mvn versions:display-plugin-updates

The endless loop happens in [StringSearchModelInterpolator.traverseObjectWithParents|https://github.com/apache/maven/blob/5397fb66e7ea45dd756cd48c18f7dc476e2a06a6/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java#L176] calling itself (which I can see by attaching a profiler to the process). Please add a check for whether the superClass is identical to the class, before entering the recursion.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)