Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-7193

IgniteReflectionFactory does not handle primitive data types.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.5
    • general
    • None

    Description

      public class TestClass {
          public static final int INITIAL_VALUE = 12;
          public static final int UPDATED_VALUE = 42;
      
          private int field = INITIAL_VALUE;
      
          public void setField(int value) {
              this.field = value;
          }
      
          public int getField() {
              return this.field;
          }
      
          public static void main(String[] args) {
              Map<String, Serializable> props = new HashMap<>();
              props.put("field", UPDATED_VALUE);
      
              IgniteReflectionFactory<ExampleNodeStartup.TestClass> factory = new IgniteReflectionFactory<>(ExampleNodeStartup.TestClass.class);
              factory.setProperties(props);
      
              assertEquals(UPDATED_VALUE, factory.create().getField());
          }
      }
      

      Attachments

        Activity

          People

            slava.koptilin Vyacheslav Koptilin
            slava.koptilin Vyacheslav Koptilin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: