eclipse - Java uses a String constant with the quotes -
when compare constant string mb inside variable mb inside result false. string constant looks "mb" ([",m,b,"]=4 length) , variable "mb" ([m,b]=2 length). what's wrong here. java cannot put quotes inside code string.
public static final string gc_telcodefixed = "fx"; if (!telcode.getid().equals(com.quoka.qis.db.constant.constants.gc_telcodefixed)) throw new telcodetypemismatchexception(telcode.gettype());
invisible characters might cause behavior.
how did "mb" got there? did type them or copy-paste program? copy-paste operation might end invisible characters , text editors not show them.
this can reproduced copying pdf file linux document viewer.
hope helps, yaron
Comments
Post a Comment