Bug 114418 - [quick fix] Comments causes pbs to the quick fix adding catch clause
Summary: [quick fix] Comments causes pbs to the quick fix adding catch clause
Status: RESOLVED DUPLICATE of bug 95839
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 15:43 EST by Pascal Rapicault CLA
Modified: 2005-11-04 10:36 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2005-10-31 15:43:54 EST
In the following method, I get an error on the line that says osi.readObject().
When I use the "add catch clause" quick fix, the catch clause is added commented .

	private void load() throws IOException {
		try {
			ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new
FileInputStream(location)));
			contentStatus = (Set) ois.readObject();
		} catch (IOException e) {
			e.printStackTrace();
		}
		//		if (!location.exists())
		//			return;
		//		DataInputStream input = new DataInputStream(new BufferedInputStream(new
FileInputStream(location)));
		//		try {
		//			if (input.readInt() != FILE_VERSION)
		//				return;
		//			int size = input.readInt();
		//			registry = new HashMap(size);
		//			for (int i = 0; i < size; i++) {
		//				String key = input.readUTF();
		//				int refCount = input.readInt();
		//				Set collection = new HashSet();
		//				for (int j = 0; j < refCount; j++) {
		//					String id = input.readUTF();
		//					Version version = new Version(input.readUTF());
		//					collection.add(new Reference(id, version));
		//				}
		//				registry.put(key, collection);
		//			}
		//		} finally {
		//			try {
		//				input.close();
		//			} catch (IOException e) {
		//				// ignore
		//			}
		//		}
	}
Comment 1 Martin Aeschlimann CLA 2005-11-04 10:36:22 EST
same bug that results in bug 95839

*** This bug has been marked as a duplicate of 95839 ***