Bug 23191 - Instance/Class Variables declared on multiple lines producing error
Summary: Instance/Class Variables declared on multiple lines producing error
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.1 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-04 18:24 EDT by Govy Munamala CLA
Modified: 2003-03-23 12:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Govy Munamala CLA 2002-09-04 18:24:14 EDT
When tried to declare instance variables as followed, 
private int 	_top = 0,
		_bottom = 0,
		_topRow = 0,
		_bottomRow = 0;
i.e with variable _bottom declared in the next line and so on, the IDE couldn't
recognize any of the varibles from _bottom and below.. However when I tried to
declare all these on the same line for example 
private int _top = 0,_bottom = 0,_topRow = 0,_bottomRow = 0; it worked fine..
Comment 1 Olivier Thomann CLA 2002-09-06 14:41:59 EDT
Could not reproduce. Could you please describe what you mean with "the IDE couldn't
recognize any of the varibles from _bottom and below."?

I have no problem to get these variables through the code assist or compile code
that uses them.
Comment 2 Govy Munamala CLA 2002-09-06 15:56:38 EDT
Sorry, It was my mistake.. I had an un-matched curly bracket before the instance
variable definition and that seems to be the reason for this weird behaviour..
However when I matched the curly bracket the variable declaration is no longer a
problem!!!! 

You can ignore the bug... Sorry for the confusion...