Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38006
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Java 9 |
| Date | 2018-01-26 09:37 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <p4fefb$s18$1@dont-email.me> (permalink) |
| References | <31ae5b61-c6df-4c97-91e7-c33fa9571822@googlegroups.com> <p4dkjf$dtc$1@dont-email.me> <6aff8e7d-ee30-4d2f-b715-92da9c64a0be@googlegroups.com> |
On 1/26/2018 9:16 AM, Eric Douglas wrote:
> On Thursday, January 25, 2018 at 5:10:09 PM UTC-5, Eric Sosman wrote:
>> If you're calling these methods from your own code, you have been
>> sinning and are now receiving your punishment. See
>>
>> <http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html>
>>
>> Two courses of action seem plausible if this is the case: To remove
>> the not-part-of-official-Java stuff from your code and rely on the
>> "published" API's instead, or to hope there's a SwingUtilities3 (?)
>> package with methods not too dissimilar to those you've been (ab)using.
>> The first is certainly preferable if you can, er, swing it, since it
>> leaves you less exposed to breakage in future Java versions (and allows
>> you to use non-Oracle Java implementations, too). The second, if it
>> works at all, is at best an ugly hack.
>> [...]
>
> As far as I could tell there were no published APIs for the methods I needed. [...]
Then you'll have to keep maintaining an ugly hack, and keep
on dealing with version-to-version (and vendor-to-vendor) breakage.
It's up to you to weigh the advantages of non-portable code against
the ongoing maintenance cost; I don't think anyone here is in a
position to evaluate the tradeoffs on your behalf.
--
esosman@comcast-dot-net.invalid
One thousand ninety days to go.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-25 13:03 -0800
Re: Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-25 13:10 -0800
Re: Java 9 Arne Vajhøj <arne@vajhoej.dk> - 2018-01-25 20:16 -0500
Re: Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-26 06:43 -0800
Re: Java 9 Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-01-25 17:09 -0500
Re: Java 9 Arne Vajhøj <arne@vajhoej.dk> - 2018-01-25 20:00 -0500
Re: Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-26 06:16 -0800
Re: Java 9 Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-01-26 09:37 -0500
Re: Java 9 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-01-25 17:23 -0600
Re: Java 9 Hiram Hunt <hiramhunt@verizon.net> - 2018-01-26 08:31 -0500
Re: Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-26 06:06 -0800
Re: Java 9 Kiwi User <martin@mydomain.invalid> - 2018-01-26 15:18 +0000
csiph-web