From c302c298ba869c0418325bcfc67cd2f15f9980a4 Mon Sep 17 00:00:00 2001 From: Adarsh Fernando Date: Thu, 2 Jun 2016 11:14:30 -0700 Subject: [PATCH] DOCS: Updated Java 8 language support list with Type Annotations. Change-Id: I88773fbf1ce884bd625b3db72c36765871bb9fcc --- docs/html/preview/j8-jack.jd | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/docs/html/preview/j8-jack.jd b/docs/html/preview/j8-jack.jd index 1f10efa878b24..4ea016da6d004 100644 --- a/docs/html/preview/j8-jack.jd +++ b/docs/html/preview/j8-jack.jd @@ -72,14 +72,25 @@ installed the Android N Preview SDK, see Method References (also available on API level 23 and lower) + +
  • + + Type Annotations (also available on API level 23 and lower) +
  • - Note: To test lambda expressions and method references on - earlier versions of Android, go to your {@code build.gradle} - file, and set {@code compileSdkVersion} and {@code targetSdkVersion} to 23 or - lower. You will still need to enable the Jack - toolchain to use these Java 8 features. + Note: Type annotation information is only available at + compile time, and not during runtime. +

    + +

    + To test lambda expressions, method references, and type annotations on + earlier versions of Android, go to your {@code build.gradle} file, and set + {@code compileSdkVersion} and {@code targetSdkVersion} to 23 or lower. You + will still need to enable the Jack toolchain to + use these Java 8 features.

    @@ -108,8 +119,8 @@ installed the Android N Preview SDK, see

  • and Reflection APIs associated with repeatable annotations, such as - + {@code AnnotatedElement.getAnnotationsByType(Class)}