You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt
+18-13Lines changed: 18 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -990,21 +990,26 @@ open class KotlinFileExtractor(
990
990
}
991
991
}
992
992
} else {
993
-
c.declarations.forEach {
994
-
extractDeclaration(
995
-
it,
996
-
extractPrivateMembers = extractPrivateMembers,
997
-
extractFunctionBodies = extractFunctionBodies,
998
-
extractAnnotations =true
993
+
try {
994
+
c.declarations.forEach {
995
+
extractDeclaration(
996
+
it,
997
+
extractPrivateMembers = extractPrivateMembers,
998
+
extractFunctionBodies = extractFunctionBodies,
999
+
extractAnnotations =true
1000
+
)
1001
+
}
1002
+
if (extractStaticInitializer) extractStaticInitializer(c, { id })
1003
+
extractJvmStaticProxyMethods(
1004
+
c,
1005
+
id,
1006
+
extractPrivateMembers,
1007
+
extractFunctionBodies
999
1008
)
1009
+
} catch (e:IllegalArgumentException) {
1010
+
// A Kotlin bug causes this to throw: https://youtrack.jetbrains.com/issue/KT-63847/K2-IllegalStateException-IrFieldPublicSymbolImpl-for-java.time-Clock.OffsetClock.offset0-is-already-bound
1011
+
// TODO: This should either be removed or log something, once the bug is fixed
1000
1012
}
1001
-
if (extractStaticInitializer) extractStaticInitializer(c, { id })
0 commit comments