Groovy
  1. Groovy
  2. GROOVY-6279

getCallerClass will be removed from JDK

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      There are three things:
      1. a bug in JDK 7u25, that's http://bugs.sun.com/view_bug.do?bug_id=8016814
      2. the fact that starting from 7u40, getCallerClass(int) throws an exception unless you run with a special JVM flag (that's http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8014925)
      3. the fact that getCallerClass(int) will be definitely removed in JDK8 and no suitable long term replacement exists (that's http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8020785)

      So starting from Java 7u40, Grapes will be broken for people not using the new JVM flag (everybody).

        Issue Links

          Activity

          Cédric Champeau created issue -
          Show
          Cédric Champeau added a comment - PR: https://github.com/groovy/groovy-core/pull/224
          Pascal Schumacher made changes -
          Field Original Value New Value
          Link This issue is related to GROOVY-6156 [ GROOVY-6156 ]
          Pascal Schumacher made changes -
          Link This issue is related to GROOVY-6246 [ GROOVY-6246 ]
          Hide
          Jochen Theodorou added a comment -

          since they decided to enable this again, anything beyond 7u40 should work. jdk8 is a different beast though, so I think we keep GROOVY-6156 open for this

          Show
          Jochen Theodorou added a comment - since they decided to enable this again, anything beyond 7u40 should work. jdk8 is a different beast though, so I think we keep GROOVY-6156 open for this
          Jochen Theodorou made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          Assignee Cedric Champeau [ melix ] blackdrag blackdrag [ blackdrag ]
          Paul King made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Mark Thomas made changes -
          Workflow jira [ 12735190 ] Default workflow, editable Closed status [ 12746931 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12972707 ] Default workflow, editable Closed status [ 12980458 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          54d 16h 18m 1 Jochen Theodorou 18/Sep/13 03:21
          Resolved Resolved Closed Closed
          26d 13h 29m 1 Paul King 14/Oct/13 16:51

            People

            • Assignee:
              Jochen Theodorou
              Reporter:
              Cédric Champeau
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development