Stack overflow error in aQute.maven.provider.POM
when macro contains ${project.parent.version}
and no parent is available
#5318
Milestone
There is a stack overflow bug in the code of
aQute.maven.provider.POM
which triggers when a property contains a value likeFOO-${project.parent.version}
but no parent can be found.In this case, the
POM
code puts a message into the properties map:This message contains the original property, so the result will be
parent version from FOO-${project.parent.version} but not parent?
.Later, when
POM.replaceMacros()
is called, this embedding of the${project.parent.version}
in the property value causes an infinite recursion because the message that is the macro replacement always contains again the macro itself:Observed in bnd 6.3.1
The text was updated successfully, but these errors were encountered: