Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3816

Wildcard handling in "org.jboss.metadata.MethodAttributes.patternMatches()" isn't correct (or documentation problem)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • JBossAS-4.0.5.GA, JBossAS-4.2.0.GA, JBossAS-4.2.3.GA
    • Documentation, EJB2
    • None
    • Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration
    • Low
    • Workaround Exists
    • Hide

      I've written some JUnit tests and a solution using the String.matches method.

      Show
      I've written some JUnit tests and a solution using the String.matches method.

      The method "patternMatches" in "org.jboss.metadata.MethodAttributes" just stops at the first wildcard ("*") found and assumes that match is ok. Either this is a bug or the documentation ("http://docs.jboss.com/jbossas/guides/j2eeguide/r2/en/html_single/#d0e11084") should be changed and clearly inform that the wildcard must be the last character.

      If you specify for example "*get" than all methods will be matched....

            Unassigned Unassigned
            anders-l.welen@polisen.se Anders Welen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: