Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1476

throwsTypes collection from MethodMetada is not well formed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: 1.1.0.RC1
    • Component/s: @ CORE
    • Labels:
      None
    • Environment:
      SUN JDK 1.5.0_07
      Ubuntu 10.04
      Eclipse 3.5.1

      Description

      Hi! I'm trying to inspect Exceptions defined in an especific method.
      When I use:

      ClassOrInterfaceTypeDetails tmpClassDetails = classpathOperations
      	.getClassOrInterface(javaType);
      
      MutableClassOrInterfaceTypeDetails classDetails = (MutableClassOrInterfaceTypeDetails) tmpClassDetails;
      
      List<? extends MethodMetadata> methodList = classDetails
      .getDeclaredMethods();
      

      To analyze exceptions from a method in a class:

      TestClass.java
      // Method to inspect
      public String returnString(Long numero) throws org.project.test.project.exceptions.TestException, Exception {
          return "TestResult";
      }
      

      MethodMetadata has a throwsTypes collection but JavaTypes defiend inside aren't correct this is list result:

      [exceptions.TestException, Exception]
      

      Instead of:

      [org.project.test.project.exceptions.TestException, java.lang.Exception]
      

      The other collections as parameterTypes and annotations are well formed with the complete JavaPath (java package + java class name).

      Thank you !

      Related to:

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              balex Ben Alex
              Reporter:
              ricardogarfe Ricardo GarcĂ­a
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: