Project

General

Profile

Actions

Bug #1613

closed

AssertionFailedException при переименовании требования с пустым идентификатором

Added by Alexey Khoroshilov over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Start date:
08/03/2011
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
0.12.104

Description

Шаги были простые:
1. Создать требование.
2. Изменить его идентификатор на пустую строку (делается по простой причине - переход в MarkupEditor за копи-пастом по ходу редактирования идентификатора).
3. Установить идентификатор в непустую строку.

На шаге 3 появляется исключение. Ожидается, что идентификатор сделать пустым не дадут.

eclipse.buildId=M20110210-1200
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.linuxtools.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.linuxtools.product

Error
Wed Aug 03 09:36:34 MSD 2011
Unhandled event loop exception

org.eclipse.core.runtime.AssertionFailedException: assertion failed: Cannot move '/AAA/root/Requirements/r-AAR'. Destination should not be under source's hierarchy.
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
    at org.eclipse.core.internal.resources.Resource.assertMoveRequirements(Resource.java:195)
    at org.eclipse.core.internal.resources.Resource.move(Resource.java:1585)
    at org.eclipse.core.internal.resources.Resource.move(Resource.java:1565)
    at com.unitesk.requality.eclipse.core.ResourceStorage.changeNodeId(ResourceStorage.java:255)
    at com.unitesk.requality.core.TreeNode.setId(TreeNode.java:54)
    at com.unitesk.requality.nodetypes.Requirement.setId(Requirement.java:115)
    at com.unitesk.requality.eclipse.views.properties.MainPropertySection$2.focusLost(MainPropertySection.java:100)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:143)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
    at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:3391)
    at org.eclipse.swt.widgets.Control.gtk_event_after(Control.java:2760)
    at org.eclipse.swt.widgets.Text.gtk_event_after(Text.java:1308)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1738)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4796)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
    at org.eclipse.swt.internal.gtk.OS._gtk_widget_grab_focus(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_widget_grab_focus(OS.java:12693)
    at org.eclipse.swt.widgets.Control.forceFocus(Control.java:2170)
    at org.eclipse.swt.widgets.Control.forceFocus(Control.java:2163)
    at org.eclipse.swt.widgets.Control.setTabItemFocus(Control.java:4053)
    at org.eclipse.swt.widgets.Widget.setTabGroupFocus(Widget.java:1640)
    at org.eclipse.swt.widgets.Control.traverseGroup(Control.java:4680)
    at org.eclipse.swt.widgets.Control.traverse(Control.java:4645)
    at org.eclipse.swt.widgets.Control.translateTraversal(Control.java:4616)
    at org.eclipse.swt.widgets.Text.translateTraversal(Text.java:2159)
    at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2838)
    at org.eclipse.swt.widgets.Text.gtk_key_press_event(Text.java:1452)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4796)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8189)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1238)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2237)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3159)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Actions #1

Updated by Alexey Khoroshilov over 13 years ago

  • Priority changed from Normal to High
  • Target version set to 0.12

Ещё сюда же: при сохранении измененных идентификаторов требований необходимо обрезать начальные и конечные пробельные символы, которые легко появляются при копи-пасте.

Actions #2

Updated by Yuriy Shekochihin over 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2195.

Actions #3

Updated by Yuriy Shekochihin over 13 years ago

  • Published in build set to 0.12.103
Actions #4

Updated by Viktoria Kopach over 13 years ago

  • Status changed from Resolved to Feedback
  • Assignee set to Yuriy Shekochihin

Пробелы не обрезаются.

Actions #5

Updated by Viktoria Kopach over 13 years ago

  • Status changed from Feedback to Open
  • Assignee changed from Yuriy Shekochihin to Viktoria Kopach
Actions #6

Updated by Viktoria Kopach over 13 years ago

  • Status changed from Open to Resolved
  • Published in build deleted (0.12.103)
Actions #7

Updated by Yuriy Shekochihin over 13 years ago

  • Published in build set to 0.12.104
Actions #8

Updated by Viktoria Kopach over 13 years ago

  • Status changed from Resolved to Verified
  • Assignee changed from Viktoria Kopach to Alexey Khoroshilov
Actions #9

Updated by Alexey Khoroshilov over 13 years ago

  • Status changed from Verified to Closed
Actions

Also available in: Atom PDF