Project

General

Profile

Actions

Task #551

closed

Попытка создать node с существующим id

Added by Alexey Demakov almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Yuriy Shekochihin
Category:
-
Target version:
Start date:
11/15/2010
Due date:
% Done:

100%

Estimated time:
Detected in build:
Published in build:
44

Description

При попытке создать node с существующим id методом
Node.createChild(...)
сейчас выпадает ResourceException при попытке создать файл:
org.eclipse.core.internal.resources.ResourceException: Resource '/doors/root/Requirements/r-AAR-OMS-01-01-009.json' already exists.
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:305)
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:292)
at org.eclipse.core.internal.resources.File.create(File.java:120)
at org.eclipse.core.internal.resources.File.create(File.java:196)
at com.unitesk.requality.eclipse.tools.ResourceStorage$1.run(ResourceStorage.java:129)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1957)
at com.unitesk.requality.eclipse.tools.ResourceStorage.createNode(ResourceStorage.java:142)
at com.unitesk.requality.core.TreeStorage.createNode(TreeStorage.java:27)
at com.unitesk.requality.core.TreeDB.createChildNode(TreeDB.java:121)
at com.unitesk.requality.core.TreeNode.createChild(TreeNode.java:148)

Хотелось бы иметь внятную диагностику не зависящую от способа хранения.
Типа IllegalArgumentException...

Actions #1

Updated by Yuriy Shekochihin almost 14 years ago

  • Status changed from New to Resolved
  • Published in build set to 44
Actions #2

Updated by Alexey Khoroshilov almost 14 years ago

  • Target version set to 0.7
Actions #3

Updated by Alexey Demakov almost 14 years ago

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

Проверено, есть тест nodeWithSameIdCreation.

Actions

Also available in: Atom PDF