Status: New
Owner: ken...@google.com
Labels: Type-Defect Priority-Medium

New issue 244 by kentmchenry: Autogenerated Java code producing error: "Cannot invoke buildParsed() on the primitive type boolean"
http://code.google.com/p/protobuf/issues/detail?id=244

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(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeDelimitedFrom(input).buildParsed();
    }
and
    public static <TYPE> parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeDelimitedFrom(input, extensionRegistry)
               .buildParsed();
    }

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to