Path: csiph.com!aioe.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Java 9 Date: Fri, 26 Jan 2018 09:37:27 -0500 Organization: A noiseless patient Spider Lines: 28 Message-ID: References: <31ae5b61-c6df-4c97-91e7-c33fa9571822@googlegroups.com> <6aff8e7d-ee30-4d2f-b715-92da9c64a0be@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 26 Jan 2018 14:37:31 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b598a79ed046b38d7e76ae45358a1557"; logging-data="28712"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6j5waxFdK1xZGhOtrXI6s" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 In-Reply-To: <6aff8e7d-ee30-4d2f-b715-92da9c64a0be@googlegroups.com> Content-Language: en-US Cancel-Lock: sha1:NplceFtlXd9PizbCK0Ip3p5jNvw= Xref: csiph.com comp.lang.java.programmer:38006 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 >> >> >> >> 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.