eppleton commented on PR #9433: URL: https://github.com/apache/netbeans/pull/9433#issuecomment-5857810265
The Kotlin case regressed: with diag.source=Hi.kt, showSource(frame, null) and showSource(frame, "Kotlin") now open Hi.kt:9 (previous PR version: line 2). The loop finds Hi.kt via the Java stratum and now sets stratumn = anyStratum, so the line comes from Java. For inline code, that is a synthetic line past the end of the file. The Kotlin stratum's line (2) is the correct one; the stratum just fails to resolve because its SMAP source path is HiKt (a class name), even though its source name is Hi.kt. KotlinSmapDiagTest only prints its results and has no assertions, so it passes either way. It would be good to turn the SUMMARY into asserts: null/Kotlin → line 2 in Hi.kt; with only HiKt present, Java → line 2. Also getURL(frame, "Kotlin") should be non-null. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
