I use red5 and set / get attributes using the IConnection class, but this is really not relevant.
'L' means long in java. therefore, 0L is type 0 Long, not just '0', which is 0 type Integer.
What is the difference between [Ljava.lang.Long and java.lang.Long in the following error message:
stack trace: java.lang.ClassCastException: [Ljava.lang.Long; cannot be cast to java.lang.Long
Update
code example:
static Long getLongAttribute(IConnection conn, String attribute) { Long result=null; try { if (!conn.hasAttribute(attribute)) throw new Exception(attribute + " - Long attribute not found!"); result = conn.getLongAttribute(attribute);
source share