July 29, 2024

Another Linux lie: we have Java

Another Linux lie: we have Java

Truth is: you don't.

Enter OpenJDK, a supposedly free supposedly replacement for Oracle's Java SE.

I am parsing output of some command that spits out roughly 10k lines, error message being the last one. My code has to check if there is an error, but there isn't.

Having gotten sore throat from screaming at the monitor 'Here it is, right there, you dumb #%@^!', I switched gears to a bulletproof method: 2>&1. Still, no error.

Then I revisited my process spawning and output reading class member. Whoa, it has .redirectErrorStream(true); WTF is going on asks I and proceeds to inspect the output, line by line. Bingo! The error is right there, in plain view, on line 6000-something. I run that command in terminal. The error is the last of 10k something. So, the stdout and stderr are out of sync, in OpenJDK process and process builder classs' output.

The rhetorical question is, as my readers already know: did they test? Your guess is as good as mine. Another rhetorical question is, will I bother reporting this bug? Hell, no. I had enough of being shat upon, for doing so. FU, OpenJDK devs, for being assholes towards the world that feeds you.

Posted by: LinuxLies at 10:57 AM | No Comments | Add Comment
Post contains 213 words, total size 1 kb.




What colour is a green orange?




15kb generated in CPU 0.0549, elapsed 0.0757 seconds.
35 queries taking 0.0635 seconds, 148 records returned.
Powered by Minx 1.1.6c-pink.