mbien opened a new pull request, #5339:
URL: https://github.com/apache/netbeans/pull/5339
based on delivery
checks for `ElementKind.RECORD` are missing all over the codebase. The lexer
isn't even record aware. This PR only covers `java.editor`. I had a larger
changeset which checked all usages of the CLASS enum and added RECORD on a case
by case basis. But it is probably not a good idea to do this blindly without
being able to validate it properly.
this PR fixes three small bugs which are easily verifiable:
- tooltip on unused records will use the right bundle msg
- javadoc completion for records
- goto impl is now working for records
test code:
```java
package bugs;
public class RecordEnums {
/**
* @see bugs.RecordEnums.
* check completion ^^^ should have records
*/
record ARecord() { }
record UnusedRecord() { }
// mouse over ^^^ should have tooltip
class AClass { }
public static void main(String[] args) {
ARecord r = new ARecord();
// ^^^ use navigate -> goto implementation
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists