
Richard Stallman: “I think Sun has, well with this contribution, have contributed more than any other company to the free software community, in the form of software. And it shows leadership – it’s an example I hope others will follow.”
(video: http://sun.feedroom.com/?skin=oneclip&fr_story=FEEDROOM166554&rf=bm)
Wikipedia – “Sun announced on November 13, 2006 that all of the Java source code will be completely released under an open-source GNU General Public License by March 2007″
(Sun press release: http://www.sun.com/smi/Press/sunflash/2006-11/sunflash.20061113.1.xml)
Free and Open source Java : http://www.sun.com/software/opensource/java/
And now for some of the now GPLed code from the java compiler.
/*
* @(#)LateAddition.java 1.3 06/11/11
*
* Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*
*/
/*
* @test @(#)LateAddition.java 1.3 06/11/11
* @bug 4098093
* @summary Compiler must properly handle access methods
* created after their class has been checked.
*
* @compile LateAddition.java
*/
/*
* This is the example submitted in the bug report.
* It should compile successfully.
* Future changes to the compiler may affect the timing
* of the creation of access methods, making it an unreliable
* test of the condition described in the summary.
*/
public class LateAddition {
public int f() {
class Local {
private int i = 5;
}
return (new Local()).i;
}
}