Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16129

Avoid property binding via reflection in NettyConfiguration

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.7.2, 3.8.0
    • Component/s: camel-netty
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Not too sure about the logic in NettyConfiguration.parseURI but it invokes PropertyBindingSupport.bindProperties. Depending on the combination of URI options it can lead to some of the NettyConfiguration setters being invoked via reflection.

      E.g I was testing this URI in camel-quarkus. Both sync & allowDefaultCodec are being set through reflection.

      netty:udp://localhost:8081?sync=false&allowDefaultCodec=false

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: