Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marchi2013-02-20 16:05:10 +0000
committerMatthew Khouzam2013-02-20 21:52:16 +0000
commit92b9d7d6f6ae06a8f9b4d465e6080c4b302a3859 (patch)
treeeb7a479ccddd01bce081ca1c644b33a309d1d1a5
parent38cda7b0edca05287ec618505b7cd45cf37300de (diff)
downloadorg.eclipse.linuxtools-92b9d7d6f6ae06a8f9b4d465e6080c4b302a3859.tar.gz
org.eclipse.linuxtools-92b9d7d6f6ae06a8f9b4d465e6080c4b302a3859.tar.xz
org.eclipse.linuxtools-92b9d7d6f6ae06a8f9b4d465e6080c4b302a3859.zip
Fix EnumDefinition's "value" field assignments
Change-Id: I927f904fab8f60e6d762541a36164dcc93650edb Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca> Reviewed-on: https://git.eclipse.org/r/10524 Tested-by: Hudson CI Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com> IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com> Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
-rw-r--r--lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java
index f04f1d118c..1fc57fa1a5 100644
--- a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java
+++ b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java
@@ -54,7 +54,7 @@ public class EnumDefinition extends SimpleDatatypeDefinition {
integerValue = declaration.getContainerType().createDefinition(
definitionScope, fieldName);
- value = ((Long) integerValue.getValue()).toString();
+ value = declaration.query(integerValue.getValue());
}
// ------------------------------------------------------------------------
@@ -89,7 +89,7 @@ public class EnumDefinition extends SimpleDatatypeDefinition {
*/
public void setIntegerValue(long Value) {
integerValue.setValue(Value);
- value = ((Long) integerValue.getValue()).toString();
+ value = declaration.query(Value);
}
@Override

Back to the top