Load annotations on properties declared in traits
This commit is contained in:
@@ -74,6 +74,10 @@ extend Callable {
|
||||
|
||||
optional JavaPropertySignature property_signature = 101;
|
||||
|
||||
// For top-level callables, short name of "...Package$src$..." class with the callable's body and annotations
|
||||
optional int32 src_class_name = 102;
|
||||
// Package-less name of the class with the callable's body and annotations, if it differs from the class it's serialized into.
|
||||
// E.g. for a class "A/B/C$D" this would be "C$D".
|
||||
// This is needed to find the class to load annotations from in the following cases:
|
||||
// 1) annotations on top-level members are written to compiled package fragment classes
|
||||
// 2) annotations on properties in traits are written to TImpl classes
|
||||
optional int32 impl_class_name = 102;
|
||||
}
|
||||
|
||||
+3
-3
@@ -9,7 +9,7 @@ public final class JavaProtoBuf {
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
registry.add(org.jetbrains.jet.descriptors.serialization.JavaProtoBuf.methodSignature);
|
||||
registry.add(org.jetbrains.jet.descriptors.serialization.JavaProtoBuf.propertySignature);
|
||||
registry.add(org.jetbrains.jet.descriptors.serialization.JavaProtoBuf.srcClassName);
|
||||
registry.add(org.jetbrains.jet.descriptors.serialization.JavaProtoBuf.implClassName);
|
||||
}
|
||||
public interface JavaTypeOrBuilder
|
||||
extends com.google.protobuf.MessageLiteOrBuilder {
|
||||
@@ -2825,14 +2825,14 @@ public final class JavaProtoBuf {
|
||||
null,
|
||||
101,
|
||||
com.google.protobuf.WireFormat.FieldType.MESSAGE);
|
||||
public static final int SRC_CLASS_NAME_FIELD_NUMBER = 102;
|
||||
public static final int IMPL_CLASS_NAME_FIELD_NUMBER = 102;
|
||||
/**
|
||||
* <code>extend .org.jetbrains.jet.descriptors.serialization.Callable { ... }</code>
|
||||
*/
|
||||
public static final
|
||||
com.google.protobuf.GeneratedMessageLite.GeneratedExtension<
|
||||
org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable,
|
||||
java.lang.Integer> srcClassName = com.google.protobuf.GeneratedMessageLite
|
||||
java.lang.Integer> implClassName = com.google.protobuf.GeneratedMessageLite
|
||||
.newSingularGeneratedExtension(
|
||||
org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(),
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user