c2nes/javalang

Title: Issue with Parsing Incomplete Code Causing Hang in Javalang

Opened this issue · 0 comments

Hello,

I am currently using Javalang version 0.13.0. I have encountered an issue where the parser seems to hang indefinitely when trying to parse the following incomplete Java code:

public class test_class { 
    
    public int test() {
        @SuppressWarnings("unchecked"
    }
      
} 

I believe this might be a bug as the parser is expected to handle such cases gracefully, either by throwing an error or by some other means, rather than getting stuck. This issue is causing considerable inconvenience in scenarios where parsing of potentially incomplete code is required.

I am looking forward to a resolution or any guidance on how to handle such cases with the current version of Javalang. Your assistance and any updates on this would be greatly appreciated.

Thank you for your time and effort in maintaining this important project.