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

Compilation error when using .to, .log, .wireTap, etc. before calling .aggregate() in the Java DSL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.3.0
    • 2.4.0
    • camel-core
    • None

    Description

      The following code generates a compile time exception:

      from("direct:example")
      .log("This will break during compile time.")
      .aggregate().constant(true).completionSize(2)
      .completionTimeout(500L)
      .to("mock:result")
      ;

      Compile time exception:

      symbol : method completionSize(int)
      location: class java.lang.Object

      When removing .log("This will break during compile time."), the project compiles successfully. I verified this holds true for .to and .wireTap as well.

      Taking the example from https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateGroupedExchangeBatchSizeTest.java and placing a .log or .to after the .from(..) reproduces the problem as well.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            rburton Richard Burton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: