Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4236)

Issue 99043: Fix compile error due to string literal overflow on large proto files.

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 8 months ago by kenton
Modified:
14 years, 8 months ago
Reviewers:
eric.perie
CC:
protobuf_googlegroups.com
Base URL:
http://protobuf.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Hi Eric, I decided to do this patch a little differently -- in particular, I moved the actual string concatenation to occur in Descriptors.java rather than in generated code. I also added a test. At Google we have a policy of reviewing all changes before submission, so can you take a look and tell me if this code looks good to you?

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1078 lines, -5 lines) Patch
M java/pom.xml View 1 chunk +1 line, -0 lines 0 comments Download
M java/src/main/java/com/google/protobuf/Descriptors.java View 2 chunks +10 lines, -2 lines 0 comments Download
M java/src/test/java/com/google/protobuf/DescriptorsTest.java View 1 chunk +8 lines, -0 lines 0 comments Download
M src/Makefile.am View 2 chunks +3 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/java/java_file.cc View 1 chunk +11 lines, -3 lines 0 comments Download
A src/google/protobuf/unittest_enormous_descriptor.proto View 1 chunk +1045 lines, -0 lines 0 comments Download

Messages

Total messages: 2
kenton
14 years, 8 months ago (2009-08-03 22:53:24 UTC) #1
eric.perie
14 years, 8 months ago (2009-08-17 18:40:36 UTC) #2
On 2009/08/03 22:53:24, kenton wrote:
> 
Hello Kenton, I am back from vacation, and applied your patch to
protobuf 2.10.

I got the following compilation error:

internalBuildGeneratedFileFrom(java.lang.String,com.google.protobuf.Descriptors.FileDescriptor[],com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner)
in com.google.protobuf.Descriptors.FileDescriptor cannot be applied to
(java.lang.String[],com.google.protobuf.Descriptors.FileDescriptor[],com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner)
      .internalBuildGeneratedFileFrom(descriptorData,
      ^
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b