jinfeng_wang

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

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            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 閱讀(762) 評論(1)  編輯  收藏 所屬分類: java

          評論

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

          主站蜘蛛池模板: 即墨市| 大同市| 鄂州市| 申扎县| 甘肃省| 漳平市| 康乐县| 肥西县| 昌宁县| 广元市| 雅江县| 中阳县| 宽甸| 双柏县| 绥棱县| 玛纳斯县| 博罗县| 司法| 三门峡市| 阜城县| 黔西县| 西宁市| 昌江| 德清县| 萨嘎县| 新宾| 绥棱县| 抚远县| 舞钢市| 靖远县| 石景山区| 浦东新区| 含山县| 滦平县| 星座| 吴旗县| 洪雅县| 蓬莱市| 日照市| 五河县| 通渭县|