Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-39

Field#isType(Class<?> type) method should check if class is part of java.lang package

    XMLWordPrintable

Details

    Description

      Currently, Field#isType(Class<?> type) method checks if there is an import for the given type (only in some case). If the given class represents a wrapper type like Boolean this will cause the following test to fail (the java.lang import is not needed):

      JavaClass fooClass = create(JavaClass.class)
           .setPackage("com.test")
           .setName("Foo");
      
      Field<JavaClass> property = fooClass.addField("private Boolean bar;");
      assertTrue(property.isType(Boolean.class));
      

      Attachments

        Activity

          People

            lincolnthree Lincoln Baxter III (Inactive)
            kevinpollet Kévin Pollet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: