[DCOM-252] Support for basic expressions in annotation parameters Created: 16/Sep/14  Updated: 16/Sep/14  Resolved: 16/Sep/14

Status: Resolved
Project: Doctrine Common
Component/s: Annotations
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Bernardo Assignee: Marco Pivetta
Resolution: Won't Fix Votes: 0
Labels: None


It would be nice to be able to use bit flags as values in annotations. Currently it is not possible to use even basic (constant) expressions as annotation values.


 * @MyAnnotation(value = Const::FLAG_A | Const::FLAG_C)
 * @MyAnnotation(value = Const::ALL ^ Const::SOME_FLAG)

Comment by Marco Pivetta [ 16/Sep/14 ]

Supporting expressions in annotations would force us to implement an entire expression parser engine. No-go, that's way too complex for no real gain.

Generated at Thu Sep 18 13:55:24 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.