Community
Participate
Working Groups
Find a method in your code say HttpSession.setAttribute("attribute", "hello" + x); Highlight setAttribute and right click search->java->references. It will search the code for references to setAttribute(String, Object) whereas it should search for setAttribute(String, String);
worked for me using the following example: public class Test { void a(String s, String a) {} void a(String s, Object o){} void doit(){ a("s", "" + new Test()); a("s", new Test()); } } In the UI we do a code resolve and then search for references via J Core API. Maybe this can be reproduced with code in JARs.
Not sure I understand the problem: HttpSession has only one method setAttribute defined. It takes an Object as the second parameter. So calling it with a String can only bind to this method.
Please reopen if you have more comments.