Community
Participate
Working Groups
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)
"create a main method" also needs to be selected to reproduce the bug
Fixed for 1.2.1 and 1.3.0