If gradle is using the java installed/set in my environment, then it is:

java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b05)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b05, mixed mode)

I could not see any build output that printed java version it used (nice to
have, if its not there)...

-Anil.



On Thu, Jun 2, 2016 at 2:14 PM, Dan Smith <dsm...@pivotal.io> wrote:

> Develop builds for me. And travis seems happy -
> https://travis-ci.org/apache/incubator-geode
>
> But this is actually pretty weird. In Intellij at least, it thinks that
> lambda maps to a SerializableCallable even though it doesn't return a
> value. I think maybe that's due to the while(true) part. If I comment that
> out, it maps to a runnable. It seems like this particular lambda actually
> *is* ambiguous since it will never return normally, it could be either a
> callable or a runnable.
>
> What JDK and what revision are you building with? Maybe some newer JDK is
> complaining about this?
>
> -Dan
>
> -Dan
>
> On Thu, Jun 2, 2016 at 1:58 PM, Anilkumar Gingade <aging...@pivotal.io>
> wrote:
>
> > Hi Devs,
> >
> > Anyone seeing this issue:
> >
> >
> >
> :geode-core:compileTestJava/export/india1/users/agingade/src/gemfire/open/geode-core/src/test/java/com/gemstone/gemfire/management/internal/security/MultiUserDUnitTest.java:62:
> > error: reference to invokeAsync is ambiguous
> >
> >     AsyncInvocation vm1Invoke = vm1.invokeAsync("run as data-reader", ()
> ->
> > {
> >
> >                                    ^
> >
> >   both method invokeAsync(String,SerializableRunnableIF) in VM and method
> > <T>invokeAsync(String,SerializableCallableIF<T>) in VM match
> >
> >   where T is a type-variable:
> >
> >     T extends Object declared in method
> > <T>invokeAsync(String,SerializableCallableIF<T>)
> >
> >
> >
> /export/india1/users/agingade/src/gemfire/open/geode-core/src/test/java/com/gemstone/gemfire/security/templates/LdapUserAuthenticator.java:89:
> > warning: LdapCtxFactory is internal proprietary API and may be removed
> in a
> > future release
> >
> >     env.put(Context.INITIAL_CONTEXT_FACTORY,
> > com.sun.jndi.ldap.LdapCtxFactory.class.getName());
> >
> >                                                               ^
> >
> > Note: Some input files use or override a deprecated API.
> >
> > Note: Recompile with -Xlint:deprecation for details.
> >
> > Note: Some input files use unchecked or unsafe operations.
> >
> > Note: Recompile with -Xlint:unchecked for details.
> >
> > 1 error
> >
> >
> > -Anil.
> >
>

Reply via email to