Bug 227531 - add one exception logging in ASTParser
Summary: add one exception logging in ASTParser
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 07:52 EDT by Uwe Voigt CLA
Modified: 2008-04-29 10:38 EDT (History)
0 users

See Also:


Attachments
Proposed fix (1.57 KB, patch)
2008-04-21 23:31 EDT, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Voigt CLA 2008-04-17 07:52:35 EDT
Build ID: *

Steps To Reproduce:
No steps since it is related to a specific part of the code

More information:
Would it be possible to add a trace output of a thrown exception in:
org.eclipse.jdt.core.dom.ASTParser (rev. 1.77)
at line: 851
context
...
						} catch(JavaModelException e) {
							// an error occured accessing the java element
							throw new IllegalStateException();
						}
...

If this IllegalStateException is thrown, no one knows what really has happened nor how to fix


Thanks!
Comment 1 Olivier Thomann CLA 2008-04-21 23:22:31 EDT
This could indeed be more verbose.
Comment 2 Olivier Thomann CLA 2008-04-21 23:31:53 EDT
Created attachment 96961 [details]
Proposed fix
Comment 3 Olivier Thomann CLA 2008-04-21 23:32:13 EDT
Released for 3.4M7.
Comment 4 Kent Johnson CLA 2008-04-29 10:38:48 EDT
Verified for 3.4 M7 by code inspection of v_855.