Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Novice to Generics Trying to Implement a Generic Priority Queue Date: Mon, 11 Apr 2011 10:29:06 -0700 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <95a0645f-5c83-4028-8d82-259f83e45159@k9g2000yqi.googlegroups.com> <25ad9459-6d49-4f16-8eb9-d40bec3fc2e2@p13g2000yqh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 11 Apr 2011 17:29:11 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="3GtlNPf3lsjh0xyMURpGPw"; logging-data="2061"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qojPlMlRUp4YPXvxd/IP0gcsIAkDcLXc=" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: <25ad9459-6d49-4f16-8eb9-d40bec3fc2e2@p13g2000yqh.googlegroups.com> Cancel-Lock: sha1:Tlk6Jo99RJcrIzgylAa3WylyJMM= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3030 On 4/11/2011 8:08 AM, KevinSimonson wrote: > > sh-4.1$ javac PriorityQueue.java > Note: PriorityQueue.java uses unchecked or unsafe operations. > > Note: Recompile with -Xlint:unchecked for details. When you get this warning, you should follow its advice. Please re-compile with -Xlint:unchecked and show us the output for that step. I tested it myself with a different, simpler test harness and it worked, so I'm not sure exactly where the error might be. I'll give it another once-over after the -Xlint:unchecked output is posted.