diff options
| author | Jayaprakash Arthanareeswaran | 2014-04-28 11:23:18 +0000 |
|---|---|---|
| committer | Jayaprakash Arthanareeswaran | 2014-04-28 11:23:18 +0000 |
| commit | f74cac509deaf512c7535f38357f0bf074e0e26d (patch) | |
| tree | 14e852de4accdbad6726ff5ee4f787cb76bcb5f4 | |
| parent | b37b35b6931149654f122100957e976afd95264d (diff) | |
| download | eclipse.jdt.core-f74cac509deaf512c7535f38357f0bf074e0e26d.tar.gz eclipse.jdt.core-f74cac509deaf512c7535f38357f0bf074e0e26d.tar.xz eclipse.jdt.core-f74cac509deaf512c7535f38357f0bf074e0e26d.zip | |
Bug 416027 - Enabling ATTR_METHOD_PARAMETERS for subsequent rounds of
code generation
| -rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java index e5344243f1..5d9cf2bb98 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java @@ -5182,6 +5182,9 @@ public class ClassFile implements TypeConstants, TypeIds { this.produceAttributes |= ClassFileConstants.ATTR_STACK_MAP_TABLE; if (this.targetJDK >= ClassFileConstants.JDK1_8) { this.produceAttributes |= ClassFileConstants.ATTR_TYPE_ANNOTATION; + if (options.produceMethodParameters) { + this.produceAttributes |= ClassFileConstants.ATTR_METHOD_PARAMETERS; + } } } else if (this.targetJDK == ClassFileConstants.CLDC_1_1) { this.targetJDK = ClassFileConstants.JDK1_1; // put back 45.3 |
