Bug 432190: Update default Javadoc locations, 1.4 and 1.3 docs/api/... are gone
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMType.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMType.java
index 31575c3..b4e447b 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMType.java
+++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMType.java
@@ -736,18 +736,20 @@
*/
public static URL getDefaultJavadocLocation(String version) {
try {
- if(version.startsWith(JavaCore.VERSION_1_8)) {
- return new URL("http://download.oracle.com/javase/8/docs/api/"); //$NON-NLS-1$
+ if (version.startsWith(JavaCore.VERSION_1_8)) {
+ return new URL("http://docs.oracle.com/javase/8/docs/api/"); //$NON-NLS-1$
} else if (version.startsWith(JavaCore.VERSION_1_7)) {
- return new URL("http://download.oracle.com/javase/7/docs/api/"); //$NON-NLS-1$
+ return new URL("http://docs.oracle.com/javase/7/docs/api/"); //$NON-NLS-1$
} else if (version.startsWith(JavaCore.VERSION_1_6)) {
- return new URL("http://download.oracle.com/javase/6/docs/api/"); //$NON-NLS-1$
+ return new URL("http://docs.oracle.com/javase/6/docs/api/"); //$NON-NLS-1$
} else if (version.startsWith(JavaCore.VERSION_1_5)) {
- return new URL("http://download.oracle.com/javase/1.5.0/docs/api/"); //$NON-NLS-1$
+ return new URL("http://docs.oracle.com/javase/1.5.0/docs/api/"); //$NON-NLS-1$
} else if (version.startsWith(JavaCore.VERSION_1_4)) {
- return new URL("http://download.oracle.com/javase/1.4.2/docs/api/"); //$NON-NLS-1$
+ // archived: http://download.oracle.com/javase/1.4.2/docs/api/
+ return new URL("http://docs.oracle.com/javase/1.5.0/docs/api/"); //$NON-NLS-1$
} else if (version.startsWith(JavaCore.VERSION_1_3)) {
- return new URL("http://download.oracle.com/javase/1.3/docs/api/"); //$NON-NLS-1$
+ // archived: http://download.oracle.com/javase/1.3/docs/api/
+ return new URL("http://docs.oracle.com/javase/1.5.0/docs/api/"); //$NON-NLS-1$
}
} catch (MalformedURLException e) {
}