Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38577

Re: Java Version

Newsgroups comp.lang.java.programmer
Date 2018-08-28 16:56 -0700
References <bcd36cad-88e8-486c-bbf7-0e55b70e7038@googlegroups.com> <pm4hb9$sld$1@gioia.aioe.org> <bfbc8f79-d072-4c0e-b277-047a050e3ae7@googlegroups.com> <pm4mkq$13q8$2@gioia.aioe.org>
Message-ID <c70a409d-1ed9-402a-a7c1-04be5b2ea950@googlegroups.com> (permalink)
Subject Re: Java Version
From bursejan@gmail.com

Show all headers | View raw


The language level is independent of the Android
Libraries. Language features along the code and
not along the interface are not seen in the

Android Libraries, since they are only seen as
interfaces. If you open an Android library in
my IDE, you only see:

public final class Class<T> 
   implements Serializable, GenericDeclaration, 
              Type, AnnotatedElement {

        Class() {
        throw new RuntimeException("Stub!");
    }

    public String toString() {
        throw new RuntimeException("Stub!");
    }

    public String toGenericString() {
        throw new RuntimeException("Stub!");
    }

BTW: Same case with Java. So all that counts would
be only language features that affect the interfaces.
But generic types were already introduced

in JDK 6. So with JDK 6 you are on the safe side.
And some packages that are not in the intersetion
between Java and Android, 

you figure these out quickly.

The Android libraries byte code on the other hand
uses version 52.0, thats right. But then if you
stay in the JDK 6 for the non GUI

part, this doesn't mean I would recommend the
same for the GUI and Android specific part.
Maybe there you should profit from

the latest development. 

Am Mittwoch, 29. August 2018 01:42:28 UTC+2 schrieb Arne Vajhøj:
> On 8/28/2018 7:00 PM, bursejan@gmail.com wrote:
> >                 I still try to develop
> > against JDK 6, so that I also can use my
> > code for example Android.
> 
> I don't understand that.
> 
> Android does not implement full runtime of any Java version.
> 
> And the language support is up to Java 8 in latest
> versions I believe.
> 
> Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Java Version Eric Douglas <e.d.programmer@gmail.com> - 2018-08-28 13:17 -0700
  Re: Java Version Arne Vajhøj <arne@vajhoej.dk> - 2018-08-28 18:11 -0400
    Re: Java Version bursejan@gmail.com - 2018-08-28 16:00 -0700
      Re: Java Version bursejan@gmail.com - 2018-08-28 16:01 -0700
      Re: Java Version Arne Vajhøj <arne@vajhoej.dk> - 2018-08-28 19:40 -0400
      Re: Java Version Arne Vajhøj <arne@vajhoej.dk> - 2018-08-28 19:42 -0400
        Re: Java Version bursejan@gmail.com - 2018-08-28 16:56 -0700
          Re: Java Version bursejan@gmail.com - 2018-08-28 16:58 -0700
            Re: Java Version bursejan@gmail.com - 2018-08-28 17:06 -0700
              Re: Java Version bursejan@gmail.com - 2018-08-28 17:09 -0700
                Re: Java Version bursejan@gmail.com - 2018-08-28 17:28 -0700
                Re: Java Version bursejan@gmail.com - 2018-08-28 17:47 -0700
                Re: Java Version bursejan@gmail.com - 2018-08-28 17:53 -0700

csiph-web