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  回復  更多評論
            

          主站蜘蛛池模板: 灌云县| 偏关县| 洪泽县| 边坝县| 万山特区| 黄浦区| 梁平县| 略阳县| 应用必备| 石楼县| 凌海市| 辉县市| 屯昌县| 浏阳市| 宁安市| 鄂托克前旗| 江川县| 诸城市| 长泰县| 石林| 广宁县| 汝南县| 商都县| 新龙县| 遂昌县| 夏河县| 息烽县| 孟连| 云南省| 安达市| 城口县| 堆龙德庆县| 凤山县| 乌审旗| 新沂市| 灵璧县| 大余县| 望城县| 武穴市| 新干县| 涟水县|