Skip to content

Fix code completion for qualified elements in annotation #418

@eric-milles

Description

@eric-milles

Fix completion of @Anno(value=Type.|) -- error recovery appears to be missing for trailing dot here.

Common scenario is annotation that accepts an enum value. The enum type is proposed and if selected, typing dot shuts down subsequent proposals for enum constants.

import org.junit.runner.RunWith
import org.mockito.*
import org.mockito.runners.MockitoJUnitRunner

@RunWith(MockitoJUnitRunner)
class SomeTests {
  @Mock(answer=Answers.) // need error recovery for incomplete class expression
  private Object mock
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions