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

Not all current types in java.lang correctly recognized by JavaParserUtils

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.M2
    • Fix Version/s: 1.0.0.RC1
    • Component/s: @ CORE
    • Labels:
      None

      Description

      The @RooJavaBean creates invalid fully qualified package names for Iterable:

      package foo.bar.baz;

      import org.springframework.roo.addon.javabean.RooJavaBean;

      @RooJavaBean
      public class X {
      Iterable<Object> it;
      }

      produces a ITD with a method with the following declaration:

      public foo.bar.baz.Iterable<java.lang.Object> X.getIt()

      For a other types sitting in java.lang, e.g., String the declaration is correct and refers to java.lang.String. As JavaBeanMetadata#getDeclaredGetter currently simply copies the type of the getter's field as its return type, I assumed that JavaParser's knowledge of java.lang is incomplete.

        Attachments

          Activity

            People

            Assignee:
            balex Ben Alex
            Reporter:
            nd Andreas Hartl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: