Status: New
Labels: Type-Defect Priority-Medium

New issue 244 by kentmchenry: Autogenerated Java code producing error: "Cannot invoke buildParsed() on the primitive type boolean"

What steps will reproduce the problem?
1. Create .proto file
2. Using command: protoc --proto_path=../src --java_out=../src/.../*.proto

What is the expected output? What do you see instead?
Auto generating Java code that doesn't compile.

What version of the product are you using? On what operating system?
Ubuntu 10.04 (up to date)
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) Server VM (build 14.1-b02, mixed mode)

Please provide any additional information below.
Was working before, recently updated Ubuntu and now it's now working.
Errors occurring in the following auto generated methods:

    public static <TYPE> parseDelimitedFrom( input)
        throws {
      return newBuilder().mergeDelimitedFrom(input).buildParsed();
    public static <TYPE> parseDelimitedFrom( input, extensionRegistry)
        throws {
      return newBuilder().mergeDelimitedFrom(input, extensionRegistry)

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to