commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <beat.h...@ubs.com>
Subject [configuration] PropertiesConfiguration 1.2: infinite loop in property interpolation -- Bug?
Date Thu, 20 Jul 2006 16:29:26 GMT
suppose the property

== PROPERTY FILE STARTS
test = ${a}${a}${a}
== PROPERTY FILE ENDS

where ${a} is not defined.

If I'm using PropertiesConfiguration.getString("test"), the exception 
"unhandled exception: infinite loop in property interpolation of
${a}${a}${a}: a->a"
is thrown.

In my application, ${a} is undefined in the first servlet call, but
defined
in the second call.

As a work around, I had to introduce some helper variables:

== PROPERTY FILE STARTS
a1 = ${a}
a2 = ${a}
a3 = ${a}
test = ${a1}${a2}${a3}
== PROPERTY FILE ENDS

Would be nice, if this could be fixed some time.

Cheers, Beat

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message