Re: Unknown type: METHOD_DEF

2018-01-07 Thread Mohan Radhakrishnan
Hi Keith, The error when I run Maven test is this. [ERROR] Failed to execute goal org.codehaus.gmaven:gmaven-plugin:1.2:generateStu bs (default) on project Automation: startup failed: [ERROR] /D:/Development_Avecto/Automation/src/main/groovy/com/automation/pages/t ime/ThreadSleeper.groovy: 11:

Re: GPars 2 Stuff

2018-01-07 Thread Balachandran Sivakumar
Hi Dr. Russel, On Thu, Jan 4, 2018 at 12:20 AM, Russel Winder wrote: > In GPars 1.X it was possible to do things such as: > > [1, 2, 3, 4, 5].parallel.reduce{a, b -> Math.min(a, b)} > > Without GPars it is possible using Groovy to achieve the exact same > functionality

Re: GPars 2 Stuff

2018-01-07 Thread MG
(watching NFL playoffs, so just a quick comment) Was thinking the same as Daniel here. Was also wondering whether adding the groovier variety of the functionality coud not be automated ? At least for the examples shown it looks like this might be a good option in principal. AST transformation

Re: GPars 2 Stuff

2018-01-07 Thread Daniel Sun
Hi Russel, `[1, 2, 3, 4, 5].parallel.reduce{a, b -> Math.min(a, b)}` is much groovier than ` [1, 2, 3, 4, 5].parallelStream().reduce{a, b -> Math.min(a, b)}.get()`, so I hope the original API can be kept and its implementation can base on Java8's functionality. Cheers, Daniel.Sun --