Bug 330078 - Wrong reporting on unused variables
Summary: Wrong reporting on unused variables
Status: VERIFIED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-12 07:53 EST by rafael.osipov CLA
Modified: 2010-12-07 05:26 EST (History)
2 users (show)

See Also:


Attachments
Screenshot (26.71 KB, image/png)
2010-11-12 07:54 EST, rafael.osipov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rafael.osipov CLA 2010-11-12 07:53:47 EST
Build Identifier: M20100211-1343

Eclipse reports on unused variables even these variables are in use

See the screenshot: http://tinypic.ru/media/2010/11/20101112160714_545.png

Reproducible: Always

Steps to Reproduce:
1. Declare some variable(s) with value(s)
2. Use this variable
3. Look for wrong warning

See the screenshot: http://tinypic.ru/media/2010/11/20101112160714_545.png
Comment 1 rafael.osipov CLA 2010-11-12 07:54:53 EST
Created attachment 182985 [details]
Screenshot

screenshot with buggy behaviour
Comment 2 rafael.osipov CLA 2010-11-12 07:56:01 EST
Check the screenshot from the attached file.

Unfortunately the link to tinypic.ru does not work.
Comment 3 Olivier Thomann CLA 2010-11-12 08:48:39 EST
Could you please provide a test case that shows the problem?
This is not the format of error/warning messages that JDT reports.

Do you have any other bundles installed ?
Comment 4 rafael.osipov CLA 2010-11-12 09:50:31 EST
I use BlackBerry Eclipse Plugin and it is a project that works with this plugin.

I prepared a test case, exported it as a zip archive and tried to check (import) to be sure that issue would be reproduced on your side.

But on import all wrong reports disappeared.

I tried another way. Just tried to import an existing project to Eclipse.

But after import all wrong reports also disappeared.

Perhaps it is an IDE code caching issue or something like this.
Comment 5 Olivier Thomann CLA 2010-11-12 10:06:26 EST
I think the problem comes from the Blackberry bundle. It must do some validation that looks wrong.
As I said, the format of the error message doesn't look like a JDT error message.

So I would close as NOT_ECLIPSE and you should report the problem to the vendor that provides the Blackberry Eclipse plugin.

Maybe there is an update that is fixing this issue.

Please reopen if you can reproduce in a plain java project.
Comment 6 rafael.osipov CLA 2010-11-12 12:26:51 EST
Ok.

Thank you for assistance.
Comment 7 Jay Arthanareeswaran CLA 2010-12-07 05:26:51 EST
Verified for 3.7M4.