Frnd-me opened a new issue, #1644:
URL: https://github.com/apache/incubator-fury/issues/1644

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-fury/issues) and found no similar 
issues.
   
   
   ### Version
   
   0.4.1
   
   ### Component(s)
   
   Java
   
   ### Minimal reproduce step
   
   ```java
   public class EnumEquality {
   
     @Test
     public void testEnumEquality() throws URISyntaxException {
       final var fury = Fury.builder()
           .withLanguage(Language.XLANG)
           .requireClassRegistration(true)
           .build();
   
       fury.register(SomeEnum.class, "SomeEnum");
   
       final var someEnumOut = SomeEnum.A;
   
       final var someEnumIn = fury.deserialize(fury.serialize(someEnumOut));
   
       assertEquals(SomeEnum.A, someEnumIn);
     }
   
     public enum SomeEnum {
       A,
       B,
       C
     }
   }
   ```
   
   ### What did you expect to see?
   
   I expect a test for equality of the original and deserialized enum values to 
result in a true value.
   
   ### What did you see instead?
   
   After deserializing, a test for equality of the deserialized enum value with 
the original value yields false.
   
   ### Anything Else?
   
   This must have something to do with Java's enums being singletons.
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to