jinfeng_wang

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

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks

          公告

          歡迎交流鏈接,給我留言

          常用鏈接

          留言簿(40)

          隨筆分類(592)

          隨筆檔案(400)

          Domestic

          Foreign

          搜索

          積分與排名

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          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) 評(píng)論(1)  編輯  收藏 所屬分類: java

          評(píng)論

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

          主站蜘蛛池模板: 阿克苏市| 铜梁县| 腾冲县| 泰兴市| 临邑县| 建宁县| 独山县| 盱眙县| 任丘市| 谢通门县| 乳山市| 黄大仙区| 安庆市| 清徐县| 大埔县| 亚东县| 尉犁县| 常宁市| 红原县| 田林县| 社旗县| 佳木斯市| 巴南区| 河南省| 湘西| 大足县| 科技| 谢通门县| 梨树县| 安西县| 漳平市| 华坪县| 读书| 泗水县| 克拉玛依市| 襄垣县| 屏南县| 沅江市| 翁源县| 县级市| 宁晋县|