Skip to content

CSense detects Throws annotation only if lambda provides callsInPlace contract #27

@and-marsh

Description

@and-marsh

Hey, good job with the plugin!

I have noticed the following behavior, and I was wondering if it's intended or forced by some internal limitations. Here is the snippet where I call the function that throws inside of a lambda function. In such a scenario, CSense doesn't detect if the exception is handled or not.

image

And the warning disappears if the lambda function provides an "InPlace" contract:

image

This might not be related, but I suppose it's ok to file it here. Even with the "InPlace" contract, there is no suggestion to add an annotation to the function, only wrap it with try/catch:

image

Thanks in advance for looking into it!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions