Changed visibility for trait static fields
This commit is contained in:
@@ -316,9 +316,7 @@ public class PropertyCodegen {
|
|||||||
else if (hasPublicFieldAnnotation && !isDelegate) {
|
else if (hasPublicFieldAnnotation && !isDelegate) {
|
||||||
modifiers |= ACC_PUBLIC;
|
modifiers |= ACC_PUBLIC;
|
||||||
}
|
}
|
||||||
else if (isInterfaceCompanionObject(propertyDescriptor.getContainingDeclaration())) {
|
else {
|
||||||
modifiers |= ACC_PRIVATE;
|
|
||||||
} else {
|
|
||||||
modifiers |= getVisibilityForSpecialPropertyBackingField(propertyDescriptor, isDelegate);
|
modifiers |= getVisibilityForSpecialPropertyBackingField(propertyDescriptor, isDelegate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ public interface TraitClassObjectField {
|
|||||||
|
|
||||||
static final class Companion {
|
static final class Companion {
|
||||||
@org.jetbrains.annotations.Nullable
|
@org.jetbrains.annotations.Nullable
|
||||||
private static final java.lang.String x = "";
|
public static final java.lang.String x = "";
|
||||||
private static final java.lang.String y = "";
|
private static final java.lang.String y = "";
|
||||||
public static final TraitClassObjectField.Companion INSTANCE;
|
public static final TraitClassObjectField.Companion INSTANCE;
|
||||||
|
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ interface Test {
|
|||||||
|
|
||||||
// TESTED_OBJECT_KIND: property
|
// TESTED_OBJECT_KIND: property
|
||||||
// TESTED_OBJECTS: Test$Companion, prop
|
// TESTED_OBJECTS: Test$Companion, prop
|
||||||
// FLAGS: ACC_PRIVATE, ACC_FINAL, ACC_STATIC, ACC_SYNTHETIC
|
// FLAGS: ACC_PUBLIC, ACC_FINAL, ACC_STATIC, ACC_SYNTHETIC
|
||||||
@@ -10,4 +10,4 @@ interface Test {
|
|||||||
|
|
||||||
// TESTED_OBJECT_KIND: property
|
// TESTED_OBJECT_KIND: property
|
||||||
// TESTED_OBJECTS: Test$Companion, prop
|
// TESTED_OBJECTS: Test$Companion, prop
|
||||||
// FLAGS: ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
|
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ interface Test {
|
|||||||
|
|
||||||
// TESTED_OBJECT_KIND: property
|
// TESTED_OBJECT_KIND: property
|
||||||
// TESTED_OBJECTS: Test$Companion, prop
|
// TESTED_OBJECTS: Test$Companion, prop
|
||||||
// FLAGS: ACC_PRIVATE, ACC_FINAL, ACC_STATIC
|
// FLAGS: ACC_PROTECTED, ACC_FINAL, ACC_STATIC
|
||||||
@@ -10,4 +10,4 @@ interface Test {
|
|||||||
|
|
||||||
// TESTED_OBJECT_KIND: property
|
// TESTED_OBJECT_KIND: property
|
||||||
// TESTED_OBJECTS: Test$Companion, prop
|
// TESTED_OBJECTS: Test$Companion, prop
|
||||||
// FLAGS: ACC_PRIVATE, ACC_FINAL, ACC_STATIC
|
// FLAGS: ACC_PUBLIC, ACC_FINAL, ACC_STATIC
|
||||||
@@ -10,4 +10,4 @@ interface Test {
|
|||||||
|
|
||||||
// TESTED_OBJECT_KIND: property
|
// TESTED_OBJECT_KIND: property
|
||||||
// TESTED_OBJECTS: Test$Companion, prop
|
// TESTED_OBJECTS: Test$Companion, prop
|
||||||
// FLAGS: ACC_PRIVATE, ACC_STATIC
|
// FLAGS: ACC_PUBLIC, ACC_STATIC
|
||||||
+1
-1
@@ -11,4 +11,4 @@ interface Test {
|
|||||||
|
|
||||||
// TESTED_OBJECT_KIND: property
|
// TESTED_OBJECT_KIND: property
|
||||||
// TESTED_OBJECTS: Test$Companion, prop
|
// TESTED_OBJECTS: Test$Companion, prop
|
||||||
// FLAGS: ACC_PRIVATE, ACC_STATIC
|
// FLAGS: ACC_PROTECTED, ACC_STATIC
|
||||||
|
|||||||
+1
-1
@@ -11,4 +11,4 @@ interface Test {
|
|||||||
|
|
||||||
// TESTED_OBJECT_KIND: property
|
// TESTED_OBJECT_KIND: property
|
||||||
// TESTED_OBJECTS: Test$Companion, prop
|
// TESTED_OBJECTS: Test$Companion, prop
|
||||||
// FLAGS: ACC_PRIVATE, ACC_STATIC
|
// FLAGS: ACC_PUBLIC, ACC_STATIC
|
||||||
|
|||||||
Reference in New Issue
Block a user