Barracuda still doesn't compile on JDK 1.3.1

franck routier <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi,

I just downloaded fresh sources from barracudamvc cvs.
I'm unable to compile on jdk 1.3.1 (be it Sun's or IBM's)

I get the same error as Stephen Woolerton a few days ago :

compile_core:
     [javac] Compiling 9 source files to 
/home/alci/devel/Barracuda/WEB-INF/classes
     [javac] 
/home/alci/devel/Barracuda/src/org/enhydra/barracuda/plankton/http/HttpRequester.java:496: 
cannot resolve symbol
     [javac] symbol  : method getHeaderFields  ()
     [javac] location: class java.net.URLConnection
     [javac]         List scookies = (List) 
conn.getHeaderFields().get("Set-Cookie");
     [javac]                                    ^
     [javac] 
/home/alci/devel/Barracuda/src/org/enhydra/barracuda/plankton/http/HttpServices.java:88: 
cannot resolve symbol
     [javac] symbol  : method initCause  (java.lang.NumberFormatException)
     [javac] location: class java.text.ParseException
     [javac]                         ee.initCause(e);
     [javac]                           ^
     [javac] 
/home/alci/devel/Barracuda/src/org/enhydra/barracuda/plankton/http/HttpServices.java:97: 
cannot resolve symbol
     [javac] symbol  : method initCause  (java.lang.NumberFormatException)
     [javac] location: class java.text.ParseException
     [javac]                         ee.initCause(e);
     [javac]                           ^
     [javac] 
/home/alci/devel/Barracuda/src/org/enhydra/barracuda/plankton/http/HttpServices.java:105: 
cannot resolve symbol
     [javac] symbol  : method initCause  (java.text.ParseException)
     [javac] location: class java.text.ParseException
     [javac]                         ee.initCause(e);
     [javac]                           ^
     [javac] 4 errors

Compiling on jdk 1.4 doesn't show this errors, but this is not an option 
for one of my system... (1.4 not yet available)

Do you think these are 1.4 features we need, or just the fact that is 
was not tested on 1.3.1 for quite a time ?

I'm not skilled enought to tell. For example, the first error is due to 
the fact that java.net.URLConnection List getHeaderFiels(String) does 
not exist in 1.3.1 API. There is only a public String 
getHeaderField(String name). So there might be a need for a modification 
of the code logic to iterate to construct a List from strings...

Error 2, 3 and 4 are due to the fact that java.lang.throwable has not 
initCause method in 1.3.1. Event chaining is not handled for this 
exception in 1.3.1. (other have their own chaining mecanisms, 1.4 
normalized on this with initCause). Do we really need it (sure it's a plus)

Well... do we want to keep running on 1.3.1 ? (I must confess I would 
like to :-). Can we change the code in plankton to keep compatibility ?

Up to you, Great Leaders Of Barracuda :-)

Regards,

Franck
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.