IRC log for #tomcat on 20091213

00:23.18*** join/#tomcat pucko (n=andreas@h19n2fls304o253.telia.com)
02:29.53*** join/#tomcat jasonb (n=jasonb@m450536d0.tmodns.net)
03:00.03*** join/#tomcat jasonb (n=jasonb@m450536d0.tmodns.net)
03:41.11*** join/#tomcat prgrmr_ (n=prgrmr@unaffiliated/prgrmr)
03:42.25*** join/#tomcat jasonb (n=jasonb@m350536d0.tmodns.net)
04:05.59*** join/#tomcat acidjnk (i=acid@pD95091E8.dip0.t-ipconnect.de)
04:15.37*** join/#tomcat jasonb (n=jasonb@m450536d0.tmodns.net)
04:36.07*** join/#tomcat Afterlawl (n=verycool@5e0355d6.bb.sky.com)
04:44.02*** join/#tomcat jasonb (n=jasonb@m350536d0.tmodns.net)
05:08.37*** join/#tomcat jasonb (n=jasonb@m350536d0.tmodns.net)
05:23.57*** join/#tomcat loca| (n=tux@41.230.142.249)
06:32.19*** join/#tomcat jasonb (n=jasonb@m3e0536d0.tmodns.net)
06:38.01*** join/#tomcat uwe_guenther (n=Notebook@p5B2846EB.dip.t-dialin.net)
07:32.13*** join/#tomcat jasonb (n=jasonb@m4e0536d0.tmodns.net)
10:09.16*** join/#tomcat groton (n=groton@unaffiliated/groton)
10:14.39grotonusing Tomcat 6.0.20 (and its servlet2.5 jar), in my servlet i call HTTPServletRequestWrapper.getParameterMap().get("gene") and the return type is not a String but an Object. Why i need to cast? The documentation of Servlet 2.5 API states that the return type is a String.
10:47.10*** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
11:28.08*** join/#tomcat NilsBo (n=cczwei@ip-88-153-128-172.unitymediagroup.de)
12:54.05*** join/#tomcat BarryNL (n=goltharn@82-95-227-51.xs4all.nl)
13:00.54*** join/#tomcat NilsBo (n=cczwei@ip-88-153-128-172.unitymediagroup.de)
15:04.21*** join/#tomcat acidjnk (i=acid@pD95091E8.dip0.t-ipconnect.de)
16:21.16*** join/#tomcat acidjnk (i=acid@pD95091E8.dip0.t-ipconnect.de)
16:25.28*** join/#tomcat Alagar (n=Administ@122.164.38.25)
16:52.09*** join/#tomcat rehanlakhani (n=rehanlak@d24-141-141-139.home.cgocable.net)
17:01.51*** join/#tomcat Afterlawl (n=verycool@5e0355d6.bb.sky.com)
17:32.42*** join/#tomcat groton (n=groton@unaffiliated/groton)
18:17.02*** join/#tomcat |MHSL| (i=mhsl@cm9.eta6.maxonline.com.sg)
18:19.10karstensragegroton, getParameterMap just returns a Map
18:21.52grotonkarstensrage, yes, and the V and the K types are String's
18:22.06karstensragesays who?
18:22.42grotonthe documentation says that
18:23.23karstensragewhere?
18:23.24karstensragehttp://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/index.html
18:23.32grotonkarstensrage, i am mistake. K is String, and V is an array of String
18:24.07karstensragegroton, i think youre confused
18:24.25karstensrageor show me what *you* are reading
18:24.30grotonkarstensrage, "an immutable java.util.Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array."
18:24.52karstensrageright
18:25.05karstensragebut its not Generic'ized that way so you have to cast it
18:25.51karstensrageother wise the docuymentation would have the signature as java.util.Map<String, String []> or something
18:26.51grotonkarstensrage, no, the signature says of Map.get is:  V get(Object), so clearly the returned type is a String[]
18:26.55karstensrageinteresting.. so if it could be an array i guess you have to do 'get("gene")[0]
18:27.01grotonyep
18:27.21grotonthanks for the help karstensrage
18:27.50karstensragenp, but without a generic it *could* be anything, they are just sayign that they *do* put a String [] in there
18:28.02grotonkarstensrage, yes, i got your point
18:28.07karstensrageok
18:41.54*** join/#tomcat NilsBo (n=cczwei@ip-88-153-128-172.unitymediagroup.de)
19:00.00*** join/#tomcat uwe_guenther (n=Notebook@p5B2850DD.dip.t-dialin.net)
19:12.47*** join/#tomcat dvayanu (n=another@p5DE8A58F.dip.t-dialin.net)
19:28.30*** join/#tomcat karstensrage (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
20:13.43*** join/#tomcat KadirB (n=kadir@81.214.22.138)
20:13.51*** part/#tomcat KadirB (n=kadir@81.214.22.138)
20:55.15*** join/#tomcat dvayanu (n=another@p5DE8A58F.dip.t-dialin.net)
21:10.38*** join/#tomcat NilsBo (n=cczwei@ip-88-153-128-172.unitymediagroup.de)
21:49.26*** join/#tomcat trochej (i=trochej@noches.pl)
21:50.03*** join/#tomcat wltjr (n=wltjr@c-67-190-234-137.hsd1.fl.comcast.net) [NETSPLIT VICTIM]
21:50.04*** join/#tomcat lyken (n=dc@67-231-241-244.turnkeyinternet.net) [NETSPLIT VICTIM]
21:53.36*** join/#tomcat rlarson89 (n=rlarson8@CPE00226b5e2074-CM000e5c6ebb22.cpe.net.cable.rogers.com) [NETSPLIT VICTIM]
21:53.36*** join/#tomcat cofeineSunshine (n=justinas@kas.tavatievs.eu) [NETSPLIT VICTIM]
21:53.36*** join/#tomcat ohsix (i=ohsix@66.220.111.99) [NETSPLIT VICTIM]
21:53.48*** join/#tomcat rlarson8` (n=rlarson8@CPE00226b5e2074-CM000e5c6ebb22.cpe.net.cable.rogers.com)
21:54.40*** join/#tomcat ohsix_ (i=ohsix@66.220.111.99)
21:57.59*** join/#tomcat cofeineS1nshine (n=justinas@kas.tavatievs.eu)
22:03.20*** join/#tomcat NilsBo (n=cczwei@ip-88-153-128-172.unitymediagroup.de)
23:38.46*** join/#tomcat t0ka (n=Administ@cpc2-ware5-2-0-cust677.9-1.cable.virginmedia.com)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.