Skip to content

Commit

Permalink
Now delegating classes defined in the same project works.
Browse files Browse the repository at this point in the history
At this revision, you can easily and reliably reproduce issue #164 by
creating a loop (A delegates B and B delegates A).
  • Loading branch information
rzwitserloot committed Mar 28, 2011
1 parent 816c0b9 commit ab1d938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
Expand Up @@ -74,7 +74,6 @@
import org.eclipse.jdt.internal.compiler.lookup.BaseTypeBinding;
import org.eclipse.jdt.internal.compiler.lookup.Binding;
import org.eclipse.jdt.internal.compiler.lookup.ClassScope;
import org.eclipse.jdt.internal.compiler.lookup.MemberTypeBinding;
import org.eclipse.jdt.internal.compiler.lookup.MethodBinding;
import org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding;
import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding;
Expand Down Expand Up @@ -475,7 +474,7 @@ private static void addAllMethodBindings(List<BindingPair> list, TypeBinding bin
inner = binding;
}

if (inner instanceof MemberTypeBinding) {
if (inner instanceof SourceTypeBinding) {
ClassScope cs = ((SourceTypeBinding)inner).scope;
if (cs != null) {
try {
Expand Down Expand Up @@ -527,6 +526,7 @@ private static final class BindingPair {

private static final List<String> METHODS_IN_OBJECT = Collections.unmodifiableList(Arrays.asList(
"hashCode()",
"canEqual(java.lang.Object)", //Not in j.l.Object, but it goes with hashCode and equals so if we ignore those two, we should ignore this one.
"equals(java.lang.Object)",
"wait()",
"wait(long)",
Expand Down

0 comments on commit ab1d938

Please sign in to comment.