Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 176648 - Generic methods fail in Debugger's Watch Expressions
Summary: Generic methods fail in Debugger's Watch Expressions
Status: RESOLVED DUPLICATE of bug 184862
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 16:20 EST by Charles Koppelman CLA
Modified: 2007-07-29 09:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Koppelman CLA 2007-03-07 16:20:45 EST
Build ID: M20060629-1905

Steps To Reproduce:
1. Create a method like:
public static <T extends Comparable<T>> T greatestOrLeast(T r1, T r2, boolean greater) {
   T ret = r1;
   if(r1!=null && r2!=null){
      if(greater && r1.compare(r2) > 0) {
         ret = r1;
      } else ret = r2;
   }
   return ret;
}

2. Put a breakpoint somewhere inside of the method.
3. When you go in, try watching something.  Anything - Even r1 or r2. 
4. I get the error message under the watch expression saying something to the effect of Expressions must be ...something.... or well-formed code.  You get the same error on non-parameterized variables in the same method.

More information:
Comment 1 Matt Chapman CLA 2007-03-07 17:26:06 EST
Passing over to platform
Comment 2 Darin Wright CLA 2007-05-03 11:10:37 EDT
Will be fixed with the patch to bug 184862.

*** This bug has been marked as a duplicate of bug 184862 ***
Comment 3 Eclipse Webmaster CLA 2007-07-29 09:21:59 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991