Bug 118052 - New Aspect wizard fails with pertypewithin
Summary: New Aspect wizard fails with pertypewithin
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.2.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: Matt Chapman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 08:47 EST by Matt Chapman CLA
Modified: 2005-11-28 06:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Chapman CLA 2005-11-25 08:47:55 EST
Found by manual testing (test WIZ_12):
Attempting to create a new aspect with an instantiation option of "pertypewithin" fails with the following error:

Java Model Exception: Java Model Status [MyAspect2 [in [Working copy] MyAspect2.aj [in bean [in src [in Bean Example]]]] does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:561)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:583)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:309)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:295)
at org.eclipse.jdt.internal.core.SourceRefElement.getSourceRange(SourceRefElement.java:163)
at org.eclipse.ajdt.internal.ui.wizards.NewTypeWizardPage.createType(NewTypeWizardPage.java:1675)
at org.eclipse.ajdt.internal.ui.wizards.NewAspectCreationWizard.finishPage(NewAspectCreationWizard.java:63)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:108)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Comment 1 Matt Chapman CLA 2005-11-25 10:50:19 EST
"create a main method" also needs to be selected to reproduce the bug
Comment 2 Matt Chapman CLA 2005-11-28 06:10:05 EST
Fixed for 1.2.1 and 1.3.0