<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xuwei</author_name>
  <author_url>https://blog.hatena.ne.jp/xuwei/</author_url>
  <blog_title>xuwei-k's blog</blog_title>
  <blog_url>https://xuwei-k.hatenablog.com/</blog_url>
  <categories>
    <anon>scala</anon>
  </categories>
  <description>Scalaのversionは2.10.4です。 とあるprivateなフィールドをobject内に定義 ライブラリをリリース それをpublicにしようとする mimaに怒られる（´・ω・｀） 実は内部的にはコンパニオン同士でアクセスするためのメソッドが自動生成されてるから、そのメソッドを消すことになりバイナリ互換が崩れる！！！ バイナリ互換のためには、privateではなくprivate[this]を使ったほうがいいのか？ という知見を得た。(またscalikejdbcやってる最中に) まぁ崩れるけど、その自動生成メソッドを(javaから？)無理やり呼び出したりしない限り大丈夫？なので、もう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuwei-k.hatenablog.com%2Fentry%2F20150303%2F1425377391&quot; title=&quot;Scalaのprivateとprivate[this]とバイナリ互換 - xuwei-k&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-03-03 19:09:51</published>
  <title>Scalaのprivateとprivate[this]とバイナリ互換</title>
  <type>rich</type>
  <url>https://xuwei-k.hatenablog.com/entry/20150303/1425377391</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
