<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    First they ignore you
    then they ridicule you
    then they fight you
    then you win
        -- Mahatma Gandhi
    Chinese => English     英文 => 中文             
    隨筆-221  評論-1047  文章-0  trackbacks-0
    Groovy的這次發布最引人注目的特性有:

    1. Groovy1.1RC1的性能又得到了進一步的提升,與前一個版本Groovy1.1beta3相比提升了15%~45%

    2. 語法更簡潔了:
    class?Person?{
    ????String?name
    }

    //?以前的版本:Person.metaClass.'static'.createPerson
    Person.metaClass.static.createPerson?=?{?name?->
    ????Person?person?
    =?new?Person()
    ????person.name?
    =?name
    ????
    return?person
    }

    def?person?
    =?Person.createPerson('Annie')
    println?person.name

    3. GroovySh的互動性更強,無需go就可以執行代碼
    C:\Documents?and?Settings\Daniel>groovy?-v
    Groovy?Version:?1.1-rc-1?JVM:?1.6.0_03-b05
    C:\Documents?and?Settings\Daniel>groovysh
    Groovy?Shell?(1.1-rc-1,?JVM:?1.6.0_03-b05)
    Type?'help'?or?'\h'?for?help.
    ----------------------------------------------------------------
    groovy:000>?name?=?"Daniel"
    ===>?Daniel
    groovy:000>?println?"Hello,?$name"
    Hello,?Daniel
    ===>?null
    groovy:000>


    4. GroovyConsole的輸出過濾了無用的異常信息
    將下面的代碼復制到GroovyConsole中,并執行
    class?Person?{
    ????String?name
    }
    //?注意Persn而非Person
    Person?person?=?new?Persn()

    提示信息為(大堆的異常信息被過濾了,僅保留了對開發人員有用的異常信息):
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script3: 5: unable to resolve class Persn
    ?@ line 5, column 17.
    1 error


    Groovy1.1RC1發布了,Groovy1.1Final還會遠嗎?

    Groovy1.1Final將于11月中旬發布,敬請期待!

    下載地址:http://dist.groovy.codehaus.org/distributions/groovy-binary-1.1-rc-1.zip

    附:朝花夕拾——Groovy & Grails



    Release Notes - groovy - Version 1.1-rc-1 - HTML format

    Sub-task

    • [GROOVY-1902] - add check for usage of generics only with generics enabled classes and with the correct number of parameters
    • [GROOVY-2151] - Filter stack traces in GroovyConsole

    Bug

    • [GROOVY-775] - MarkupBuilder works not the same as NodeBuilder
    • [GROOVY-1186] - NullpointerException occurs when unboxing boolean Java return type where no return value specified from Java interface implemented in Groovy
    • [GROOVY-1323] - Inline conditional List << not being executed fully.
    • [GROOVY-1440] - println /hello/ results in unexpected token exception
    • [GROOVY-1503] - SimpleTemplateEngine drops Windows new-line character (\r)
    • [GROOVY-1517] - DomToGroovy outputs builder code not compatible with MarkupBuilder
    • [GROOVY-1549] - Array equality is not treated same as List equality
    • [GROOVY-1738] - Color settings not saving
    • [GROOVY-1744] - Extreme performance problem when calling closures using 'shorthand' notation
    • [GROOVY-1776] - GroovyJ 0.1.9 corrupts compiler caches in IDEA Selena
    • [GROOVY-1860] - Problem calling override method with different return type.
    • [GROOVY-1863] - Groovy compiler executes code it is compiling
    • [GROOVY-1913] - Problem when running script that uses java covariants
    • [GROOVY-1962] - add a stream based class reader and an optional java5 module
    • [GROOVY-1978] - static imports not working with groovy classes
    • [GROOVY-1995] - minus(List self, Collection removeMe) throws IllegalStateException for dupplicate values
    • [GROOVY-2126] - ClassCastException when using java.util.prefs package
    • [GROOVY-2130] - Use of java iterators in for loop is syntax error
    • [GROOVY-2132] - Filter stacktraces in the new shell
    • [GROOVY-2133] - Static imports not working inside closures
    • [GROOVY-2135] - failed to reference an instance defined in enum class with the syntax like Planet.MERCURY
    • [GROOVY-2136] - Static import of properties and fields does not work
    • [GROOVY-2137] - Enum class does not load
    • [GROOVY-2139] - Can not init instances with super(...)
    • [GROOVY-2141] - ExpandoMetaClass has concurrency modification issues with multiple threads
    • [GROOVY-2150] - ClosureMetaClass regression (mapping of ArrayLIst to parameters)
    • [GROOVY-2152] - Stacktrace in the new shell
    • [GROOVY-2153] - BUG! exception in phase 'semantic analysis'
    • [GROOVY-2155] - Some additional static import regressions since beta-2
    • [GROOVY-2156] - Parameter annotations cannot be queried at runtime
    • [GROOVY-2157] - Elvis operator is evaluating the "true" expression twice
    • [GROOVY-2158] - Code crashing in new shell but not in old
    • [GROOVY-2159] - Stub generator does not generate stubs for Groovy sub classes
    • [GROOVY-2165] - GroovyClassLoader dead lock situation with multiple threads
    • [GROOVY-2166] - ExpandoMetaClass causes exceptions with multiple threads, need to sync on isInitialised()
    • [GROOVY-2167] - Occasional NPE with multiple threads with class caching mechanism
    • [GROOVY-2169] - NPE in GroovyScriptEngine
    • [GROOVY-2170] - Purge commands don't work anymore in the new shell
    • [GROOVY-2180] - LoaderConfiguration is broken for relative paths
    • [GROOVY-2181] - NPE generated groovydoc documentation
    • [GROOVY-2187] - GString as String[] returns a 1-element array with the whole text
    • [GROOVY-2188] - missing coercion for array
    • [GROOVY-2190] - check generics usage in class header
    • [GROOVY-2194] - The method primitiveArrayToList doesn't checks for nulls inside arrays causing NPE
    • [GROOVY-2198] - owner/delegatechain is broken for multiple delegates

    Improvement

    • [GROOVY-1314] - support covariant return types (& generics)
    • [GROOVY-1737] - Map unary negation operator to a method and be able to overload it via a Category
    • [GROOVY-1832] - XMLParser: remove method on NodeList returns true (success). But, Node is not removed.
    • [GROOVY-1835] - Allow string coercion into classes
    • [GROOVY-1977] - Allow static and default to be used as property names after the dereference operator
    • [GROOVY-1979] - SimpleTemplateEngine (and poentially other TemplateEngines) should allow caller to specify classloader
    • [GROOVY-1996] - Groovy-all pom.xml has dependency to an outdated version of Castor
    • [GROOVY-2053] - Re-write InteractiveShell (aka. groovysh) in Groovy
    • [GROOVY-2068] - Extract a FactoryBuilder from SwingBuilder
    • [GROOVY-2140] - Handle Null Attributes in MarkupBuilder
    • [GROOVY-2142] - Add new metaClass property to all objects to unify access to meta class across instances
    • [GROOVY-2162] - The unary negate "~" operator could work with any kind of object, not just numbers and strings
    • [GROOVY-2172] - Change the new groovysh IO debug/verbose/quiet to a single verbosity field
    • [GROOVY-2173] - Create a Main CLI class for the new groovysh, to free Groovysh from those details
    • [GROOVY-2179] - Make the *new* groovysh the default

    New Feature

    • [GROOVY-174] - Round Peg, Square Hole
    • [GROOVY-604] - Provide parsing errors and warnings
    • [GROOVY-605] - Automatic imports
    • [GROOVY-608] - Provide refactoring capabilities
    • [GROOVY-611] - Intention actions
    • [GROOVY-614] - Add an Outline/File structure pane
    • [GROOVY-1851] - Expose unary plus and unary minus operators as interceptable method calls: positive() and negative()
    • [GROOVY-1950] - Write an installer to automated Windows registry manipulation for configuring the native launcher
    • [GROOVY-2174] - Add commands to capture/manage a complete transcript of a groovysh session
    • [GROOVY-2175] - Add something like pythons {{sys.displayhook}} to the new groovysh
    • [GROOVY-2176] - Install SecurityManager for groovysh to prevent unwanted System.exit()

    posted on 2007-10-13 22:07 山風小子 閱讀(2070) 評論(3)  編輯  收藏 所屬分類: Groovy & Grails
    主站蜘蛛池模板: 日韩免费视频一区| 免费无码又黄又爽又刺激| 四虎免费久久影院| 亚洲欧美不卡高清在线| 1000部啪啪毛片免费看| 亚洲国产精品综合久久网各 | 无套内射无矿码免费看黄| 女性无套免费网站在线看| 色噜噜亚洲男人的天堂| 一个人免费观看www视频在线| 久久精品亚洲AV久久久无码| 美女视频黄的全免费视频| 亚洲videosbestsex日本| 成人毛片免费观看视频在线| 亚洲av无码偷拍在线观看| 日日夜夜精品免费视频| 一个人看的免费高清视频日本 | 免费又黄又硬又爽大片| 最好2018中文免费视频| 亚洲乱色熟女一区二区三区丝袜| 久久er国产精品免费观看2| 亚洲高清日韩精品第一区 | 在线视频免费国产成人| 特级毛片A级毛片100免费播放| 亚洲综合国产精品第一页| 免费观看成人久久网免费观看| 久久久无码精品亚洲日韩按摩 | 三年在线观看免费观看完整版中文| 精品亚洲永久免费精品| 亚洲高清免费在线观看| 亚洲丰满熟女一区二区哦| 国产亚洲情侣一区二区无| 一区二区三区福利视频免费观看| 亚洲人成在久久综合网站| 免费A级毛片无码A| 99精品视频在线免费观看| 九九精品国产亚洲AV日韩| 久久亚洲国产视频| 四虎影视在线永久免费观看| 美女视频黄的免费视频网页| 亚洲偷自拍另类图片二区|