Community
Participate
Working Groups
Build Identifier: M20090211-1700 public class Test { public static void main(String args[]){ Integer i1=new Integer(11); Integer i2=new Integer(11); if(i1 != i2){ System.out.println("pass"); }else{ System.out.println("fail"); } } } Output of the above program should be - pass. If we try to debug the above program and try to inspect or keep a watch on if loop expression - "i1 != i2" it should display true as both i1 and i2 refer to two different objects, but inspect/watch displays "false" but executes proper functionality and prints "pass". Reproducible: Always Steps to Reproduce: 1.Debug the above given program or similar kind of code. 2.Keep a watch on expression inside if loop i.e. "i1 != i2". 3.Watch the result.
Created attachment 159086 [details] Screenshot for the problem described
Interesting factoid. Not sure how important though.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.