diff options
author | Stephan Herrmann | 2019-01-22 15:38:35 +0000 |
---|---|---|
committer | Stephan Herrmann | 2019-01-22 15:38:35 +0000 |
commit | 51aa969ecc1d0045248f76561f2d92330fc6bc27 (patch) | |
tree | a83fb411f2cae20f6f3ab8c4bbfa309e570914e3 /org.eclipse.jdt.core/compiler/org | |
parent | d83eba27c249065f8a479d0ede7680609556ea71 (diff) | |
download | eclipse.jdt.core-51aa969ecc1d0045248f76561f2d92330fc6bc27.tar.gz eclipse.jdt.core-51aa969ecc1d0045248f76561f2d92330fc6bc27.tar.xz eclipse.jdt.core-51aa969ecc1d0045248f76561f2d92330fc6bc27.zip |
Bug 543304 - @NonNull produces an error with arrays of primitivesI20190122-1800
Change-Id: I89a4b5559edbb86cce5f77500587acc5e57bc76e
Signed-off-by: Stephan Herrmann <stephan.herrmann@berlin.de>
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org')
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java index 6e084b3634..393c864722 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2018 IBM Corporation and others. + * Copyright (c) 2000, 2019 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -465,6 +465,8 @@ void cachePartsFrom(IBinaryType binaryType, boolean needFieldsAndMethods) { } char[] typeSignature = binaryType.getGenericSignature(); // use generic signature even in 1.4 this.tagBits |= binaryType.getTagBits(); + if (this.environment.globalOptions.complianceLevel < ClassFileConstants.JDK1_8) + this.tagBits &= ~TagBits.AnnotationForTypeUse; // avoid confusion with semantics that are not supported at 1.7- char[][][] missingTypeNames = binaryType.getMissingTypeNames(); SignatureWrapper wrapper = null; |