aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-12-30 09:52:09 +0100
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-12-30 16:14:42 +0700
commit4b46caabfc7aec455df6173a73d10afffddd8831 (patch)
tree1a1f774c096ba5964e98e818dfea6e067f2b4986
parenta570da916ab0f656f151261fde305ee0efa2f202 (diff)
downloadaspectj-4b46caabfc7aec455df6173a73d10afffddd8831.tar.gz
aspectj-4b46caabfc7aec455df6173a73d10afffddd8831.zip
Regression test for #190
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
-rw-r--r--tests/bugs1919/github_190/SwitchCaseWith_Integer_MAX_VALUE.java20
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc1919/Bugs1919Tests.java3
-rw-r--r--tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml13
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/bugs1919/github_190/SwitchCaseWith_Integer_MAX_VALUE.java b/tests/bugs1919/github_190/SwitchCaseWith_Integer_MAX_VALUE.java
new file mode 100644
index 000000000..d083fe60f
--- /dev/null
+++ b/tests/bugs1919/github_190/SwitchCaseWith_Integer_MAX_VALUE.java
@@ -0,0 +1,20 @@
+public class SwitchCaseWith_Integer_MAX_VALUE {
+ public static void main(String[] args) {
+ System.out.println(switchTest(Integer.MAX_VALUE));
+ }
+
+ static String switchTest(int i) {
+ switch (i) {
+ case Integer.MAX_VALUE:
+ return "CASE_1";
+ default:
+ return "";
+ }
+ }
+}
+
+aspect MyAspect {
+ before() : execution(* switchTest(*)) {
+ System.out.println(thisJoinPoint);
+ }
+}
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc1919/Bugs1919Tests.java b/tests/src/test/java/org/aspectj/systemtest/ajc1919/Bugs1919Tests.java
index 3c921f51a..1cfb22ff5 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc1919/Bugs1919Tests.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc1919/Bugs1919Tests.java
@@ -19,6 +19,9 @@ public class Bugs1919Tests extends XMLBasedAjcTestCase {
runTest("declare annotation with SOURCE retention");
}
+ public void testsSwitchWith_Integer_MAX_VALUE() {
+ runTest("switch with Integer.MAX_VALUE case");
+ }
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Bugs1919Tests.class);
}
diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml
index 0e07ff84f..60d7e4f86 100644
--- a/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml
+++ b/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml
@@ -172,4 +172,17 @@
</compile>
</ajc-test>
+ <!-- RuntimeException in BcelWeaver, see https://github.com/eclipse/org.aspectj/issues/190 -->
+ <ajc-test dir="bugs1919/github_190" vm="1.5" title="switch with Integer.MAX_VALUE case">
+ <compile files="SwitchCaseWith_Integer_MAX_VALUE.java" options="-1.5 -showWeaveInfo">
+ <message kind="weave" text="Join point 'method-execution(java.lang.String SwitchCaseWith_Integer_MAX_VALUE.switchTest(int))'"/>
+ </compile>
+ <run class="SwitchCaseWith_Integer_MAX_VALUE">
+ <stdout>
+ <line text="execution(String SwitchCaseWith_Integer_MAX_VALUE.switchTest(int))"/>
+ <line text="CASE_1"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
</suite>
rt/46218/stable28 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* fix: Do not check for strict cookie when running webcronfix/cron-strict-cookieFerdinand Thiessen2024-11-071-1/+3
* Merge pull request #42052 from nextcloud/fix/carddav/create-sab-concurrentlyJohn Molakvoæ2024-11-062-7/+27
|\
| * fix(carddav): Handle race for SAB creation betterChristoph Wurst2024-11-062-7/+27
* | Merge pull request #49039 from nextcloud/jtr/fix-ipv6-zone-ids-link-localJohn Molakvoæ2024-11-065-4/+9
|\ \ | |/ |/|
| * fix(tests): Add IpAddressClassifier v6 zone ID testjtr/fix-ipv6-zone-ids-link-localJosh2024-11-041-0/+1
| * fix(tests): Add RemoteAddress v6 zone ID testJosh2024-11-041-0/+2
| * fix(net): Add IPv6 zone handling to IpAddressClassifierJosh2024-10-311-1/+1
| * fix(security): Handle IPv6 zone IDs used in link-local addressesJosh2024-10-311-1/+2
| * fix(security): Handle IPv6 zone IDs used in link-local addressesJosh2024-10-311-2/+3
* | Merge pull request #46222 from nextcloud/fix/task-processing-api-controller/d...John Molakvoæ2024-11-061-3/+3
|\ \
| * | fix(TaskProcessingApiController): Don't use + to merge non-assoc. arraysfix/task-processing-api-controller/dont-use-plusMarcel Klehr2024-07-011-3/+3
* | | Merge pull request #49015 from nextcloud/fix/openapi/array-syntaxJohn Molakvoæ2024-11-06109-448/+698
|\ \ \
| * | | fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-05109-448/+698
* | | | Merge pull request #48721 from nextcloud/feat/allow-getter-setter-decl-forsJohn Molakvoæ2024-11-0612-120/+183
|\ \ \ \
| * | | | refactor(files): Migrate from event listener to class based declarative settingsfeat/allow-getter-setter-decl-forsFerdinand Thiessen2024-10-156-107/+28
| * | | | feat(DeclarativeSettings): Allow to implement value getter and setter directl...Ferdinand Thiessen2024-10-156-13/+155
* | | | | Merge pull request #49102 from nextcloud/dependabot/npm_and_yarn/multi-229942...John Molakvoæ2024-11-061-21/+12
|\ \ \ \ \
| * | | | | build(deps): bump cookie and socket.iodependabot/npm_and_yarn/multi-2299424a7ddependabot[bot]2024-11-051-21/+12
* | | | | | Fix(l10n): Update translations from TransifexNextcloud bot2024-11-0634-34/+10
|/ / / / /
* | | | | Merge pull request #49094 from nextcloud/chore/nextcloud-dialogs-masterFerdinand Thiessen2024-11-05160-223/+259
|\ \ \ \ \
| * | | | | chore: Compile assetschore/nextcloud-dialogs-masterFerdinand Thiessen2024-11-05158-201/+205
| * | | | | chore(deps): Update `@nextcloud/dialogs` to v6.0.1Ferdinand Thiessen2024-11-052-22/+54
* | | | | | Merge pull request #48933 from nextcloud/clear-pending-two-factor-tokens-also...Joas Schilling2024-11-052-1/+65
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | fix: Handle exception when clearing previously removed two factor tokensclear-pending-two-factor-tokens-also-from-configurationDaniel Calviño Sánchez2024-11-052-1/+37
| * | | | | fix: Clear pending two factor tokens also from configurationDaniel Calviño Sánchez2024-11-052-0/+28
|/ / / / /
* | | | | Merge pull request #48792 from nextcloud/chore/update_mysql_setup_check_i18nBenjamin Gaussorgues2024-11-051-4/+2
|\ \ \ \ \
| * | | | | chore(setupchecks): update translation for MySQL row format checkchore/update_mysql_setup_check_i18nBenjamin Gaussorgues2024-10-301-4/+2
* | | | | | Fix(l10n): Update translations from TransifexNextcloud bot2024-11-0556-104/+90
* | | | | | Merge pull request #48621 from nextcloud/feat/issue-3786-allow-shared-calendarsSebastian Krupinski2024-11-041-9/+7
|\ \ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into feat/issue-3786-allow-shared-calendarsfeat/issue-3786-allow-shared-calendarsSebastian Krupinski2024-11-04