Skip to content

Incorrect syntax linting issues reported for Adobe Coldfusion 2021 with final and static variables in components #50

Description

@glenfordham

The following code where a final variable is declared within a component is valid Adobe Coldfusion 2021 code, but throws an unexpected error in the linter.

Image Image

Declaring static variables also throws a similar error.

Image Image

Similarly, declaring static variables in a static block throws an error:

component {
    static {
        public myVar = "myValue";
    }

}

Referencing static variables from outside the component also throws an error.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions