Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: Is it legal to backport code from JDK8 to JDK6? Date: Mon, 30 Mar 2015 20:37:26 +0200 Organization: albasani.net Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net pmDZq0f5Apzhs/DcNYa0gsUwaMWS8qTprREsFGamzFuJXiRlUJAxQF039uBmDQ8RDQFEPUkmPde+7uBQYIpiZA== NNTP-Posting-Date: Mon, 30 Mar 2015 18:37:27 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="PyX8fXz5c8UNXvy0GicGlEGvjzNYPZOnQss3Q3vWSswZcvYmVO1tRTg2vio0wCInsHUhftoYXUD2IvmZ3Ifaj6JJfJOaMElr+D6+yPmb0Hmo7I6WICjqATvOceASTz8y"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1 In-Reply-To: Cancel-Lock: sha1:iGlYAuIPAJyQnBMijkRwCK6Tgmc= Xref: csiph.com comp.lang.java.programmer:31415 Eric Sosman schrieb: > Written by Doug Lea with assistance from members of JCP JSR-166 > Expert Group and released to the public domain, as explained at > http://creativecommons.org/publicdomain/zero/1.0/ I assume what Doug Lea and collegues hacked wasn't invented just now, has some prior art. So I guess if somebody hacks a compatibility library out of the java.* and javax.* path, nothing will happen. Except that the use of this library is clumsy, since the java.* and javax.* path restriction don't make it really a backward compatibility library, so that the same client code can be used with the old JDK and the new JDK. Maybe if the client code uses some factory pattern, the use of the library is less clumsy. But still, it will be a mess. So best is replace the bootloader with the java.* restriction as well. He He. I guess I need to phone my lawyer now. Bye P.S.: Or on the other hand, convince your shop not to use old JDK anymore and use the new JDK, probably cheapest solution. P.P.S.: Patching the bootloader seems to be possible: Replacing and Patching Core Java Classes http://media.techtarget.com/tss/static/articles/content/CovertJava/Sams-CovertJava-15.pdf