Skip to content

Commit

Permalink
regression fix: don't overwrite existing mayTolerateMissingType=true
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-herrmann committed Jun 13, 2024
1 parent c8cb014 commit 18d19ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1952,7 +1952,7 @@ MethodBinding resolveTypesFor(MethodBinding method) {
if ((method.modifiers & ExtraCompilerModifiers.AccUnresolved) == 0)
return method;
boolean tolerateSave = this.environment.mayTolerateMissingType;
this.environment.mayTolerateMissingType = this.environment.globalOptions.complianceLevel >= ClassFileConstants.JDK1_8; // tolerance only implemented for 1.8+
this.environment.mayTolerateMissingType |= this.environment.globalOptions.complianceLevel >= ClassFileConstants.JDK1_8; // tolerance only implemented for 1.8+
try {

if (!method.isConstructor()) {
Expand Down

0 comments on commit 18d19ed

Please sign in to comment.