jlahoda opened a new pull request, #5172:
URL: https://github.com/apache/netbeans/pull/5172
Recently, I ran into a few problems with indexing massively erroneous source:
- error cleanup does not work for record components. Error should be cleaned
for record components.
- if there are multiple pattern switches (preview only feature, currently)
only the first may be removed from the code when the errors are being cleared,
and the rest might go to `TransPatterns`, failing there. Ensuring pattern
switches are cleared while clearing errors if preview is disabled.
- member references referring to methods with erroneous parameters may
sometimes be kept, crashing code generator later. Such member references should
be removed from the code.
- in some cases, a new source might be parsed while desugaring another, and
the current cleaning code fails for that. Need to avoid attempts to clean the
code before it is being desugared. (Sadly, for this, I was not able to produce
a test.)
---
**^Add meaningful description above**
By opening a pull request you confirm that, unless explicitly stated
otherwise, the changes -
- are all your own work, and you have the right to contribute them.
- are contributed solely under the terms and conditions of the Apache
License 2.0 (see section 5 of the license for more information).
Please make sure (eg. `git log`) that all commits have a valid name and
email address for you in the Author field.
If you're a first time contributor, see the Contributing guidelines for more
information.
If you're a committer, please label the PR before pressing "Create pull
request" so that the right test jobs can run.
--
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