Community
Participate
Working Groups
I20110208-0800 Javadoc reference to constructor does not work without parameter list. In the example below, I get a wrong compiler warning for "#Try" and MemberRef#resolveBinding() returns null. Works fine for the method reference "#foo". package xy; /** * First ref should resolve to constructor * @see #Try * @see #Try(int, String) * @see #foo */ public class Try { public Try(int i, String message) { System.out.println(message + i); } public void foo(int i, String message) { System.out.println(message + i); } }
I'll take a quick look.
Created attachment 188689 [details] Proposed fix + regression test
Satyam, please review.
Created attachment 188749 [details] Proposed fix + regression test +1 for the patch in comment 2. However, I think a minor cleanup could be nice - The if's for the constructor check could be merged. Attached here is the patch with my proposed changes. Please feel free to use whatever you feel appropriate.
Definitely +1 for your patch. Thanks, Satyam. Released for 3.7M6.
Verified for 3.7M6 using build I20110307-0800