You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/files/neg/macro-exception.check
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,11 @@
1
1
Test_2.scala:2: error: exception during macro expansion:
2
2
java.lang.Exception
3
3
at Macros$.impl(Macros_1.scala:6)
4
-
#partest java20+
4
+
#partest java20
5
5
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
6
+
#partest java21+
7
+
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
8
+
#partest java20+
6
9
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
7
10
at scala.reflect.macros.runtime.JavaReflectionRuntimes$JavaReflectionResolvers.$anonfun$resolveJavaReflectionRuntime$6(JavaReflectionRuntimes.scala:51)
8
11
at scala.tools.nsc.typechecker.Macros.macroExpandWithRuntime(Macros.scala:849)
Copy file name to clipboardExpand all lines: test/files/neg/macro-invalidret.check
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,11 @@ Macros_Test_2.scala:7: error: macro defs must have explicitly specified return t
18
18
Macros_Test_2.scala:15: error: exception during macro expansion:
19
19
java.lang.NullPointerException
20
20
at Impls$.foo3(Impls_1.scala:8)
21
-
#partest java20+
21
+
#partest java20
22
22
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
23
+
#partest java21+
24
+
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
25
+
#partest java20+
23
26
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
24
27
at scala.reflect.macros.runtime.JavaReflectionRuntimes$JavaReflectionResolvers.$anonfun$resolveJavaReflectionRuntime$6(JavaReflectionRuntimes.scala:51)
25
28
at scala.tools.nsc.typechecker.Macros.macroExpandWithRuntime(Macros.scala:849)
0 commit comments