with respect, I think your post does not make the point you wanted to make (basically that the JVM should have implemented the vulnerable code in Java).
Also making comparisons with other languages at this point is just fuel.
And finally, I think the vulnerable code was hand-rolled assembly, and not c/c++. Oracle has a long history of doing that (e.g. in Oracle DB).
Sorry, last thing, not related to your post, but"Java" was not vulnerable, OpenJDK was. OpenJ9 was not.
(basically that the JVM should have implemented the vulnerable code in Java).
That wasn't the point I wanted to make. Stuff like this either has to be handwritten assembly or else some meta-circular stuff like Graal.
I wanted to say that people making their own code benefit from not needing to audit for things like buffer overflows in the same way as native code does. The worst case scenario isn't as bad (provided the JVM does its job)
And finally, I think the vulnerable code was hand-rolled assembly, and not c/c++.
Correct, and in another thread I call it "C++" just because I'm responding to someone who framed it that way.
"Java" was not vulnerable, OpenJDK was. OpenJ9 was not.
Correct, but in practice thats some inside baseball.
Also making comparisons with other languages at this point is just fuel.
I can always make it better, but there is a legitimate comparison to be made.
the title is java4shell is a reason to use java, and nowhere in the article is there a reason for why this vulnerability is a reason to use Java. the reasons you list are related to Java, not java4shell.
If there is any reason that java4shell is a reason to use Java, it is because Java is decoupled from the JVM, and we have multiple JVMs, and only 1 was affected.
I wanted to say that people making their own code benefit from not needing to audit for things like buffer overflows in the same way as native code does. The worst case scenario isn't as bad (provided the JVM does its job)
So I think I'm being a bit slow here (coffee hasn't kicked in yet), but are you saying that your point is: "Java is not to blame, keep using it. The problem lies with the JDK JVM authors, who didn't do their job."? (Alternatively, "JDK should publish their exact exposure to native code, so we can all add that to our audit trail"? Or is your main point "JDK's exposure is less than many other ecosystems"?)
View all comments
9
u/stefanos-ak 4d ago
with respect, I think your post does not make the point you wanted to make (basically that the JVM should have implemented the vulnerable code in Java).
Also making comparisons with other languages at this point is just fuel.
And finally, I think the vulnerable code was hand-rolled assembly, and not c/c++. Oracle has a long history of doing that (e.g. in Oracle DB).
Sorry, last thing, not related to your post, but"Java" was not vulnerable, OpenJDK was. OpenJ9 was not.