Skip to content

Using @Indexed with no other attribute than options=@IndexOptions() breaks #1336

@zenbones

Description

@zenbones

Using...
@indexed(options = @IndexOptions(collation = @collation(locale = "simple")))

...yields...

Mixed usage of deprecated @indexed values with the new @IndexOption values is not allowed. Please migrate all settings to @IndexOptions

...even though that's clearly what's happened. The problem is that @indexed has deprecated default values, which the check code sees as values, plus the 'new' options= is being used, and that causes the error to be thrown, despite the fact that no values have been set. The check code should maybe look for values which differ from the defaults and only throw an error when both that condition is true and options= has been used? But currently, trying to do the right thing is blocked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions