Bug 107826 Serial version quick fix improvements [quick fix]
- Do not put everything on the user class path - Use only the standard output for result and error messages - Remove waitFor() - Read from stream until -1
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/SerialVersionLaunchConfigurationDelegate.java
arguments.add(programArguments[index]);
				final String[] commandLine= new String[arguments.size()];
				arguments.toArray(commandLine);
				if (monitor.isCanceled())
					return;
				subMonitor.worked(1);
				subMonitor.subTask(CorrectionMessages.SerialVersionLaunchConfigurationDelegate_starting_vm);
				final Process process= exec(commandLine, null);
				if (process != null) {
					try {
						process.waitFor();
					} catch (InterruptedException exception) {
						
					}
					StringBuffer buffer= new StringBuffer();
					BufferedReader reader= new BufferedReader(new InputStreamReader(process.getInputStream()));
					try {
						int result= 0;
						while (reader.ready()) {
							result= reader.read();
							if (result >= 0)
								buffer.append((char) result);
						}
						String string= buffer.toString();
						int start= string.indexOf(RESULT_PREFIX);
						if (start >= 0) {
							int end= string.indexOf(RESULT_POSTFIX, start);
							if (end >= 0)
								fSerialVersionID= Long.valueOf(string.substring(start + RESULT_PREFIX.length(), end)).longValue();
						}