Oriel — AI & technology worth noticing, every day.

Java4Shell is a reason to use Java

Web page · https://mccue.dev/pages/11-18-26-java4shell

First seen by Oriel on .

AI summary

Ethan McCue argues that Java4Shell highlights Java’s advantages: memory safety, controlled native access, and JIT performance that can often eliminate the need for native code.

  • Affected deployments should add -XX:-UseBASE64Intrinsics immediately, then upgrade to a patched VM version.
  • Java programs remain memory safe, while libraries requesting native code require explicit --enable-native-access=the.specific.library approval.
  • The JVM’s JIT can replace Java code with optimized native instructions, adapting optimization to observed execution paths.
  • A raytracing benchmark measured C++ at 7.00, Java 28 with value classes at 11.95, and Java 26 at 17.53 mean ± σ.
  • The argument also applies to Kotlin, Clojure, and JRuby, although the module-system discussion is Java-specific.

#java #jvm #memory safety #jit compilation

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 3, latest observation
  • Lobsters: 43, latest observation ; +41 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 2, latest observation
  • Lobsters: 15, latest observation ; +15 over observed period since

Aliases

SourceExternal IDURL
Hacker News50777031https://mccue.dev/pages/11-18-26-java4shell Read discussion
Lobstersa1uff5https://mccue.dev/pages/11-18-26-java4shell Read discussion