Java reflection mechanism is unable to find methods that has inner types as their parameters as in the example below
package org.example;
public class Outer {
public static class Inner {}
public void myMethod(Inner arg0) {}
}
Attempting to get myMethod using Class#getMethod such as Outer.class.getMethod("myMethod", Inner.class); throws an uncaught error in javascript. The error is caused by the name of the method being incorrectly constructed from the parameter types.
getMethod tries to find myMethod$org_example_Outer$Inner when the actual name of the transpiled method is myMethod$org_example_Outer_Inner.
Java reflection mechanism is unable to find methods that has inner types as their parameters as in the example below
Attempting to get myMethod using Class#getMethod such as
Outer.class.getMethod("myMethod", Inner.class);throws an uncaught error in javascript. The error is caused by the name of the method being incorrectly constructed from the parameter types.getMethod tries to find
myMethod$org_example_Outer$Innerwhen the actual name of the transpiled method ismyMethod$org_example_Outer_Inner.