You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Ben Smith <od...@gmail.com> on 2006/05/15 04:11:33 UTC

Help: generics support

Hi all,

Anyone can help with the generics support problem?  I was trying to
use Map<String, Object> in Slide 2.1 server. The "build" process
failed and the error message was as follows.
------------------------------------------
generics are not supported in -source 1.4 (try -source 1.5 to enable generics)
------------------------------------------

I definitely have JDK1.5, and have successfully tested Map<String,
List<String>> separately in a separate class on my machine.  What's
wrong please?

I tried adding " source="1.5" " on Line 242 of build.xml. It still
wouldn't work. Please help. Thanks.

Regards,
Ben
===================================
Line 242
<javac srcdir="src/share" destdir="${slide.build}/classes"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
excludes="**/CVS/**,**/webdav/**,**/manager/**,**/package.html"
target="${compile.target}" source="1.5">
===================================

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org