Ticket #72 (closed enhancement: fixed)
stubXMLMatcherAnnotation should add delimiter if not set
| Reported by: | mikey | Owned by: | schst |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.3.0 |
| Component: | XMLSerializer | Version: | SVN-trunk |
| Keywords: | Cc: |
Description
When using the stubXMLMatcherAnnotation one must supply the pattern to be used for the matching with regular expressions. If you forget to write a delimiter at the beginning and the end of the pattern an E_WARNING is issued twice:
Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /path/to/stubbles/src/main/php/net/stubbles/xml/serializer/annotations/stubXMLMatcherAnnotation.php on line 67
It would be more userfriendly if the annotation detects missing delimiters and tries to add them automatically to prevent the issue of this warnings.
(Notice: the pattern is used in line 50 as well.)
Change History
Note: See
TracTickets for help on using
tickets.
