I installed the latest version of JDK (1.7.0_21). When I look at the source code for the foundation class in Eclipse, for example java.lang.String, the license at the top of the file reads:
/*
* Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
This source code comes from a file src.zipthat ships with the JDK release.
When I look at the source code here:
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/java/lang/String.java?av=f
... I see the GPL v2.0 license header.
As I understand it, JDK 1.7 was released as a full open source licensed under GPL 2.0.
Can someone explain the license mismatch?
source
share