Bug 108934 - initialized field variable not using "new ..." is not recognized.
Summary: initialized field variable not using "new ..." is not recognized.
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: VE Bugzilla inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 10:48 EDT by Richard Kulp CLA
Modified: 2011-06-13 11:37 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 Richard Kulp CLA 2005-09-07 10:48:25 EDT
Take a field such as:

static Preferences prefs =  Preferences.systemRoot().node("HistPerfViewer");

This is not parsed and doesn't become a value that can be used later such as:

jlabel.setText(prefs.get("UserName", null));

"prefs" is considered too complicated, which means prefs wasn't evaluated.

If I replaced with:

jlabel.setText(Preferences.systemRoot().node("HistPerfViewer").get("UserName",
null));

instead, the setText will work. Here the entire expression could be parsed.