short type has no literal. Integer literals are implicitly converted from int:

short s = 127;