Emmanuel Bourg wrote: > I tracked back the code to the version in Velocity, this was changed in > the revision 1.14 of Configuration.java 3 years ago: > > http://cvs.apache.org/viewcvs.cgi/jakarta-velocity/src/java/org/apache/velocity/runtime/configuration/Configuration.java?r1=1.13&r2=1.14&diff_format=h > > > It looks like a workaround to avoid an IndexOutOfBoundException if the > key and the prefix have the same length on calling: > > key.substring(prefix.length() + 1); > > This feature is not documented in the javadoc and the subset produced is > not useful. Even if it has been around for 3 years I think it's safe to > assume nobody relies on this.
Fine with me. I think also, it is more consistant to return null. Please apply first my patch of http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27427 to this function. You may just remove afterwards the test for equality. Regards, J�rg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
