groovy
  1. groovy
  2. GROOVY-6279

getCallerClass will be removed from JDK

    Details

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

      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

          Show
          CÚdric Champeau added a comment - PR: https://github.com/groovy/groovy-core/pull/224
          Hide
          blackdrag blackdrag 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
          blackdrag blackdrag 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

            People

            • Assignee:
              blackdrag blackdrag
              Reporter:
              CÚdric Champeau
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: