Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1677

Using other types than String in Studio's context values causes compilation error

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • Small

    Description

       If we use a context variable that is not a String, the generated code for configuration passed to the component tries to pass a wrong type to the Map<String, String>.
       

      public Integer timeout;
      ....
      ....
      
      final java.util.Map<String, String> configuration_X = new java.util.HashMap<>();
      ...
      configuration_X.put("configuration.dataSet.connection.timeout", context.timeout);
      

      Attachments

        Issue Links

          Activity

            People

              emmanuel_g emmanuel gallois
              emmanuel_g emmanuel gallois
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: