Skip to content

Missing rules when using java.time.Local* classes #36

@Vadym79

Description

@Vadym79

When using envCreationTime = System.currentTimeMillis(); invocation in the constructor of the Lambda function
I get the finding of type AWS_LAMBDA_SNAP_START_BUG in the category CORRECTNESS.
But I didn't get the same finding invoking one of the following in the consturctor instead:

currentDateTime = LocalDateTime.now(); currentDate = LocalDate.now(); currentTime = LocalTime.now(); currentZonedDateTime = ZonedDateTime.now();

I totally understand that using System.currentTimeMillis() is the simplest way to get the current time in millis , but using java.time.Local* abstractions also belongs the standard sicne Java 8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions