commit | 59c400427717d320bb55e93284552fa72c2d9b06 | [log] [tgz] |
---|---|---|
author | Stephan Herrmann <stephan@cs.tu-berlin.de> | Tue Dec 14 22:18:16 2010 +0000 |
committer | Stephan Herrmann <stephan@cs.tu-berlin.de> | Tue Dec 14 22:18:16 2010 +0000 |
tree | 90de6b93ccfaa02b1a505df726c22411cb5cfb30 | |
parent | 8c6e4593f1d03b6320ce65b8fc34964099f6a8f2 [diff] |
make sure basecall surrogate is recognized when read from byte code (compare erasures).
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/lookup/SyntheticBaseCallSurrogate.java b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/lookup/SyntheticBaseCallSurrogate.java index 7f9b664..3bf783d 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/lookup/SyntheticBaseCallSurrogate.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/lookup/SyntheticBaseCallSurrogate.java
@@ -171,7 +171,7 @@ if (candidate.parameters.length != baseCallParameters.length) continue; for (int i=0; i<baseCallParameters.length; i++) - if (!areTypesEqual(baseCallParameters[i], candidate.parameters[i])) + if (!areTypesEqual(baseCallParameters[i].erasure(), candidate.parameters[i])) continue candidates; result = candidate; break;