Comments (2)
@sangupta thanks!
from jredisjson.
Wrote a test from @sangupta 's report:
@Test
public void testEncodingBug() throws Exception {
// the encoded string
String input = "Commodore’s Assemblers: Part 1: MOS Cross-Assembler";
client.set("test-json", input);
String o1 = client.get("test-json");
System.out.println(o1.equals(input)); // prints false on OpenJDK 11
assertEquals(input, o1);
}
ran it on JDK 8, a couple of flavors of 11, and 15. It passed on all of them!
Tests run: 55, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ jrejson ---
[INFO] Building jar: /Users/briansam-bodden/Code/client-libraries/java/modules/JRedisJSON/target/jrejson-1.5.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.580 s
[INFO] Finished at: 2021-06-06T16:40:13-07:00
[INFO] ------------------------------------------------------------------------
JRedisJSON on bsb/fix-encoding-gets-lost-in-read-after-write-#37 [!] took 8s
➜ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
Eclipse OpenJ9 VM AdoptOpenJDK-11.0.11+9 (build openj9-0.26.0, JRE 11 Mac OS X amd64-64-Bit Compressed References 20210421_957 (JIT enabled, AOT enabled)
OpenJ9 - b4cc246d9
OMR - 162e6f729
JCL - 7796c80419 based on jdk-11.0.11+9)
@gkorland can we close this? unless somebody else can replicate it.
from jredisjson.
Related Issues (20)
- No support for transactions
- Broken dependency in maven Central
- add support for LRANGE in rejson array HOT 1
- ClassCastException on json.get
- No support for pipelines HOT 3
- No support for redis cluster HOT 4
- Couldn't make a connection HOT 2
- json append HOT 2
- Set cache with expiration time HOT 1
- Add support for Cluster API HOT 1
- Missing Array Access/Manipulation Commands
- Close Jedis connection after set or get HOT 2
- Compliation issue HOT 4
- Support json.toggle and json.clear commands HOT 3
- select db will have a error HOT 1
- How does Java get multiple attributes?
- How to get every single value from a special json HOT 4
- Move SafeEncoder into Jedis
- gson convert error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jredisjson.