The compiler seems to be ok with this (single digit hex values only):
byte[] rawbytes={0xa, 0x2, 0xf};
But not this:
byte[] rawbytes={0xa, 0x2, 0xff};
I get a "Possible Loss of Precision found : int required : byte" error?
What am I doing wrong - or are single digit hex numbers a special case ?
Java 1.5.x.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…