List Info

Thread: Help: generics support




Help: generics support
user name
2006-05-19 03:47:53
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/**,**/pack
age.html"
target="${compile.target}"
source="1.5">
===================================

------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )