Antonio Gallardo wrote:

Hi:

Here is the output:

Compiling 330 source files to /home/agallardo/svn/cocoon-2.1/build/cocoon-2.1.8-dev/blocks/forms/dest /home/agallardo/svn/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/library/Library.java:118: cannot resolve symbol
symbol  : method split  (java.lang.String)
location: class java.lang.String
                       String[] parts = key.split(SEPARATOR);
                                           ^



Ok, this is a new feature for the String class in Java 5. Doesn't Cocoon have a StringUtil class to split stuff like that?

/home/agallardo/svn/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/binding/library/Library.java:56: cannot resolve symbol symbol : constructor RuntimeException (java.lang.String,org.apache.avalon.framework.service.ServiceException)
location: class java.lang.RuntimeException
throw new RuntimeException("Could not initialize Library, LibraryManager not found!",e);
                             ^


There are two issues here:

1) The fact that the library is throwing an untyped RuntimeException. If throwing a RuntimeException is absolutely necessary, please have the decency to throw a subclass such as a LibraryInitializationException or something similar.

2) The constructor for the RuntimeException that accepts a root-cause exception was introduced in Java 1.4.

Reply via email to