ZupIT/beagle

[Annotation Processor] - Currently is possible to register any class as controller

Closed this issue · 0 comments

Description

Currently is possible to register any class as controller. The annotation processor should verify if classes annotated with @RegisterController extends BeagleActivity.

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Create an ordinary class
  2. Annotate that class with @RegisterContreooler
  3. Build project

Expected Results

Annotation processor should issue a compilation error. It should show a message informing that classes annotated with @RegisterController must extend BeagleActivity.

Code example, screenshot, or link to a repository:

@RegisterController(id = "aController")
class AController{}