diff --git a/conformance/conformance_objc.m b/conformance/conformance_objc.m index ab751c81de..12f06c9324 100644 --- a/conformance/conformance_objc.m +++ b/conformance/conformance_objc.m @@ -77,7 +77,7 @@ static ConformanceResponse *DoTest(ConformanceRequest *request) { if ([request.messageType isEqual:@"protobuf_test_messages.proto3.TestAllTypesProto3"]) { msgClass = [Proto3TestAllTypesProto3 class]; } else if ([request.messageType isEqual:@"protobuf_test_messages.proto2.TestAllTypesProto2"]) { - msgClass = [TestAllTypesProto2 class]; + msgClass = [Proto2TestAllTypesProto2 class]; } else { response.runtimeError = [NSString stringWithFormat:@"Protobuf request had an unknown message_type: %@", diff --git a/src/google/protobuf/test_messages_proto2.proto b/src/google/protobuf/test_messages_proto2.proto index b04d8bb475..73bd626c43 100644 --- a/src/google/protobuf/test_messages_proto2.proto +++ b/src/google/protobuf/test_messages_proto2.proto @@ -40,6 +40,7 @@ syntax = "proto2"; package protobuf_test_messages.proto2; option java_package = "com.google.protobuf_test_messages.proto2"; +option objc_class_prefix = "Proto2"; // This is the default, but we specify it here explicitly. option optimize_for = SPEED;