Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38850
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: DefaultTableModel.getDataVector() and Java 11 |
| Date | Wed, 3 Apr 2019 12:44:41 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 24 |
| Message-ID | <q82ntq$38c$1@dont-email.me> (permalink) |
| References | <slrnqa9lo4.cfl.avl@logic.at> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Wed, 3 Apr 2019 16:44:42 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="e3b8c7af78cc6c2ac7d6aa4441d508d9"; logging-data="3340"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19l+jgzc90GEQgFQpLsJXql" |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
| Cancel-Lock | sha1:TIhTPw7nBY5qEMpiljZ+izHuh/U= |
| In-Reply-To | <slrnqa9lo4.cfl.avl@logic.at> |
| Content-Language | en-US |
| Xref | csiph.com comp.lang.java.programmer:38850 |
Show key headers only | View raw
On 4/3/2019 11:53 AM, Andreas Leitgeb wrote:
> In Java up to 8 DefaultTableModel had a method getDataVector()
> that returned a raw Vector.
>
> My application's custom TableModel overrode the method to return
> a Vector<MyRowType>, where MyRowType provided direct type-safe
> accessors for each column.
>
> In Java 11 it seems to have changed to returning a Vector of
> raw Vectors.
>
> At first glance this seems just goofy to me, because that doesn't
> really make it type-safe (it still involves a raw type), and it even
> prevents me from making it type-safe myself.
>
> I hope, someone here can provide me with a second glance that
> clarifies the rationale behind the change.
Just an untested thought: Could MyRowType extend Vector,
or even Vector<T>?
--
esosman@comcast-dot-net.invalid
Six hundred fifty-eight days to go.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
DefaultTableModel.getDataVector() and Java 11 Andreas Leitgeb <avl@logic.at> - 2019-04-03 15:53 +0000
Re: DefaultTableModel.getDataVector() and Java 11 Patrick Roemer <sangamon@netcologne.de> - 2019-04-03 18:37 +0200
Re: DefaultTableModel.getDataVector() and Java 11 Andreas Leitgeb <avl@logic.at> - 2019-04-03 16:41 +0000
Re: DefaultTableModel.getDataVector() and Java 11 Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-04-03 12:44 -0400
Re: DefaultTableModel.getDataVector() and Java 11 Andreas Leitgeb <avl@logic.at> - 2019-04-03 17:33 +0000
Re: DefaultTableModel.getDataVector() and Java 11 Eric Douglas <e.d.programmer@gmail.com> - 2019-04-03 11:22 -0700
Re: DefaultTableModel.getDataVector() and Java 11 Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-04-03 18:49 +0200
Re: DefaultTableModel.getDataVector() and Java 11 Eric Douglas <e.d.programmer@gmail.com> - 2019-04-03 10:34 -0700
csiph-web