manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.43k stars 125 forks source link

`@Jailbreak` fails to compile when used on method that returns `short` #470

Closed PlatinPython closed 1 year ago

PlatinPython commented 1 year ago

Describe the bug When using @Jailbreak to access a method (static or instance) that returns a short the class fails to compile with "Unable to find method invokeStatic_short" or "Unable to find method invoke_short" respectively.

To Reproduce Steps to reproduce the behavior:

  1. Use @Jailbreak on any class that has a method that returns a short
  2. Call said method
  3. Try to compile

Expected behavior The class should compile without errors and the method call should run without problems.

Desktop (please complete the following information):

Additional context The cause of that, as far I can tell, seems to be that those two methods (invoke_short and invokeStatic_short) just do not exist in ReflectionRuntimeMethods.

Stack trace Output from compileJava task

rsmckinney commented 1 year ago

Fix available with release 2023.1.14. Thanks for reporting this!