If I'm not mistaken, the limit is not in the language itself but in the classfile format, which limits names to 64k, so for all practical intents and purposes identifier length is not a problem.
Specifically, this is the definition of a constant string in the pool, which seems to imply the maximal length is 16 bit:
CONSTANT_Utf8_info {
u1 tag;
u2 length;
u1 bytes[length];
}
Class names may be more of an issue for file systems, I agree, I'm not sure what's currently supported.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…