Yang- <T> is a placeholder you need to supply a REAL datatype such as <String> or <Integer> or <YourCustomClass>
Regards Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Fri, 20 Feb 2009 02:03:27 -0800 > From: yangxian1...@hotmail.com > To: user@ant.apache.org > Subject: javac error > > > error information: > [javac] > /home/print/cur_branch/regular/Core/src/com/netease/print/dao/impl/cache/AbstractDaoCacheImpl.java:22: > 无法确定 <T>T 的类型参数;对于上限为 T,java.lang.Object 的类型变量 T,不存在唯一最大实例 > [javac] return > RequestScopeCacheHolder.getCache().getObject(this.getKeyPrefix(), subKey); > "无法确定 <T>T 的类型参数;对于上限为 T,java.lang.Object 的类型变量 T,不存在唯一最大实例"----------"can't > define <T>T's type parameter,for variable T in java.lang.Object type which > upper limit is T,hasn't unique most instance" > > > jdk version is 1.5,ant version is 1.7,and build.xml: > <target depends="clean" name="compile"> > <mkdir dir="${classes.dir}"/> > <javac destdir="${classes.dir}" > source="1.5" target="1.5" debug="true" deprecation="false" optimize="false" > failonerror="true" fork="true"> > <src path="${coresrc.dir}"/> > <classpath refid="core-master-classpath"/> > </javac> > <copy todir="${classes.dir}" preservelastmodified="true"> > <fileset dir="${coresrc.dir}"> > <include name="**/*.xml"/> > <include name="**/*.ftl"/> > <include name="**/*.properties"/> > <include name="**/*.deploy"/> > <include name="**/*.key"/> > <include name="**/*.ccf"/> > <include name="**/*.txt"/> > <include name="**/*.conf"/> > <include name="**/*.drl"/> > </fileset> > </copy> > > -- > View this message in context: > http://www.nabble.com/javac-error-tp22117945p22117945.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > _________________________________________________________________ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_022009