-
Notifications
You must be signed in to change notification settings - Fork 9
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
Misc. errors thrown while running org.openrewrite.analysis.controlflow.ControlFlowVisualization
#39
Comments
Stack traces would be super useful here. Also, not surprised for the Javascript cases. Both DataFlow and Control Flow are very dependent upon the specific characteristics of the Java language itself, and the control flow graph, as it builds itself, is self-validating to ensure that it isn't created incorrectly. This was incredibly useful for unit testing. |
I've also found different errors regarding switch expressions handling .
is valid, whilst the concise version
Error is displayed as :
|
Thanks for the heads up. Control Flow Analysis is heavily tied to the behavior of the language, so it's not shocking to me that new language features cause it to break. I don't know if I have time right now to address this. But thank you for letting me know. |
Thanks . Btw , how is this recipe working ? It just appends a lot of grapviz code to Java files , and then , what ? |
It's primarily used for debugging the control flow analysis engine. Control flow itself is more useful in the context of data flow analysis. Here's an example of how it is used in, probably the most complex security fix recipe, |
If you'd like to learn more, I gave a talk on the subject and how we use control flow and data flow analysis here: https://youtu.be/UgGhEfdUSvQ?si=IByhi4TnQfBX-kPv&t=1582 |
Duplicate key J.Block
on src/main/java/com/amazonaws/kinesisvideo/internal/service/BlockingAckConsumer.javaNo current node!
on JS filesCould not parse as Java
on sdk1/src/test/java/com/amazonaws/services/dynamodbv2/mapper/integration/DynamoDBTestBase.javaUnable to create new J.VariableDeclarations with name enumSymbolIterator
on avro-kafkaconnect-converter/src/main/java/com/amazonaws/services/schemaregistry/kafkaconnect/avrodata/AvroData.javaCondition Node is not a guard! on src/main/webapp/config.js
[JS file]The text was updated successfully, but these errors were encountered: