Bug 19035 Validating Javadoc location causes connection refused in .log
Build F2 1. Open properties of a Java project 2. Enter "" as Javadoc location 3. Press validate 4. Press Ok in the dialog Check the .log: !ENTRY org.eclipse.jdt.ui 4 1 Jun 04, 2002 15:35:15.453 !MESSAGE Internal Error !STACK 0 java.net.ConnectException: Connection refused: connect ....
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavadocConfigurationBlock.java
private String fInvalidMessage= JavaUIMessages.getString("JavadocConfigurationBlock.InvalidLocation.message"); 
		private String fValidMessage= JavaUIMessages.getString("JavadocConfigurationBlock.ValidLocation.message"); 
		private String fTitle=  JavaUIMessages.getString("JavadocConfigurationBlock.MessageDialog.title"); 
		public void run() {
			Path path = new Path(fJavaDocField.getText());
			IPath index = path.append("index.html"); 
			IPath packagelist = path.append("package-list"); 
			String message = JavaUIMessages.getString("JavadocConfigurationBlock.UnableToValidateLocation.message"); 
			try {
				URL indexURL = new URL(index.toString());
				URL packagelistURL = new URL(packagelist.toString());
				String protocol = indexURL.getProtocol();
				if (protocol.equals("http")) { 
					validateURL(indexURL, packagelistURL);
				} else if (protocol.equals("file")) { 
					validateFile(indexURL, packagelistURL);
				} else {
					MessageDialog.openInformation(fShell, fTitle, message); 
				}
			} catch (MalformedURLException e) {
				MessageDialog.openInformation(fShell, fTitle, message); 
			}
		}
		
		public void validateFile(URL indexURL, URL packagelisURL) {
			
			File indexFile = new File(indexURL.getFile());
			if (indexFile.exists()) {
				File packaglistFile = new File(packagelisURL.getFile());