This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE Dev (Build 201512010002) Operating System = Windows 8 version 6.2 running on amd64 Java; VM; Vendor = 1.8.0_51 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Reproducibility: Happens every time STEPS: 1. Make a Maven Web project (I think it doesn't matter what kind of Java project is) 2. Make a class called Links with the following content: public class Links { public static final String USER = "/user"; public static final String USER_DETAILS = USER + "/details"; } 3. Make a class called MyServlet with the following content: import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; @WebServlet(Links.USER_DETAILS) public class MyServlet extends HttpServlet { } 4. Put the mouse cursor after "Links.U" (inside the annotation of the previous class) 5.A. Press CTRL+Space where the cursor is 5.B. Press CTRL+Click on "USER_DETAILS" or "Links" (inside the annotation of the previous class) ACTUAL: 5.A. Shows "No suggestions" instead of the 2 available options that should have been shown as auto-complete suggestions: USER and USER_DETAILS. 5.B. Opens the annotation interface WebServlet instead of the class Links at USER_DETAILS This issue is very recent. It used to work properly until a few weeks ago. It is very disturbing, as auto-complete and CTRL+Click are 2 features that I use frequently during development, but now they don't work anymore as they should. Thank you. :
Reproducible The problem probably is with explicit parameter name, if I change it to @WebServlet(value = Links.USER_DETAILS) the features start to work correctly.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/015490523391 http://hg.netbeans.org/main/nb-javac/rev/d59608be84d3
Integrated into 'main-silver', will be available in build *201601090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/015490523391 User: Dusan Balek <dbalek@netbeans.org> Log: Issues #247570, #247595, #257005, and #257392 - fixed.
Are you sure it's fixed? I have just tried with build 20160110002 and there's no difference. I can still experience the issue described in this bug report.
Unfortunately, the issue seems to persist. I've just tried with today's build as well, 201601140002.
I cannot reproduce it in the new build.Can you please attach messages log and the screenshot of the screen.Thanks.
I have uninstalled NetBeans again, but this time I deleted NB's user dir as well and all NetBeans folders from C/Users/X/AppData (on Win 8), so the new DEV install was 100% fresh. It seems there's some kind of issue if NetBeans DEV versions are uninstalled then installed without deleting the user dir. After doing this for a few months, the latest dev release doesn't run on fresh code...or some caching is going on. It's the second time when I experience this. Nevertheless, the bug seems to be fixed now and I thank you for it. Cheers!