Bug 190087 - Static fields can't be reassigned
Summary: Static fields can't be reassigned
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2007-05-30 19:15 EDT by Terry Kilshaw CLA
Modified: 2007-06-06 14:25 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 Terry Kilshaw CLA 2007-05-30 19:15:34 EDT
I'm using Eclispe with some Tomcat code.

I have some static fields in a class that are assigned values.

When I run a method that attempts to change the value on any static field the value does not change.

I have tried all sorts of ways to get this to work but when I step through the code using the debugger I see that the value of the static field is shown as null.

Even if I assign it a value in the original declaration!

thanks,

Terry
Comment 1 Olivier Thomann CLA 2007-05-30 22:09:48 EDT
Could you please provide a test case with steps to reproduce?
Do you see the problem only in the debugger? What about printing the value using System.out.println()?
Is the value changed?
Comment 2 Olivier Thomann CLA 2007-06-06 14:25:38 EDT
Closing as WORKSFORME.
Please reopen once you can provide more details.