diff lib/javacomp.h @ 39867:67c6a0f59621

javacomp-script, javacomp: Add support for Java 11. * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and target-version 11. * lib/javaversion.h: Update comments. * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND, source_version_index, get_goodcode_snippet, get_failcode_snippet, TARGET_VERSION_BOUND, target_version_index, corresponding_classfile_version): Accept source_version 11 and target_version 11. * lib/javacomp.h: Update comments accordingly.
author Bruno Haible <bruno@clisp.org>
date Wed, 26 Sep 2018 11:21:30 +0200
parents f2dcd6db2abf
children b06060465f09
line wrap: on
line diff
--- a/lib/javacomp.h	Sun Sep 23 14:13:52 2018 +0200
+++ b/lib/javacomp.h	Wed Sep 26 11:21:30 2018 +0200
@@ -33,6 +33,7 @@
              1.8             lambdas
              9               private interface methods
             10               type inference for local variables
+            11               'var' in parameters of lambda expressions
    target_version can be:  classfile version:
              1.1                 45.3
              1.2                 46.0
@@ -44,6 +45,7 @@
              1.8                 52.0
              9                   53.0
             10                   54.0
+            11                   55.0
    target_version can also be given as NULL. In this case, the required
    target_version is determined from the found JVM (see javaversion.h).
    Specifying target_version is useful when building a library (.jar) that is
@@ -56,7 +58,8 @@
      - target_version < 1.7 with source_version >= 1.7, or
      - target_version < 1.8 with source_version >= 1.8, or
      - target_version < 9 with source_version >= 9, or
-     - target_version < 10 with source_version >= 10,
+     - target_version < 10 with source_version >= 10, or
+     - target_version < 11 with source_version >= 11,
    because even Sun's/Oracle's javac doesn't support these combinations.
    It is redundant to ask for a target_version > source_version, since the
    smaller target_version = source_version will also always work and newer JVMs