Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.3.0
-
None
-
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)Darwin richard-burtons-macbook-pro.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode) Darwin richard-burtons-macbook-pro.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
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.