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

TypeChecked: NoSuchMethodError: DefaultGroovyMethods.plus(java.lang.String, java.lang.Object)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.5
    • 3.0.8, 4.0.0-alpha-3
    • None
    • None

    Description

      Looking for advice around resolving a problem after upgrading Groovy from 2.5.9 to 3.0.5. 

      Most of the @TypeChecked scripts start hitting NoSuchMethodError when concatenating two strings ("a" + "b"), which is resolved if @TypeChecked is removed... The removed method's deprecation java doc (in 2.4.7) says to "Use the CharSequence version"...

      java.lang.NoSuchMethodError: 'java.lang.String org.codehaus.groovy.runtime.DefaultGroovyMethods.plus(java.lang.String, java.lang.Object)

      May be I am missing something.. any advice will be appreciated...

      Attachments

        Activity

          People

            emilles Eric Milles
            rivanov Radoslav Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h