File tree 1 file changed +4
-3
lines changed
core/kotlinx-coroutines-core/src/internal
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -192,10 +192,11 @@ private fun Array<StackTraceElement>.frameIndex(methodName: String) = indexOfFir
192
192
193
193
private fun StackTraceElement.elementWiseEquals (e : StackTraceElement ): Boolean {
194
194
/*
195
- * By default, STE.equals compares class-loader of enclosing class as well, which may lead to an interesting duplicates
196
- * in stack traces.
195
+ * In order to work on Java 9 where modules and classloaders of enclosing class
196
+ * are part of the comparison
197
197
*/
198
- return lineNumber == e.lineNumber && methodName == e.methodName && fileName == e.fileName
198
+ return lineNumber == e.lineNumber && methodName == e.methodName
199
+ && fileName == e.fileName && className == e.className
199
200
}
200
201
201
202
@Suppress(" ACTUAL_WITHOUT_EXPECT" )
You can’t perform that action at this time.
0 commit comments