[Annotation Processor] - Currently is possible to register more than one controller for the same ID.
Closed this issue · 0 comments
paulomeurerzup commented
Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
Currently is possible to register more than one controller for the same ID. This can lead to unwanted behavior.
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- Register two or more controllers with the same ID.
- Build project.
Expected Results
Annotation processor should break the build with compilation error. It should present an error message informing what are the controllers that have the same ID.
Code example, screenshot, or link to a repository:
@RegisterController(id = "MyController")
class AppDefaultBeagleActivity : BeagleActivity
@RegisterController(id = "MyController")
class AppOtherBeagleActivity : BeagleActivity