From 198106815dadfac611b4f20fe0ca8a6674a30b1f Mon Sep 17 00:00:00 2001
From: Patrick Plitzner
Date: Wed, 3 Feb 2016 17:59:49 +0100
Subject: [PATCH] Add FIXME comment
---
.../taxeditor/annotatedlineeditor/AnnotatedLineEditor.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/AnnotatedLineEditor.java b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/AnnotatedLineEditor.java
index e1208b01c..e7640f011 100644
--- a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/AnnotatedLineEditor.java
+++ b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/AnnotatedLineEditor.java
@@ -164,6 +164,9 @@ public class AnnotatedLineEditor extends TextEditor implements IConversationEnab
// to create / save the entity may have been closed
if(entity != null && ((AnnotatedLineDocumentProvider) getDocumentProvider()).getEntityCreator(getEditorInput()).savesEntity()) {
getConversationHolder().bind();
+ //FIXME: why do we use IOccurrenceService here? is this generic?
+ //because this method is only invoked by the handler which is used in the
+ //specimen bulk editor. This is unsafe and should be refactored!
Object object = CdmStore.getService(IOccurrenceService.class).load(((CdmBase)entity).getUuid());
entity = HibernateProxyHelper.deproxy(object);
}
--
2.34.1