Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1835

Allow string coercion into classes

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1-rc-1
    • groovy-jdk
    • None

    Description

      Would be great if we could do:

      def clazz = "some.package.SomeClass" as Class

      instead of

      def clazz = Class.forName( "some.package.SomeClass")

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            graemerocher Graeme Rocher
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment