Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Andreas Leitgeb Newsgroups: comp.lang.java.programmer Subject: Re: DefaultTableModel.getDataVector() and Java 11 Date: Wed, 3 Apr 2019 17:33:29 -0000 (UTC) Organization: A noiseless patient Spider Lines: 24 Message-ID: References: Reply-To: avl@logic.at Injection-Date: Wed, 3 Apr 2019 17:33:29 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="05711f75fa384a44df8cf21cb0776d58"; logging-data="17902"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4RZBsJ1qpVgympH1bdh9S" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:A7nex/NABh25wKMItCYXMeCjLvk= Xref: csiph.com comp.lang.java.programmer:38853 Eric Sosman wrote: > On 4/3/2019 11:53 AM, Andreas Leitgeb wrote: >> 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? "Vector" isn't the same as "Vector" (despite the theory, I tried anyway, and got the expected error that Vector is indeed not convertible to Vector) Patrick's advice to use AbstractTableModel already solved that one for me. PS: Some comment for private method "justifyRows" of DefaultTableModel that I noticed only in the course of changing to AbstractTableModel reveals developers' intention: " // Sometimes the DefaultTableModel is subclassed " // instead of the AbstractTableModel by mistake. Yep, I was guilty of that - fixed now in my code.