You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

KnownLimitationsTests.java 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /* *******************************************************************
  2. * Copyright (c) 2004 IBM Corporation
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * ******************************************************************/
  10. package org.aspectj.systemtest.knownlimitations;
  11. import org.aspectj.testing.XMLBasedAjcTestCase;
  12. import junit.framework.Test;
  13. public class KnownLimitationsTests extends org.aspectj.testing.XMLBasedAjcTestCase {
  14. public static Test suite() {
  15. return XMLBasedAjcTestCase.loadSuite(KnownLimitationsTests.class);
  16. }
  17. protected java.net.URL getSpecFile() {
  18. return getClassResource("knownLimitations.xml");
  19. // return new File("../tests/src/org/aspectj/systemtest/knownlimitations/knownlimitations.xml");
  20. }
  21. public void test001(){
  22. runTest("DEPRECATED: introduce of variables");
  23. }
  24. public void test002(){
  25. runTest("checking the contra-variant errors for typing of proceed");
  26. }
  27. public void test003(){
  28. runTest("introduction of static methods and fields on classes and interfaces");
  29. }
  30. public void test004(){
  31. runTest("advice on catch clauses");
  32. }
  33. public void test005(){
  34. runTest("holding onto proceed calls in a closure-like way");
  35. }
  36. public void test006(){
  37. runTest("PR#458 Compiler was incorrectly flagging error in advice on initialization and static initialization");
  38. }
  39. public void test007(){
  40. runTest("Introduced type unavailable to instanceof expressions in introduced methods");
  41. }
  42. public void test008(){
  43. runTest("enclosing join point not exported properly in pre-initialization join point");
  44. }
  45. public void test009(){
  46. runTest("cyclic pointcut definitions");
  47. }
  48. public void test010(){
  49. runTest("package typepattern with no packages (in default package)");
  50. }
  51. public void test011(){
  52. runTest("flag errors when binding args with indeterminate prefix and suffix");
  53. }
  54. public void test012(){
  55. runTest("around and return types + inlining optimizations");
  56. }
  57. public void test013(){
  58. runTest("source locations within expressions (hard case of constructor start)");
  59. }
  60. public void test014(){
  61. runTest("declaring method on superclass and subclass");
  62. }
  63. public void test015(){
  64. runTest("illegal name binding in around cflow");
  65. }
  66. public void test016(){
  67. runTest("incrementally change string size and wire in injar classes");
  68. }
  69. public void test017(){
  70. runTest("before():execution(new(..)) does not throw NoAspectBoundException");
  71. }
  72. public void test018(){
  73. runTest("declare error on handler/method execution with no code on binary ajc 1.1 classes");
  74. }
  75. public void test019(){
  76. runTest("declare error on handler/method execution with no code on binary javac 1.4 classes");
  77. }
  78. public void test020(){
  79. runTest("CLE: -help usage");
  80. }
  81. public void test021(){
  82. runTest("declare warnings on main - constructor execution");
  83. }
  84. public void test022(){
  85. runTest("declare warnings on binary javac 1.4 main - constructor execution");
  86. }
  87. public void test023(){
  88. runTest("declare warnings on binary ajc 1.1 main - constructor execution");
  89. }
  90. public void test024(){
  91. runTest("advice on handler join points should not throw unpermitted checked exceptions");
  92. }
  93. public void test025(){
  94. runTest("-nowarn suppresses XLint warnings");
  95. }
  96. public void test026(){
  97. runTest("warn:none suppresses XLint warnings");
  98. }
  99. public void test027(){
  100. runTest("-nowarn suppresses declare warnings");
  101. }
  102. public void test028(){
  103. runTest("-warn:none suppresses declare warnings");
  104. }
  105. public void test029(){
  106. runTest("insertion of lots of advice code can make branch offset for if too large");
  107. }
  108. }