From: SourceForge.net <no...@so...> - 2010-02-24 06:52:40
|
Feature Requests item #2957807, was opened at 2010-02-24 06:52 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438938&aid=2957807&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interactions Group: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: DynamicJava Interpreter Should Return Type of Result Initial Comment: The DynamicJava interpreter should be modified to not just return the result of an evaluation, but also the type. This would simplify and extend DrJava's ability to display the type of Watch expressions in the debugger. See bug report 2957035: Unable to view watch variables http://sourceforge.net/tracker/index.php?func=detail&aid=2957035&group_id=44253&atid=438935 We do not have good type information, though, because there is no way to distinguish whether the interpreter returned a primitive or a boxed type right now. Also, handling both local variables and fields is messy right now, so local variables currently do not display type information. Both of these problems can be addressed by also returning the type of an interpretation result. Even if we return an Integer(1), we can return int.class as type and therefore distinguish primitive and boxed types. We also do not have to treat fields and local variables separately; we can just evaluate both and display the result type. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438938&aid=2957807&group_id=44253 |