jinfeng_wang

          G-G-S,D-D-U!

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
          http://java.sun.com/j2se/1.4/compatibility.html


          The compiler now rejects import statements that import a type from the unnamed namespace. Previous versions of the compiler would accept such import declarations, even though they were arguably not allowed by the language (because the type name appearing in the import clause is not in scope). The specification is being clarified to state clearly that you cannot have a simple name in an import statement, nor can you import from the unnamed namespace.

          To summarize, the syntax

          import SimpleName;

          is no longer legal. Nor is the syntax
          import ClassInUnnamedNamespace.Nested;

          which would import a nested class from the unnamed namespace. To fix such problems in your code, move all of the classes from the unnamed namespace into a named namespace.
          posted on 2008-01-25 11:52 jinfeng_wang 閱讀(763) 評論(1)  編輯  收藏 所屬分類: java

          評論

          # re: fuck u to death ---無法使用 "default package" 類 2010-09-29 19:10 jpj
          kkkkkkkkkkkllllllllllllhhhhhhhhhhhhhooooooooo  回復(fù)  更多評論
            

          主站蜘蛛池模板: 齐齐哈尔市| 杭锦后旗| 汽车| 明星| 大城县| 比如县| 嘉荫县| 巢湖市| 渝北区| 深水埗区| 兴安盟| 新干县| 改则县| 太保市| 容城县| 疏附县| 东光县| 济宁市| 新野县| 新郑市| 旌德县| 苏尼特右旗| 望奎县| 宽甸| 夹江县| 资源县| 德安县| 金寨县| 哈密市| 米林县| 东至县| 瓮安县| 磐安县| 福泉市| 文安县| 惠安县| 济阳县| 金阳县| 晴隆县| 普洱| 奇台县|