Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #33896

Re: array of HashSet<>

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: array of HashSet<>
Date Sun, 28 Feb 2016 08:56:10 -0500
Organization A noiseless patient Spider
Lines 27
Message-ID <nauu45$fbe$1@dont-email.me> (permalink)
References <tbq1dbl7do4o9bdqo98prrmhe8tm4g6710@4ax.com> <nt85dbdam5cq4v64558is3ba2af6805mec@4ax.com> <naut84$15fq$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Sun, 28 Feb 2016 13:53:09 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="2d081e2f7155c28005d4472f67c2f43d"; logging-data="15726"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XULWCwdYQLPSNnnPzQRHb"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
In-Reply-To <naut84$15fq$1@gioia.aioe.org>
Cancel-Lock sha1:EkdqjWMIApaBQgw3Bt5oTCX8b1g=
Xref csiph.com comp.lang.java.programmer:33896

Show key headers only | View raw


On 2/28/2016 8:38 AM, Arne Vajhøj wrote:
> On 2/28/2016 2:44 AM, Roedy Green wrote:
>> I am not trying to arrange the HashSet fields in order in an array. I
>> am just trying to do something like this:
>>
>>           private final HashSet<Long>[] hashSets;
>
>>          hashSets = new HashSet[ filesToProcess.length ];
>
>> I get this error message:
>>
>> Warning:(104, 20) java: unchecked conversion
>>    required: java.util.HashSet<java.lang.Long>[]
>>    found:    java.util.HashSet[]
>
> hashSets = new HashSet<Long>[ filesToProcess.length ]
>
> should fix that.

     ... for suitable values of "fix."

     JLS 15.10.1, Array Creation Expressions: "It is a compile-time
error if the ClassOrInterfaceType does not denote a reifiable type."

-- 
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

array of HashSet<> Roedy Green <see_website@mindprod.com.invalid> - 2016-02-26 16:12 -0800
  Re: array of HashSet<> Arne Vajhøj <arne@vajhoej.dk> - 2016-02-26 20:01 -0500
    Re: array of HashSet<> Arne Vajhøj <arne@vajhoej.dk> - 2016-02-27 10:05 -0500
  Re: array of HashSet<> Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2016-02-26 21:13 -0800
  Re: array of HashSet<> Robert Klemme <shortcutter@googlemail.com> - 2016-02-27 11:41 +0100
  Re: array of HashSet<> Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2016-02-27 11:54 -0800
    Re: array of HashSet<> Lew <lewbloch@gmail.com> - 2016-02-27 15:16 -0800
      Re: array of HashSet<> Lew <lewbloch@gmail.com> - 2016-02-27 15:18 -0800
  Re: array of HashSet<> Roedy Green <see_website@mindprod.com.invalid> - 2016-02-27 23:44 -0800
    Re: array of HashSet<> Lew <lewbloch@gmail.com> - 2016-02-28 01:52 -0800
    Re: array of HashSet<> Arne Vajhøj <arne@vajhoej.dk> - 2016-02-28 08:38 -0500
      Re: array of HashSet<> Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-02-28 08:56 -0500
        Re: array of HashSet<> Arne Vajhøj <arne@vajhoej.dk> - 2016-02-28 12:47 -0500
          Re: array of HashSet<> Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-02-28 13:27 -0500
            Re: array of HashSet<> Sebastian <news@seyweiler.dyndns.org> - 2016-02-28 23:53 +0100
              Re: array of HashSet<> Arne Vajhøj <arne@vajhoej.dk> - 2016-02-28 21:16 -0500
                Re: array of HashSet<> Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2016-02-28 23:36 -0800
                Re: array of HashSet<> Roedy Green <inquiry@mindprod.com> - 2016-06-08 20:08 -0700
              Re: array of HashSet<> Andreas Leitgeb <avl@logic.at> - 2016-02-29 13:19 +0000
                Re: array of HashSet<> Andreas Leitgeb <avl@logic.at> - 2016-02-29 13:27 +0000
  Re: array of HashSet<> Daniel Pitts <usenet@coloraura.com> - 2016-03-06 13:59 -0800
    Re: array of HashSet<> Roedy Green <inquiry@mindprod.com> - 2016-06-08 20:10 -0700
      Re: array of HashSet<> Lew <lewbloch@gmail.com> - 2016-06-10 12:25 -0700
        Re: array of HashSet<> Daniel Pitts <usenet@coloraura.com> - 2016-06-11 12:30 -0700
        Re: array of HashSet<> Roedy Green <inquiry@mindprod.com> - 2016-06-12 02:31 -0700

csiph-web