[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jfriends-ml 12334] Re: ズームイン Java(6/10) の予習について



  高橋(智)です。

"TAKAHASHI,Toru" wrote:
> 
> 高橋(徹)です。
> 
> >   次回のズームインJava(6/10)の予習についてです。
> >
> >   次回は
> >     6章 ネストクラス P135〜P154
snip
> ネストクラスについて、著者はとくに無名クラスの使用に否定的です。
> 僕個人はAWT/Swingのリスナーの実装には無名クラスが適していると
> 思っていますが、皆さんいかがでしょう?

  無名クラス、私も肯定的ですが、でも各種IDEやUMLツールなどとの連携を
考えると、無名クラスは避けたほうが無難な場合もあるかなぁ、と思ってお
ります。

  なお、Errataのページを見ますと、以下のような訂正が載っています。
  どのような理由から訂正したのだろうか? という疑問があります。
-------------------------------------------------------------------------------
(143) Last paragraph before Example 6-7
The text
Since the syntax of anonymous classes is not considered to be mainstream Java
syntax, anonymous classes are difficult to read and are often misunderstood.
Should read
Since the syntax of anonymous class declaration is so radically different from 
the normal Java syntax, anonymous classes are difficult to read and are often
misunderstood.
-------------------------------------------------------------------------------

-- 
高橋智宏