Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-1

Make return type of JavaMethod.addParam() more specifiy.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • current (nightly)
    • None
    • JaxMeJS
    • None
    • Operating System: All
      Platform: All
    • 23436

    Description

      The patch below makes the methods JavaMethod.addParam() to return an
      instance of Parameter. This is useful, because it allows access to the
      parameter type, which the DirectAccessible interface does not expose.

      Binary files /cygdrive/c/tmp/ws-jaxme/prerequisites/hsqldb-1.7.1.jar and
      /cygdrive/c/jwi/ws-jaxme/prerequisites/hsqldb-1.7.1.jar differ
      diff -ubr --exclude=bin --exclude=build --exclude=dist --exclude=CVS
      --ignore-matching-lines='$Id:' --new-file
      /cygdrive/c/tmp/ws-jaxme/src/js/org/apache/ws/jaxme/js/AbstractJavaMethod.java
      /cygdrive/c/jwi/ws-jaxme/src/js/org/apache/ws/jaxme/js/AbstractJavaMethod.java

      /cygdrive/c/tmp/ws-jaxme/src/js/org/apache/ws/jaxme/js/AbstractJavaMethod.java
      2003-09-25 10:06:27.000000000 +0200
      +++
      /cygdrive/c/jwi/ws-jaxme/src/js/org/apache/ws/jaxme/js/AbstractJavaMethod.java
      2003-09-25 15:55:24.000000000 +0200
      @@ -182,7 +182,7 @@

      • @see #getParams
      • @return An object to use for referencing the parameter inside the method.
        */
      • public DirectAccessible addParam(Class p, String v) {
        + public Parameter addParam(Class p, String v) { return addParam(JavaQNameImpl.getInstance(p), v); }

      @@ -191,7 +191,7 @@

      • @see #getParams
      • @return An object to use for referencing the parameter inside the method.
        */
      • public DirectAccessible addParam(JavaQName pType, String pName) {
        + public Parameter addParam(JavaQName pType, String pName) {
        if (pType == null) { throw new NullPointerException("Type argument must not be null"); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            jochen@apache.org Jochen Wiedmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: