Bug 116977

Summary: Local variable is not used, warning even though it is
Product: [Eclipse Project] JDT Reporter: kappa <ulo_kapta>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1.1   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Linux   
Whiteboard:

Description kappa CLA 2005-11-18 00:10:02 EST
private int count = 8;

public someMethod(int count) {
     this.count = count;
}

here the local variable is used eclipse shows warning it isn't!
Comment 1 Philipe Mulet CLA 2005-11-18 03:02:15 EST
Cannot reproduce, also note that in your example the method has no return type.
Comment 2 kappa CLA 2005-11-18 08:45:56 EST
(In reply to comment #1)
>note that in your example the method has no return type.


whoops sorry, it was suppose to be 

private int count = 8;

public void someMethod(int count) {
     this.count = count;
}
Comment 3 Philipe Mulet CLA 2005-11-18 12:33:50 EST
Please provide complete test case. As I said, I cannot reproduce it. I had
figured adding the missing return type.
Comment 4 Olivier Thomann CLA 2005-11-24 12:15:08 EST
Closing as REMIND.
Please reopen once requested test case is attached.
Comment 5 Philipe Mulet CLA 2006-03-27 07:55:15 EST
reopening to close properly
Comment 6 Philipe Mulet CLA 2006-03-27 07:55:58 EST
closing since didn't hear back in a long time.