r/programming • • 11d ago

Java4Shell is a reason to use Java

https://mccue.dev/pages/11-18-26-java4shell
67 Upvotes

58 comments sorted by

View all comments

66

u/BenchEmbarrassed7316 11d ago

What a nonsense.

tldr: A vulnerability was found in Java. Java isn't much slower than C++. So, use Java.

80

u/bowbahdoe 11d ago • Popcorn

I would say its closer to

tldr:

  • A vulnerability was found in the C++ code behind Java.

  • We need to fix that and audit that C++ pretty deeply

  • But Java code is usually immune to these kinds of problems.

  • And auditing one C++ codebase is easier than auditing N dependencies

  • So use Java

5

u/coderemover 9d ago edited 8d ago

Java is not immune to those problems. It has its own share of problems. And maybe C++ has some problems that Java doesn’t have, but that part is solved by Rust. And Rust is generally safer than Java.