如果我在Kettle中声明用户定义的java表达式(使用janino),就像这样:
new java.util.Date(agent_start_time.getTime())
(其中agent_start_time
被定义为时间戳)
我收到此错误:
2015/07/23 16:25:10 - [test-timestamp].User Defined Java Expression.0 - Caused by: org.codehaus.janino.CompileException: Line 1, Column 44: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import
这很奇怪,因为doco明确表示时间戳支持getTime
就像java.util.Dates
一样(虽然粒度不同)