Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-6
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None

      Description

      If you do a:

      println 3-'hello'

      you receive:
      Exception in thread "main" java.lang.StackOverflowError
      at java.lang.reflect.Method.copy(Method.java:138)
      at java.lang.reflect.ReflectAccess.copyMethod(ReflectAccess.java:118)
      at sun.reflect.ReflectionFactory.copyMethod(ReflectionFactory.java:282)
      at java.lang.Class.copyMethods(Class.java:2720)
      at java.lang.Class.getDeclaredMethods(Class.java:1763)
      at groovy.lang.Closure$1.run(Closure.java:90)
      at java.security.AccessController.doPrivileged(Native Method)
      at groovy.lang.Closure.<init>(Closure.java:88)
      at org.codehaus.groovy.runtime.MethodClosure.<init>(MethodClosure.java:22)
      at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:679)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:367)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:315)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:371)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:315)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:371)

      Well, no normal programmer would subtract a string from a number, but it can happen by mistake, and the stack does not show where it happened...

      Maybe there could help some little stack tuning or the like?

      Remo

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xeneric Remo Liechti
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: