{"action":"opened","issue":{"url":"https://api.github.com/repos/akka/akka/issues/19085","labels_url":"https://api.github.com/repos/akka/akka/issues/19085/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/19085/comments","events_url":"https://api.github.com/repos/akka/akka/issues/19085/events","html_url":"https://github.com/akka/akka/issues/19085","id":120302346,"number":19085,"title":"Provide API for Java users to create ByteStringBuilders.","user":{"login":"jroper","id":105833,"avatar_url":"https://avatars.githubusercontent.com/u/105833?v=3","gravatar_id":"","url":"https://api.github.com/users/jroper","html_url":"https://github.com/jroper","followers_url":"https://api.github.com/users/jroper/followers","following_url":"https://api.github.com/users/jroper/following{/other_user}","gists_url":"https://api.github.com/users/jroper/gists{/gist_id}","starred_url":"https://api.github.com/users/jroper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jroper/subscriptions","organizations_url":"https://api.github.com/users/jroper/orgs","repos_url":"https://api.github.com/users/jroper/repos","events_url":"https://api.github.com/users/jroper/events{/privacy}","received_events_url":"https://api.github.com/users/jroper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-04T00:13:45Z","updated_at":"2015-12-04T00:13:45Z","closed_at":null,"body":"```java\r\nByteStringBuilder builder = ByteString.newBuilder();\r\n```\r\n\r\ndoesn't compile:\r\n\r\n```\r\n[error] /home/jroper/src/reactive-services-platform/jackson/src/main/java/com/typesafe/service/javadsl/jackson/JacksonExceptionSerializer.java:48: non-static method newBuilder() cannot be referenced from a static context\r\n[error] ByteString.newBuilder\r\n```\r\n\r\nbecause the `ByteString` class extends `scala.collection.generic.HasNewBuilder`, which already defines the `newBuilder` method, so the `newBuilder` on `ByteString$` can't be duplicated on the `ByteString` class as a static method.  So, currently the only way for Java users to create a `ByteStringBuilder` is on the `ByteString$` module instance:\r\n\r\n```java\r\nByteStringBuilder builder = ByteString$.MODULE$.newBuilder();\r\n```"}}