Bug 534517 - Configure JRE doesnt work from JDK compliance preference page ( and NPE later)
Summary: Configure JRE doesnt work from JDK compliance preference page ( and NPE later)
Status: REOPENED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-09 13:26 EDT by Vikas Chandra CLA
Modified: 2022-08-18 17:58 EDT (History)
1 user (show)

See Also:


Attachments
Options used (194.11 KB, image/jpeg)
2018-05-09 13:26 EDT, Vikas Chandra CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Chandra CLA 2018-05-09 13:26:09 EDT
Created attachment 273983 [details]
Options used

1) Launch eclipse with Java 10
2) Go to Java preference page Java -> Compiler
3) Change the various preference options to the one in image attached
4) Click on Configure...

Nothing happens.

Click cancel, you get NPE

java.lang.NullPointerException
	at org.eclipse.jdt.internal.debug.ui.jres.JREsPreferencePage.dispose(JREsPreferencePage.java:321)
	at org.eclipse.jface.preference.PreferenceNode.disposeResources(PreferenceNode.java:160)
	at org.eclipse.ui.internal.preferences.WorkbenchPreferenceExtensionNode.disposeResources(WorkbenchPreferenceExtensionNode.java:132)
	at org.eclipse.jface.preference.Preference
Comment 1 Eclipse Genie CLA 2018-05-09 13:28:54 EDT
New Gerrit change created: https://git.eclipse.org/r/122367
Comment 2 Dani Megert CLA 2018-05-10 05:33:52 EDT
Not a regression.
Comment 3 Dani Megert CLA 2018-05-10 05:45:08 EDT
Increasing severity since after that, an error is logged every time when 'Apply and Close' is pressed (after reopening the dialog), no matter on what preference page.
Comment 4 Eclipse Genie CLA 2020-05-01 04:35:02 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.
Comment 5 Dani Megert CLA 2020-05-01 09:43:52 EDT
Still happens with 4.16 M2.
Comment 6 Eclipse Genie CLA 2020-05-01 10:39:07 EDT
New Gerrit change created: https://git.eclipse.org/r/161866
Comment 7 Sarika Sinha CLA 2020-05-01 10:40:11 EDT
(In reply to Eclipse Genie from comment #6)
> New Gerrit change created: https://git.eclipse.org/r/161866

Debug should definitely check if JREBlock is not null.
Comment 9 Sarika Sinha CLA 2020-05-04 08:30:39 EDT
(In reply to Dani Megert from comment #5)
> Still happens with 4.16 M2.

I tried new workspaces launching with Java 10, 11, and 14 but could not reproduce.
Kept the .class compatibility to a higher level than others, got the error and warning as the atachment but clicking on Configure Project settings openened the Project selection dialog.

Any other step which could have mattered?
Comment 10 Dani Megert CLA 2020-05-20 05:21:07 EDT
(In reply to Sarika Sinha from comment #9)
> (In reply to Dani Megert from comment #5)
> > Still happens with 4.16 M2.
> 
> I tried new workspaces launching with Java 10, 11, and 14 but could not
> reproduce.
> Kept the .class compatibility to a higher level than others, got the error
> and warning as the atachment but clicking on Configure Project settings
> openened the Project selection dialog.
> 
> Any other step which could have mattered?
I can reproduce that the link doesn't work, but no NPE.

1. Start new workspace with Java 10
2. Set the options as in the attached screenshot
3. Click the 'Configure...' link
==> nothing happens

NOTE: When trying it again in the still running workspace it gives a dialog telling that there are invalid values.
Comment 11 Sarika Sinha CLA 2020-05-20 09:51:49 EDT
(In reply to Dani Megert from comment #10)

> I can reproduce that the link doesn't work, but no NPE.
> 
> 1. Start new workspace with Java 10
> 2. Set the options as in the attached screenshot
> 3. Click the 'Configure...' link
> ==> nothing happens
> 
> NOTE: When trying it again in the still running workspace it gives a dialog
> telling that there are invalid values.

Tried on Windows and Mac launching with Java 10 and -data option for new workspace, Following the steps and clicking on "Configure" gives dialog for "The currently displayed page contains invalid values".
Comment 12 Noopur Gupta CLA 2020-07-02 08:58:40 EDT
Sarika, can you please update the TM/status?
Comment 13 Sarika Sinha CLA 2020-07-02 09:02:34 EDT
(In reply to Noopur Gupta from comment #12)
> Sarika, can you please update the TM/status?

What update do you want other than comment#11 ?
Comment 14 Sarika Sinha CLA 2020-07-02 09:08:55 EDT
If some one is able to reproduce, please take it forward. 
I will not be able to work without reproducing it.
Comment 15 Eclipse Genie CLA 2022-08-18 17:58:34 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.

If you have further information on the current state of the bug, please add it. 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.