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 閱讀(764) 評論(1)  編輯  收藏 所屬分類: java

          評論

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

          主站蜘蛛池模板: 公主岭市| 邵阳市| 屯留县| 安远县| 萝北县| 宝山区| 吴川市| 怀仁县| 微山县| 陆河县| 田东县| 湘潭县| 福海县| 晋中市| 饶阳县| 东城区| 景泰县| 西盟| 合阳县| 安宁市| 广丰县| 桦川县| 彰化市| 尼木县| 西峡县| 自贡市| 射阳县| 康马县| 石城县| 普定县| 鸡东县| 余庆县| 大名县| 揭西县| 宜兰市| 胶南市| 郁南县| 石渠县| 大方县| 伊宁市| 保德县|