KT-58720 Generate full InnerClass attributes for the standard library; deprecate -Xuse-old-innerclasses-logic
This commit is contained in:
committed by
Space Team
parent
1dbe47c039
commit
fc7af2c9e0
+8
-1
@@ -817,7 +817,8 @@ Also sets `-jvm-target` value equal to the selected JDK version"""
|
||||
|
||||
@Argument(
|
||||
value = "-Xuse-old-innerclasses-logic",
|
||||
description = "Use old logic for generation of InnerClasses attributes"
|
||||
description = "Use old logic for generation of InnerClasses attributes.\n" +
|
||||
"This option is deprecated and will be deleted in future versions."
|
||||
)
|
||||
var oldInnerClassesLogic = false
|
||||
set(value) {
|
||||
@@ -910,6 +911,12 @@ Also sets `-jvm-target` value equal to the selected JDK version"""
|
||||
"Please use language version 1.5 or below, or remove -Xuse-old-backend"
|
||||
)
|
||||
}
|
||||
if (oldInnerClassesLogic) {
|
||||
collector.report(
|
||||
CompilerMessageSeverity.WARNING,
|
||||
"The -Xuse-old-innerclasses-logic option is deprecated and will be deleted in future versions."
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
override fun copyOf(): Freezable = copyK2JVMCompilerArguments(this, K2JVMCompilerArguments())
|
||||
|
||||
Reference in New Issue
Block a user