Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 254958

Summary: Can't set value for a private field from subclass instance
Product: [Eclipse Project] JDT Reporter: Nikola Mihajloviæ <alamothe>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Nikola Mihajloviæ CLA 2008-11-11 17:19:09 EST
Enter this code:
public class Test {
	class X {
		private int x;
	}
	class Y extends X {
	}
	
	public static void main(String[] args) {
		Y y = a.new Y();
	}
}

When debugging, in display view you can inspect the value of x with "y.x", but you can't set it with "y.x = ...", error:
	Evaluation failed. Reason(s):
		java.lang.NullPointerException
Please fix this.
Comment 1 Eclipse Genie CLA 2020-03-30 20:06:22 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.