You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2017/04/20 22:27:33 UTC

incubator-mnemonic git commit: MNEMONIC-239: Fix compilation error for boolean durable field types

Repository: incubator-mnemonic
Updated Branches:
  refs/heads/master 11fd621df -> 2bc10415b


MNEMONIC-239: Fix compilation error for boolean durable field types


Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/2bc10415
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/2bc10415
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/2bc10415

Branch: refs/heads/master
Commit: 2bc10415b79ac10e224542b8901ccf960276a192
Parents: 11fd621
Author: Johnu George <jo...@cisco.com>
Authored: Thu Apr 20 12:01:46 2017 -0700
Committer: Johnu George <jo...@cisco.com>
Committed: Thu Apr 20 12:01:46 2017 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/mnemonic/AnnotatedDurableEntityClass.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/2bc10415/mnemonic-core/src/main/java/org/apache/mnemonic/AnnotatedDurableEntityClass.java
----------------------------------------------------------------------
diff --git a/mnemonic-core/src/main/java/org/apache/mnemonic/AnnotatedDurableEntityClass.java b/mnemonic-core/src/main/java/org/apache/mnemonic/AnnotatedDurableEntityClass.java
index 7b3d3cc..f8b145d 100644
--- a/mnemonic-core/src/main/java/org/apache/mnemonic/AnnotatedDurableEntityClass.java
+++ b/mnemonic-core/src/main/java/org/apache/mnemonic/AnnotatedDurableEntityClass.java
@@ -587,7 +587,7 @@ public class AnnotatedDurableEntityClass {
       }
       if (isUnboxPrimitive(ftname)) {
         if (unboxTypeName(ftname).equals(TypeName.BOOLEAN)) {
-          codefmt = "$1N.$4L($2N.get() + $3L, $5L?1:0)";
+          codefmt = "$1N.$4L($2N.get() + $3L, (byte) ($5L? 1 : 0))";
         } else {
           codefmt = "$1N.$4L($2N.get() + $3L, $5L)";
         }