Bug 190087

Summary: Static fields can't be reassigned
Product: [Eclipse Project] JDT Reporter: Terry Kilshaw <tkilshaw>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 Keywords: needinfo
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.