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

Invalid parsing the following java code #135

Open
DeveshUpadhyay opened this issue Jul 28, 2023 · 0 comments
Open

Invalid parsing the following java code #135

DeveshUpadhyay opened this issue Jul 28, 2023 · 0 comments

Comments

@DeveshUpadhyay
Copy link

When you parse the below code with javalang it doesn't parse the "!" as prefix_operators which is inside the if condition which is after "(" but if you associate it with a variable like " !str2" then it gets recognized.

String str1="something";
String str2 = "something else";
**if( ! ( str1 == str2 ) )**
{
System.out.println("Hello world");
}
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