cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Bossa <>
Subject Bug in Cocoon Forms libraries
Date Mon, 10 Oct 2005 14:39:56 GMT
Hello all,

While playing with some of the new features, I noticed a serious bug in 
the brand new org.apache.cocoon.forms.formmodel.library.Library class, 
which causes an ArrayIndexOutOfBoundsException.
Take a look at the following piece of code, from the 
getDefinition(String key) method:

String[] parts = StringUtils.split(SEPARATOR);
librarykey = parts[0];
definitionkey = parts[1];

The problem is clearly a misuse of the split() method.

I think it should be corrected in:

StringUtils.split(key, SEPARATOR);

Please, let me know.


Sergio B.

Sergio Bossa (
- Pro-Netics s.r.l. (
- Montag (
- QuickNote (

View raw message