Community
Participate
Working Groups
Steps: 1. Create a uml profile project and profile 2. Create a stereotype in the profile 3. Create a metaclass extension to "Class" 4. Create an attribute "x:Integer" in the stereotype 5. Save 6. Create a uml project and blank model 7. Apply the profile to the blank model 8. Add a class to the model 9. Apply the stereotype to the class 10. Save all 11. In the profile, open the properties for the "x" attribute and select the "Read Only" checkbox 12. Close the uml model 13. Open the uml model. 14. reapply Stack Trace: java.lang.IllegalArgumentException: The feature 'x' is not a valid changeable feature at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(Unknown Source) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(Unknown Source) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(Unknown Source) at org.eclipse.uml2.uml.internal.operations.PackageOperations$StereotypeApplicationCopier.copyEDataTypeAttribute(Unknown Source) at org.eclipse.uml2.uml.internal.operations.PackageOperations$StereotypeApplicationCopier.copyAttribute(Unknown Source) at org.eclipse.emf.ecore.util.EcoreUtil$Copier.copy(Unknown Source) at org.eclipse.uml2.uml.internal.operations.PackageOperations.applyProfile(Unknown Source) at org.eclipse.uml2.uml.internal.impl.PackageImpl.applyProfile(Unknown Source) at com.ibm.xtools.modeler.ui.internal.profile.ProfileMigrationUtil$2.run(Unknown Source) at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source) at com.ibm.xtools.modeler.ui.internal.profile.ProfileMigrationUtil$1.doExecuteWithResult(Unknown Source) at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(Unknown Source) at org.eclipse.emf.workspace.AbstractEMFOperation.execute(Unknown Source) at org.eclipse.emf.workspace.CompositeEMFOperation.doExecute(Unknown Source) at org.eclipse.emf.workspace.AbstractEMFOperation.execute(Unknown Source) at org.eclipse.emf.workspace.CompositeEMFOperation.doExecute(Unknown Source) at org.eclipse.emf.workspace.AbstractEMFOperation.execute(Unknown Source) at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(Unknown Source) at com.ibm.xtools.modeler.ui.internal.profile.ProfileMigrationUtil.executeCommand(Unknown Source) at com.ibm.xtools.modeler.ui.internal.profile.ProfileMigrationUtil.upversionProfileApplications(Unknown Source) at com.ibm.xtools.modeler.ui.internal.profile.ProfileMigrationUtil.processAppliedProfiles(Unknown Source) at com.ibm.xtools.modeler.ui.internal.ui.resources.ModelerResourceManager.processResourceMigration(Unknown Source) at com.ibm.xtools.modeler.ui.internal.ui.resources.ModelerResourceManager.access$3(Unknown Source) at com.ibm.xtools.modeler.ui.internal.ui.resources.ModelerResourceManager$2.run(Unknown Source) at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source) at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source) at org.eclipse.ui.internal.Workbench.runUI(Unknown Source) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Unknown Source) at org.eclipse.core.launcher.Main.basicRun(Unknown Source) at org.eclipse.core.launcher.Main.run(Unknown Source) at org.eclipse.core.launcher.Main.main(Unknown Source)
Created attachment 68407 [details] added guards to ensure target is changeable.
The fix has been committed to CVS.
The fix is available in build 2.1RC1.
Move to verified as per bug 206558.