Community
Participate
Working Groups
- Add a new external JAR on Libraries page. - Select "Is modular" and press Edit. - "Working on unapplied changes" dialog comes up. - Press "Esc" key on keyboard. We get this exception in error log: java.lang.IllegalStateException: Unexpected answer from dialog at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathBasePage.showAddExportDialog(BuildPathBasePage.java:105) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.editAttributeEntry(LibrariesWorkbookPage.java:521) ...
(In reply to Noopur Gupta from comment #0) > - Add a new external JAR on Libraries page. > - Select "Is modular" and press Edit. > - "Working on unapplied changes" dialog comes up. > - Press "Esc" key on keyboard. > We get this exception in error log: > > java.lang.IllegalStateException: Unexpected answer from dialog > at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathBasePage.showAddExportDialog(BuildPathBasePage.java:105) > at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.editAttributeEntry(LibrariesWorkbookPage.java:521) > ... Thanks for catching. The truly unexpected answer is: SWT.DEFAULT (-1) (learning s.t. new every day :) ). Obviously, Esc (or shell close for that matter) should be handled like "Cancel".
Resolved via http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?h=BETA_JAVA9&id=2d8a95c9426a701f0a5e7c0ae8cf76c6e7bf1090