Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354869 - JS Runtime exceptions in wrong package, some missing, and some obsolete
Summary: JS Runtime exceptions in wrong package, some missing, and some obsolete
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 13:46 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Spadea CLA 2011-08-16 13:46:01 EDT
AnyException's IR was changed from package egl.core to egl.lang. It needs to be updated in the JS runtime.

I'm going to update its package, but I'm leaving this open because I don't know if any other changes are necessary in the runtime, due to changes in the IRs (e.g. its super type in the runtime is egl.jsrt.Record, but in the IRs it's an external type that extends EglAny).
Comment 1 Justin Spadea CLA 2011-08-16 15:35:26 EDT
There were a lot of other problems with the other runtime exceptions so I've updated their packages, super type package, and all references. I removed those that no longer exist in EDT (such as LobProcessingException) and added missing exception types (such as InvalidPatternException). Deployment code has been updated to include the correct set of .js files.

NOTE: RuntimeException has been removed in EDT, and specific exception types should be thrown instead. There were many, many occurrences of RuntimeException being thrown, so I've replaced each one with "TODO: make an exception for this". There were ~150 places throwing this exception type that need to be updated. If a new Exception type needs to be added to the eglars, please check with Matt Heitz.
Comment 2 Scott Greer CLA 2011-09-02 08:12:17 EDT
Justin,

After talking with Joe and Matt yesterday, we concluded the best thing to do with exceptions in the JS RT was to bring back the RuntimeException.js part but update its implementation to throw AnyException instead of the old RuntimeException (since that has been dropped from EDT).  Doing this restores the ability to differentiate exceptions based on the message id while also being consistent with EDT's decision to treat all runtime exceptions as AnyExceptions.  I've finished this work and will be committing it under https://bugs.eclipse.org/bugs/show_bug.cgi?id=352122

Note that this doesn't affect any runtime logic that throws -- or should throw -- other exception classes.  Joe shared your concern that there may be some places where a more specific exception class would be more appropriate;  for now, the thinking is that we'll fix those as they come up.....  It's up to you whether you want to keep this bug open as a reminder to review the code for these things.
Comment 3 Scott Greer CLA 2011-09-07 21:31:09 EDT
Justin, 

I think we're done with this one;  please re-open (with comments) if there's more that needs to be covered...thanks!
Comment 4 Justin Spadea CLA 2011-09-08 14:27:25 EDT
Closing