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

IgniteReflectionFactory does not handle primitive data types.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.5
    • Component/s: general
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: