Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29862

ClassFormatError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • job-dsl-plugin
    • None

      The following DSL worked in 1.35 but fails in 1.36.

      def createListView(context) {
          context.with {
            // ...   
          }
      }
      
      nestedView('Overview') {
        views {
      	createListView delegate
        }
      }
      
      createListView this
      

      java.lang.ClassFormatError: Illegal class name "DSL script$createListView" in class file DSL script$createListView
      at DSL script.run(DSL script:13)
      at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:80)
      at javaposse.jobdsl.dsl.DslScriptLoader$runDslEngineForParent.call(Unknown Source)

            daspilker Daniel Spilker
            mattsheehan Matt Sheehan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: