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.
Created attachment 148783 [details] Screenshot The code highlighting colors are mixed. See attachement.
Issue verified with the attached screenshot. Whenever the name of a member contains the type itself, the colouring of the Type is mixed with the name. Example of a domain class, the lines 'releaseDate' and 'descritionString' will demonstrate the problem: package org.bookstore class Book { String title Date releaseDate String descriptionString }
Created attachment 152632 [details] Proposed patch: uses textEquals to compare the Identifier and the token text. This patch has been tested against the provided test cases. It ensures that the token comparison takes into account the full Identifier text, not just the ending.
Patch looks correct and safe to me. Good job Bruno!
(In reply to Martin Janicek from comment #3) > Patch looks correct and safe to me. Good job Bruno! Martin, thank you for taking the time to review the patch. Should I set the issue to resolved before (or after?) the patch is applied to the repository?
Bruno, has the patch been integrated? Can you do so and close fixed?
(In reply to Antonin Nebuzelsky from comment #5) > Bruno, has the patch been integrated? Can you do so and close fixed? Antonin, I don't have rights to apply the patch in the repository. I asked in comment #4 what the right procedure is because I still don't know what the work flow is. Could you help with this?
Included jkovalsky who's been helping you in the past (with issue 249599).
I will integrate the patch. Just a little patience please. My pile is high now. :) Thanks.
http://hg.netbeans.org/core-main/rev/f391469ca44a Patch integrated. Thanks Bruno for your contribution!
Integrated into 'main-silver', will be available in build *201508210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f391469ca44a User: Jiri Kovalsky <jkovalsky@netbeans.org> Log: #246573: Code highlighting fixed when identifier contains type itself.
Verified with test case described on Comment 1 as well as on other projects. A member of the class whose name includes it's type (example: "String theString") no longer confuses the editor highlighting.