Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 214 by eugene.vigdorchik: Incorrect generic type parameters in
java runtime
http://code.google.com/p/protobuf/issues/detail?id=214
What steps will reproduce the problem?
See .../GeneratedMessage.java:13
public abstract static class Builder <BuilderType extends Builder>
This places a raw Builder bound on the BuilderType type parameter,
preventing the use of java runtime from Scala that has a stricter type
system.
Please provide any additional information below.
I would expect here
public abstract static class Builder <BuilderType extends
Builder<BuilderType>>
and also the same idiom applied to some other places. (at least
GeneratedMessage.java:558 needs correction to ensure compilability)
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.