Invalid value for @ControlReferences annotation causes assertion error in apt
-----------------------------------------------------------------------------
Key: BEEHIVE-1067
URL: http://issues.apache.org/jira/browse/BEEHIVE-1067
Project: Beehive
Type: Bug
Components: Controls
Versions: v1m1
Reporter: Chad Schoettger
Assigned to: Chad Schoettger
Priority: Minor
If an invalid value is used in a ControlReferences annotation an assertion
error is throw during apt processing. Should report error in a compiler
friendly manner.
For example:
@ControlReferences(value={java.lang.String.class})
causes:
java.lang.AssertionError
at
org.apache.beehive.controls.runtime.generator.apt.ControlClientAnnotationProcessor.getControlInterfaceOrExtension(ControlClientAnnotationProcessor.java:520)
at
org.apache.beehive.controls.runtime.generator.apt.ControlClientAnnotationProcessor.generate(ControlClientAnnotationProcessor.java:221)
at
org.apache.beehive.controls.runtime.generator.apt.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:90)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira