lahodaj opened a new pull request, #6649:
URL: https://github.com/apache/netbeans/pull/6649

   Considering code like:
   ```
   record R(int wait) {}
   ```
   
   This produces an error, as `wait` is not a valid record component name. And 
it will leave a `Symbol.RecordComponent.accessor` empty. Which probably is OK 
in the front-end, but the back end expects this to be filled. As a consequence, 
the indexing crashes with an exception:
   https://github.com/oracle/javavscode/issues/52
   
   Generally, in `VanillaCompileWorker.dropMethodsAndErrors` we try to fix 
erroneous ASTs, so that classfiles/sig files can be generated for them. In this 
case, my proposal is to fill the `accessor` field with a dummy value - `Lower` 
will see is as a user-provided accessor, and do nothing. The test shows how the 
resulting classfile will look like (including making it unloadable).
   


-- 
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

Reply via email to