Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Outdated and license-violating Java code snippets on Stack Overflow Date: Mon, 31 Jul 2017 19:12:07 -0400 Organization: Aioe.org NNTP Server Lines: 35 Message-ID: References: <741f1d23-62ac-4048-bf04-c4cca5dd6e8f@googlegroups.com> <88ce0035-3dd6-459d-a418-0f3e2d697058@googlegroups.com> <6c6aa305-9a66-4458-9fe9-75477c096209@googlegroups.com> <13531838-6262-4974-b370-939409847900@googlegroups.com> 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: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:37038 On 7/31/2017 8:11 AM, Eric Douglas wrote: > On Saturday, July 29, 2017 at 8:30:00 AM UTC-4, crag...@gmail.com wrote: >> 3) Stack Overflow applies CC BY-SA 3.0 license to both text and >> code snippets on the posts. The CC BY-SA 3.0 is quite permissive. >> So, for example, if I copy a code snippet from an open source >> project that has GPL license but I do not include the original >> license in the copied snippet, this snippet may appear to be >> protected by CC BY-SA 3.0 instead of its original GPL license. We >> have performed another study using code clone detection tools to >> detect SO snippets that were copied from 111 open source projects. >> We found at least 357 of them violate their original licenses. > Doesn't the GPL license say anyone is free to copy their code and use > in house? Anyone who cares about license violations likely already > has an army of lawyers searching for violations, and anyone using an > open license isn't going to care unless someone is putting it in code > they're selling. All the code I've written is only used for the > company's own internal application. Using GPL code for inhouse only is rather unproblematic. But using GPL embedded in something distributed to external entities comes with certain obligations. SO snippets may also be used in the latter case. GPL license does not prevent the user of the code from selling the resulting product for money - they just need to comply with the GPL license. And FSF do enforce GPL terms in general. But I suspect they may not try and enforce it for a single code snippet. Arne