Issue 21 in addendum: Name collision with PHPUnit's "Target" class

0 views
Skip to first unread message

codesite...@google.com

unread,
Aug 20, 2010, 5:52:38 AM8/20/10
to addendum...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 21 by ramon.poca: Name collision with PHPUnit's "Target" class
http://code.google.com/p/addendum/issues/detail?id=21

What steps will reproduce the problem?
1. Use a @Target annotated class besides a PHPUnit test using its Target
class.

What is the expected output? What do you see instead?
PHP fails when redeclaring "Target" over another already declared "Target".

What version of the product are you using? On what operating system?
0.4.0, Linux

Please provide any additional information below.

The correct fix might be to use namespaces to avoid clashes, but it's very
tricky (tried it).
As a fix I've renamed @Target to @AnnotationTarget locally.


Reply all
Reply to author
Forward
0 new messages