r/programming • • 4d ago

Java4Shell is a reason to use Java

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

50 comments sorted by

View all comments

Show parent comment

4

u/bowbahdoe 4d ago edited 4d ago

Okay but there are still dependencies where the unsafe-ness is something you don't know about unless you read their code?

Like is this a new thing for "directional" safety? And yeah rust does something similar. But people do end up accepting unsafe if it "feels audited" or "feels neccesary." I didn't touch on Rust because I feel like all these -5s on my comments would be -50s if those folks get awakened, but it is a similar criticism

8

u/_choam_ 4d ago

I mean, the way rust does "unsafe" is the right trade off for that type of language. I dont agree with that people just end up accepting unsafe as being audited

4

u/_choam_ 4d ago

You also can block unsafe in your own code and dependencies (not sure about the stdlib and compiler builtins though)