Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Jigsaw: RedHat and IBM say no Date: Tue, 2 May 2017 22:57:11 -0400 Organization: Aioe.org NNTP Server Lines: 46 Message-ID: References: <59079419$0$24666$e4fe514c@newszilla.xs4all.nl> <5907a5ef$0$24695$e4fe514c@newszilla.xs4all.nl> <5908e12b$0$20463$e4fe514c@newszilla.xs4all.nl> <5908efdf$0$20484$e4fe514c@newszilla.xs4all.nl> NNTP-Posting-Host: PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:36588 On 5/2/2017 5:43 PM, Arne Vajhøj wrote: > On 5/2/2017 4:45 PM, Silvio wrote: >> On 05/02/2017 10:18 PM, Arne Vajhøj wrote: >>> On 5/2/2017 3:42 PM, Silvio wrote: >>>> Not knowing which of your legacy libraries >>>> may fall apart and when that may happen is a much bigger problem. >>> >>> Why should they fall apart? >>> >>> Except by using SUN classes? >> >> Can I depend on my libraries not doing that? And if they do: what can I >> do about it? Upgrading to newer versions can not be done without >> extensive modifications. > > Use of unsupported features can cause a lot of pain. Which is > why one should not use them. > > And Jigsaw will prevent that from happening again by simply > not exporting those. > > There will be some pain now due to old sins. BTW, there is a workaround. Let us say that something is using com.sun.java.swing.plaf.windows. That was the package that Jan B had problems with and also the one I have an application having problems with. java --add-opens java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED or: java --add-exports java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED will make that package available. It is not a nice workaround - it is definitely a code smell. And I suspect that it may go away some time in the future. But if one has problems with Java 9 and accessibility and need to move on, then it is a possibility. Arne