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 107898 [details] Exception from the hint See e.g. the attached exception. Currently this needs to be worked around/hacked in the clients' code - there should be better support in the infrastructure for this case.
There is nothing wrong in editor.hints, it only reacts to what it gets. java.hints could allow hints implementations to declare they are not interested in synthetic trees (or, better, to declare that they are), but I do not think that qualifies as a P3/defect.
Whether this qualifies as defect or not depends on how frequently the exception can happen. I've never seen it and do not know how to reproduce it so I cannot say, but there is plenty of hints which are not ready for -1 end position.