Bug 116935 - New Class wizard: Java Model Exception: Java Model Status [Invalid name specified: Examle'.java]
Summary: New Class wizard: Java Model Exception: Java Model Status [Invalid name speci...
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-11-17 16:08 EST by Adam Kiezun CLA
Modified: 2009-08-30 02:06 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 Adam Kiezun CLA 2005-11-17 16:08:28 EST
3.2M3
It's possible to get an exception when using the new class wizard.
I got it when I (very fast) typed a bogus name and pressed enter:

Java Model Exception: Java Model Status [Invalid name specified: Examle'.java]
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:779)
at
org.eclipse.jdt.internal.core.PackageFragment.createCompilationUnit(PackageFragment.java:135)
at
org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType(NewTypeWizardPage.java:1772)
at
org.eclipse.jdt.internal.ui.wizards.NewClassCreationWizard.finishPage(NewClassCreationWizard.java:58)
at
org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117)
at
org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:724)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1705)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3856)
at
org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Comment 1 Martin Aeschlimann CLA 2005-11-17 18:19:10 EST
Please give reproducable steps. You managed to enter a '. If I try that (however
how fast I try), the ok button becomes disabled.
Comment 2 Adam Kiezun CLA 2005-11-17 18:36:25 EST
will try. no guarantees though. I tried reproducing and usually it gets disabled.
I managed to make it happen at least twice though.

not a serious problem of course.
BTW, it's on Linux GTK. Maybe that matters. Maybe the 'finished pressed' event
gets delivered before the 'type name changed' for some reason.
Comment 3 Martin Aeschlimann CLA 2006-02-06 10:42:19 EST
setting to remind. please reopen if you have reproducable steps
Comment 4 Denis Roy CLA 2009-08-30 02:06:51 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.