Fix `getAnnotations` so that it works with `Class.forName`
DmytroMitin opened this issue · 5 comments
DmytroMitin commented
Fix `getAnnotations` so that it works with `Class.forName`
DmytroMitin commented
DmytroMitin commented
java.lang.IllegalArgumentException: Could not find proxy for val clazz$proxy1: java.lang.Class in
[value clazz$proxy1, value <local AnnotationsTest>, class AnnotationsTest, package com.github.dmytromitin.macros.run,
package com.github.dmytromitin.macros, package com.github.dmytromitin, package com.github, package com, package <root>],
encl = method apply, owners = method apply, class Generated$Code$From$Quoted, package <root>;
enclosures = method apply, class Generated$Code$From$Quoted, package <root>
DmytroMitin commented
For inline clazz: Class[?]
java.lang.AssertionError: assertion failed: Bad superClass for class Any: val <none>
DmytroMitin commented
https://github.com/lampepfl/dotty/discussions/13571
(Could not find proxy in macro)
DmytroMitin commented
https://github.com/lampepfl/dotty/issues/13599