diff options
author | Brian Duff <bduff@google.com> | 2013-06-07 00:12:27 -0700 |
---|---|---|
committer | Brian Duff <bduff@google.com> | 2013-06-07 14:00:05 -0700 |
commit | a220fe61e1aa175917907ec5016ae9ccb151ed31 (patch) | |
tree | a694453c79efb3921b5c48ebf7b382670f16f794 /src/google/protobuf/unittest_enum_multiplejava_nano.proto | |
parent | 63d4b5fd57159c1e9b54299c803358306fe915f9 (diff) | |
download | protobuf-a220fe61e1aa175917907ec5016ae9ccb151ed31.tar.gz protobuf-a220fe61e1aa175917907ec5016ae9ccb151ed31.tar.bz2 protobuf-a220fe61e1aa175917907ec5016ae9ccb151ed31.zip |
Fix enum field references with java_multiple_files.
When the java_multiple_files option is on, enums are placed in java
class files based on the name of the original enum type. This fixes
field references to such enum values to point to the correct class
name when setting the default.
Change-Id: I51a2e251c0d0ab1e45a182ba849d314232a74bac
Diffstat (limited to 'src/google/protobuf/unittest_enum_multiplejava_nano.proto')
-rw-r--r-- | src/google/protobuf/unittest_enum_multiplejava_nano.proto | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/google/protobuf/unittest_enum_multiplejava_nano.proto b/src/google/protobuf/unittest_enum_multiplejava_nano.proto index d2da6c6a..adf017d5 100644 --- a/src/google/protobuf/unittest_enum_multiplejava_nano.proto +++ b/src/google/protobuf/unittest_enum_multiplejava_nano.proto @@ -47,3 +47,7 @@ enum SecondTopLevelEnum { SECOND_TOP_LEVEL_SECOND = 2; } +message SomeMessage { + optional FirstTopLevelEnum first = 1; + optional SecondTopLevelEnum second = 2; +} |