jinfeng_wang

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

          BlogJava 首頁(yè) 新隨筆 聯(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 閱讀(762) 評(píng)論(1)  編輯  收藏 所屬分類: java

          評(píng)論

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

          主站蜘蛛池模板: 娱乐| 阿鲁科尔沁旗| 铁力市| 万安县| 乳源| 法库县| 荥阳市| 浦北县| 美姑县| 通许县| 林甸县| 齐齐哈尔市| 罗定市| 文山县| 吴桥县| 东海县| 达日县| 德庆县| 石狮市| 永登县| 宁都县| 离岛区| 南陵县| 镇安县| 和林格尔县| 蓝田县| 桦川县| 武鸣县| 丹棱县| 中山市| 汉沽区| 廊坊市| 青浦区| 兴隆县| 巴彦淖尔市| 临沂市| 壶关县| 绥棱县| 南华县| 兴仁县| 桃江县|