public aspect pr112027 { | |||||
pointcut pc() : this(pr112027); | |||||
before(pr112027 tis) : pc() && this(tis) { } | |||||
} |
public void testGenericITDsAndAbstractMethodError_pr102357() { runTest("generic itds and abstract method error");} | public void testGenericITDsAndAbstractMethodError_pr102357() { runTest("generic itds and abstract method error");} | ||||
*/ | */ | ||||
public void testUnboundFormal_pr112027() { runTest("unexpected error unboundFormalInPC");} | |||||
public void testBadDecp_pr110788_1() { runTest("bad generic decp - 1");} | public void testBadDecp_pr110788_1() { runTest("bad generic decp - 1");} | ||||
public void testBadDecp_pr110788_2() { runTest("bad generic decp - 2");} | public void testBadDecp_pr110788_2() { runTest("bad generic decp - 2");} | ||||
public void testBadDecp_pr110788_3() { runTest("bad generic decp - 3");} | public void testBadDecp_pr110788_3() { runTest("bad generic decp - 3");} |
<compile files="pr102357.aj"/> | <compile files="pr102357.aj"/> | ||||
<run class="pr102357"/> | <run class="pr102357"/> | ||||
</ajc-test> | </ajc-test> | ||||
<ajc-test dir="bugs150" title="unexpected error unboundFormalInPC"> | |||||
<compile files="pr112027.aj"/> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150" title="ITD varargs in constructor"> | <ajc-test dir="bugs150" title="ITD varargs in constructor"> | ||||
<compile files="pr111481.aj" options="-1.5"/> | <compile files="pr111481.aj" options="-1.5"/> |
} | } | ||||
public int hashCode() { | public int hashCode() { | ||||
int result = 17; | int result = 17; | ||||
result = 37*result + type.hashCode(); | |||||
result = 37*result + super.hashCode(); | |||||
result = 37*result + formalIndex; | result = 37*result + formalIndex; | ||||
return result; | return result; | ||||
} | } |
public boolean equals(Object other) { | public boolean equals(Object other) { | ||||
if (!(other instanceof ExactTypePattern)) return false; | if (!(other instanceof ExactTypePattern)) return false; | ||||
if (other instanceof BindingTypePattern) return false; | |||||
ExactTypePattern o = (ExactTypePattern)other; | ExactTypePattern o = (ExactTypePattern)other; | ||||
if (includeSubtypes != o.includeSubtypes) return false; | if (includeSubtypes != o.includeSubtypes) return false; | ||||
if (isVarArgs != o.isVarArgs) return false; | if (isVarArgs != o.isVarArgs) return false; | ||||
public int hashCode() { | public int hashCode() { | ||||
int result = 17; | int result = 17; | ||||
result = 37*result + type.hashCode(); | result = 37*result + type.hashCode(); | ||||
result = 37*result + new Boolean(includeSubtypes).hashCode(); | |||||
result = 37*result + new Boolean(isVarArgs).hashCode(); | |||||
result = 37*result + typeParameters.hashCode(); | |||||
result = 37*result + annotationPattern.hashCode(); | result = 37*result + annotationPattern.hashCode(); | ||||
return result; | return result; | ||||
} | } |