Load Java parameter names correctly in BinaryJavaMethod
PSI-based implementation (accessible via `-Xuse-old-class-files-reading`) loads parameter names from the "MethodParameters" attribute if it's present, so our own implementation should as well. This metadata doesn't seem supported in the java.lang.model.element API though, so SymbolBasedValueParameter (which is used in `-Xuse-javac`) will continue to have incorrect behavior for now #KT-25193 Fixed
This commit is contained in:
+5
@@ -39,6 +39,11 @@ public class Jvm8RuntimeDescriptorLoaderTestGenerated extends AbstractJvm8Runtim
|
||||
runTest("compiler/testData/loadJava8/compiledJava/MapRemove.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterNames.java")
|
||||
public void testParameterNames() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/ParameterNames.java");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeAnnotations.java")
|
||||
public void testTypeAnnotations() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/TypeAnnotations.java");
|
||||
|
||||
Reference in New Issue
Block a user