Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Bugs1920Tests.java 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*******************************************************************************
  2. * Copyright (c) 2022 Contributors
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v 2.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  7. *******************************************************************************/
  8. package org.aspectj.systemtest.ajc1920;
  9. import junit.framework.Test;
  10. import org.aspectj.testing.XMLBasedAjcTestCase;
  11. /**
  12. * @author Alexander Kriegisch
  13. */
  14. public class Bugs1920Tests extends XMLBasedAjcTestCase {
  15. /**
  16. * Add correct annotations to multiple ITD methods with the same name and same number of arguments, i.e. copy the
  17. * annotations correctly from the aspect into the target class instead of falsely always copying the annotations (if
  18. * any) from the first ITD method found.
  19. * <p>
  20. * See <a href="https://github.com/eclipse-aspectj/aspectj/issues/246">GitHub issue 246</a>.
  21. */
  22. public void test_GitHub_246() {
  23. runTest("add correct annotations to multiple ITD methods with the same name and same number of arguments");
  24. }
  25. /**
  26. * Make sure to create one {@code ajc$inlineAccessMethod} for identically named (overloaded) private aspect methods.
  27. * <p>
  28. * See <a href="https://github.com/eclipse-aspectj/aspectj/issues/250">GitHub issue 250</a>.
  29. */
  30. public void test_GitHub_250() {
  31. runTest("correctly handle overloaded private methods in aspects");
  32. }
  33. public static Test suite() {
  34. return XMLBasedAjcTestCase.loadSuite(Bugs1920Tests.class);
  35. }
  36. @Override
  37. protected java.net.URL getSpecFile() {
  38. return getClassResource("ajc1920.xml");
  39. }
  40. }