Bug 32299 No quick fix for uncaught exception
I have the following method where the call to execute(Runnable) throws an Exception. The code does not compile with: Kind Status Priority Description Resource In Folder Location Error Unhandled exception type EmptyThreadPoolException MQCommunicationManager.java Transidiom- DevE/Java/Source/com/seagullsw/appinterface/server/comm/ibmmq line 129 which is good but there is no quick fix to wrap the call with a try catch block: "No corrections available". protected void processNextInputQueueMessage() { final MQMessage inputMessage = this.readNextInputQueueMessage (); if ((this.isStopFlagUp()) || (inputMessage == null)) { return; } final String request = this.getStringMessage(inputMessage); if (request != null) { this.getAIS().execute(new Runnable() { public void run() { String response = MQCommunicationManager.this.execute(request, inputMessage); if (response != null) { MQCommunicationManager.this.putMessageOnQ(response, MQCommunicationManager.this.getOutputQueue(), inputMessage); } } }); } } Version: 2.1 Build id: 200302061700
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSelectMarkerRulerAction.java
}
		
		fPosition= getJavaAnnotationPosition();
		if (fPosition != null)
			setEnabled(true);
		else
			super.update();
	}
	
	private Position getJavaAnnotationPosition() {
		AbstractMarkerAnnotationModel model= getAnnotationModel();
		IDocument document= getDocument();
		if (model == null)
			return null;
		Iterator iter= model.getAnnotationIterator();
		while (iter.hasNext()) {
			Annotation annotation= (Annotation) iter.next();
			if (annotation instanceof IJavaAnnotation) {
				IJavaAnnotation javaAnnotation= (IJavaAnnotation)annotation;
				if (javaAnnotation.isRelevant()) {
					Position position= model.getPosition(annotation);
					if (includesRulerLine(position, document) && JavaCorrectionProcessor.hasCorrections(javaAnnotation))
						return position;
				}
			}
		}
		return null;
	}
}