did the spec say "Java byte"?Alessandro Scotti wrote:Not only them... last I saw came from a "Java programmer" that was implementing some spec... spec said "byte" and proceeded to specify some magic values >= 80h, programmer implemented spec as literally specified, program did not work...nczempin wrote:Which is always signed, just as all other primitive Java data types. Those mistakes can only come from C programmersToo easy to forget byte is signed, when in most places (not only programming languages) it is assumed it isn't!
and, yes, I think unsigned bytes are very unintuitive, but I'm also contaminated.