DmytroMitin/dotty-patched

Fix `getAnnotations` so that it works with `Class.forName`

DmytroMitin opened this issue · 5 comments

Fix `getAnnotations` so that it works with `Class.forName`

72e468c

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>

For inline clazz: Class[?]

java.lang.AssertionError: assertion failed: Bad superClass for class Any: val <none>

https://github.com/lampepfl/dotty/discussions/13571 (Could not find proxy in macro)

https://github.com/lampepfl/dotty/issues/13599