|
From: SourceForge.net <no...@so...> - 2007-11-02 11:45:41
|
Bugs item #1824594, was opened at 2007-11-02 04:45 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1824594&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 Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Interactions: problem with expressions as methods parameters Initial Comment: It seems that the Interactions panel cannot manage expressions as actual parameters of methods. For instance, the following code perfectly executes ------------ // DrJava saved history v2 void f(int n){ System.out.println(n); } void main(){ int x = 4; int y=x-1; f(y); } main(); --------------- Also the following one is OK // DrJava saved history v2 void f(int n){ System.out.println(n); } void main(){ int x = 4; f(--x); } main(); ------------------ Instead, the following one raises an error Error: Bad type in subtraction ------------------- // DrJava saved history v2 void f(int n){ System.out.println(n); } void main(){ int x = 4; // int y=x-1; f(x-1); } main(); ------------------- ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1824594&group_id=44253 |