Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: X10 2.0.3
-
Fix Version/s: X10 2.0.4
-
Component/s: X10DT Source Editor
-
Labels:None
-
Number of attachments :
Description
If while processing A.x10, a reference to B.x10 is encountered, the compiler front end processes B.x10, and may issue messages regarding various kinds of errors on B.x10.
If the compiler front-end was invoked on behalf of the source editor, such errors will actually be flagged on A.x10, since the CompilerDelegate uses an anonymous AbstractErrorQueue that doesn't differentiate errors on distinct files. It should really only report errors on the file for which it was intended (since the CompilerDelegate is responsible for a single source file, the one in the open source editor).
Activity
Robert M. Fuhrer
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Mandana Vaziri [ mvaziri ] |
Robert M. Fuhrer
made changes -
| Original Estimate | 1 day [ 86400 ] | |
| Remaining Estimate | 1 day [ 86400 ] |
Mandana Vaziri
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
David Grove
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
To fix this bug, I also had to do filtering inside MessageHandlerAdapter because syntactic errors don't go into the AbstractErrorQueue. MessageHandlerAdapter lives in IMP and the fix required a change in the constructor, so I copied it in X10DT and did the proper filtering in a class called MessageHandlerAdapterFilter. I could not subclass MessageHandlerAdapter because fIMPHandler would not be visible.