Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title: Issue with Parsing Incomplete Code Causing Hang in Javalang #144

Open
MrGhabi opened this issue Jan 20, 2024 · 0 comments
Open

Title: Issue with Parsing Incomplete Code Causing Hang in Javalang #144

MrGhabi opened this issue Jan 20, 2024 · 0 comments

Comments

@MrGhabi
Copy link

MrGhabi commented Jan 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant