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

unary minus exception

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-3
    • None
    • None

    Description

      groovy> a = 1
      groovy> b = -a
      groovy>
      Exception in thread "main" java.lang.VerifyError: (class:
      CommandLine1, method: run signature: ()Ljava/lang/Object
      Incompatible argument to function
      at java.lang.Class.getDeclaredConstructors0(Native
      Method)
      at
      java.lang.Class.privateGetDeclaredConstructors(Class.java:16
      10)
      at java.lang.Class.getConstructor0(Class.java:1922)
      at java.lang.Class.newInstance0(Class.java:278)
      at java.lang.Class.newInstance(Class.java:261)
      at
      org.codehaus.groovy.runtime.InvokerHelper.createScript(Invok
      erHelper.java:296)
      at
      groovy.lang.GroovyShell.evaluate(GroovyShell.java:235)
      at
      groovy.lang.GroovyShell.evaluate(GroovyShell.java:215)
      at
      groovy.ui.InteractiveShell.run(InteractiveShell.java:100)
      at
      groovy.ui.InteractiveShell.main(InteractiveShell.java:71)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
      ssorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
      thodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at
      org.codehaus.classworlds.Launcher.launchStandard(Launcher.ja
      va:410)
      at
      org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
      at
      org.codehaus.classworlds.Launcher.main(Launcher.java:474)

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment