Home / Companies / Ably / Blog / Post Details
Content Deep Dive

This Android VM bug causes interned strings to be handled incorrectly

Blog post from Ably

Post Details
Company
Date Published
Author
Srushtika Neelakantam
Word Count
817
Company Posts That Month
5
Language
English
Hacker News Points
-
Summary

Ably, a realtime messaging platform, recently discovered a bug in Android VM that caused some data not to be delivered as expected on certain devices. The issue was found while building a subscriber client using the Java client library SDK with Android. It appeared that messages were missing metadata such as event name on specific versions of Samsung Galaxy tablets. The problem was traced back to a string comparison operation in the code, which used the == operator instead of the equals(Object) method for testing equality. Upon further investigation, it was confirmed that the Java VM on this particular device had a bug in handling interned strings. Ably has updated its library and no longer relies on the affected behavior of the Java VM. Developers who encounter similar issues should consider employing workarounds accordingly.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 4 331 101 41 +39%