public boolean ignoreOptionalProblems() {
return false;
}
-
- @Override
- public char[] module() {
- return null;
- }
};
TypeDeclaration local = new TypeDeclaration(new CompilationResult(cu, 0, 0, 0));
import java.io.File;
import java.io.IOException;
-import java.io.PrintWriter;
-import junit.framework.Test;
-
-import org.aspectj.ajdt.internal.core.builder.AsmHierarchyBuilder;
import org.aspectj.asm.AsmManager;
import org.aspectj.asm.IHierarchy;
import org.aspectj.asm.IProgramElement;
import org.aspectj.systemtest.ajc150.GenericsTests;
import org.aspectj.testing.XMLBasedAjcTestCase;
-import org.aspectj.weaver.UnresolvedType.TypeKind;
+
+import junit.framework.Test;
public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
IHierarchy top = AsmManager.lastActiveStructureModel.getHierarchy();
IProgramElement ipe = top.findElementForLabel(top.getRoot(), IProgramElement.Kind.METHOD, ipeLabel);
assertNotNull("Couldn't find '" + ipeLabel + "' element in the tree", ipe);
- List l = ipe.getParameterSignatures();
+ List<char[]> l = ipe.getParameterSignatures();
boolean eq = CharOperation.equals(((char[]) l.get(0)), expectedParm.toCharArray());
assertTrue("expected parameter to be '" + expectedParm + "' but found '" + new String(((char[]) l.get(0))) + "'", eq);
}
// Should be 'rounded down' when transforming it into a MethodGen, new position will be '2'
// This next line will go BANG with an NPE if we don't correctly round the start pc down to 2
- MethodGen toTransform = new MethodGen(oneWeWant, "A", cp, true);
+ new MethodGen(oneWeWant, "A", cp, true);
}
public void testGenericAspectGenericPointcut_pr174449() {
*/
public class Ajc190Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testFunnySignature() {
+ runTest("funny signature with method reference");
+ }
+
// Weave a module with code that isn't in a module
public void testWeaveModule() throws Exception {
runTest("weave module");
<suite>
+ <ajc-test dir="bugs190/520135" title="funny signature with method reference">
+ <compile files="FailsApectJ.java" options="-1.8"/>
+ </ajc-test>
+
<ajc-test dir="bugs190/modules" title="weave module">
<compile files="aspect1/Azpect1.java" inpath="module1/module-one.jar" outjar="runner.jar" options="-1.8"/>
<java classpath="runner.jar" class="a.b.c.Code"/>