QDox
  1. QDox
  2. QDOX-173

Unwanted DocletTag.getParameters()[0]=< in generic case

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.10
    • Component/s: QDox-Attributes
    • Labels:
      None
    • Number of attachments :
      1

      Activity

      Hide
      Vincent Siveton added a comment -

      With generic javadoc, docletTag.getParameters()[0] could be an unwanted value.

          /**
           * Dummy method.
           *
           * @param <K>  The Key type for the method
           * @param <V>  The Value type for the method
           * @param name The name.
           * @return A map configured.
           */
          public <K, V> java.util.Map<K, V> dummyMethod( String name )
          {
              return null;
          }
      

      The output of the test case is:

      docletTag.getParameters()=[<, K, >, The, Key, type, for, the, method]
      	WRONG should be the array: [<K>, The, Key, type, for, the, method]
      docletTag.getParameters()=[<, V, >, The, Value, type, for, the, method]
      	WRONG should be the array: [<V>, The, Value, type, for, the, method]
      docletTag.getParameters()=[name, The, name.]
      docletTag.getParameters()=[A, map, configured.]
      
      Show
      Vincent Siveton added a comment - With generic javadoc, docletTag.getParameters() [0] could be an unwanted value. /** * Dummy method. * * @param <K> The Key type for the method * @param <V> The Value type for the method * @param name The name. * @return A map configured. */ public <K, V> java.util.Map<K, V> dummyMethod( String name ) { return null; } The output of the test case is: docletTag.getParameters()=[<, K, >, The, Key, type, for, the, method] WRONG should be the array: [<K>, The, Key, type, for, the, method] docletTag.getParameters()=[<, V, >, The, Value, type, for, the, method] WRONG should be the array: [<V>, The, Value, type, for, the, method] docletTag.getParameters()=[name, The, name.] docletTag.getParameters()=[A, map, configured.]
      Vincent Siveton made changes -
      Field Original Value New Value
      Attachment TestQDOX173.java [ 43354 ]
      Hide
      Robert Scholte added a comment -

      committed both fix and test

      r632 | rfscholte | 2009-07-23 21:33:00 CEST

      fix for QDox-173: recognize generic as word
      ----------------------------------------------------------------------------

      Show
      Robert Scholte added a comment - committed both fix and test r632 | rfscholte | 2009-07-23 21:33:00 CEST fix for QDox-173: recognize generic as word ----------------------------------------------------------------------------
      Robert Scholte made changes -
      Fix Version/s 1.10 [ 15020 ]
      Status Open [ 1 ] Resolved [ 5 ]
      Resolution Fixed [ 1 ]
      Assignee Robert Scholte [ rfscholte ]

        People

        • Assignee:
          Robert Scholte
          Reporter:
          Vincent Siveton
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: