addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditemptyheartfacebookfolderfullheartglobegmailgoogleimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartrashtriangle-downtriangle-uptwitteruseryahoo

Fwd: [jug-leaders] Internal Reflection API Changes

From: Martijn V.
Sent on: Tuesday, July 2, 2013 3:08 PM
Hopefully not too many of you are using the sun.reflect.Reflection.getCallerClass(int) method, but if you are, then you'll need to make a shift away from it.

Details below.

Cheers,
Martijn


---------- Forwarded message ----------
From: Dalibor Topic <[address removed]>
Date: 2 July[masked]:53
Subject: [jug-leaders] Internal Reflection API Changes
To: jug-leaders <[address removed]>, [address removed]


Summary: The Oracle JDK internal method sun.reflect.Reflection.getCallerClass(int) is planned to be disabled in Oracle JDK 7u40. It is considered for removal in a later 7 update release.

Hi JUG Leaders & Java Champions,

As you may be aware, the Oracle JDK internal sun.reflect.Reflection.getCallerClass(int) method has been removed from JDK 8. [1]
The method is also planned [2] to be disabled in the 7u40 release. A call to the method would then trigger an UnsupportedOperationException.

Developers should not be using this, or any other methods in the sun.* namespace directly. The sun.* namespace is not a supported public interface [3]. Since this method is considered for removal in a future JDK 7 update release, existing code depending on it needs to be updated. Oracle provides regularly updated Early Access builds of Oracle JDK 7u40 for testing on the http://jdk7.java.net web site. [4]

For developers who currently depend on this internal functionality, in Oracle JDK 7u40, and in no less than the following two CPU releases of JDK 7, the JVM provides a  command line switch that can be used to re-enable this method. The command line switch is:

-Djdk.reflect.allowGetCallerClass

This change will be tracked by '[masked]: Disable sun.reflect.Reflection.getCallerClass(int) with a temporary switch to re-enable it'. [5]

cheers,
dalibor topic

[1] http://openjdk.java.net/jeps/176
[2] http://mail.openjdk.java.net/pipermail/jdk7u-dev/2013-June/006842.html
[2] http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html
[4] https://jdk7.java.net/download.html
[5] http://bugs.sun.com/view_bug.do?bug_id=8014925

--
Oracle <http://www.oracle.com>
Dalibor Topic | Principal Product Manager
Phone: [masked] <tel:[masked]> | Mobile: [masked] <tel:[masked]>
Oracle Java Platform Group

ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603
Geschäftsführer: Jürgen Kunz

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. [masked]
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher

Green Oracle <http://www.oracle.com/commitment> Oracle is committed to developing practices and products that help protect the environment

Our Sponsors

  • Our Blog

    Read the latest news from the LJC

  • RecWorks Ltd

    Fixing Tech Recruitment using the Power of Community

  • jClarity

    Java/JVM Performance Analysis Tools & mentoring for Java related matters

  • LJC Aggrity

    Our LJC Aggrity site contains blog posts from our members

  • LJC Book Club

    Our Book club with book reviews from our members

  • Devoxx UK

    Java Community Conference in collaboration with the LJC, 8-10th June 16

  • SkillsMatter

    "Host, help organise, promote, film many of our meetings."

  • IBM

    Build Enterprise-grade apps at start-up speed.

  • New Relic

    New Relic makes sense of billions of metrics a day in real time.

  • Hazelcast

    Hazelcast is the leader in operating in-memory computing.

  • Java.Net

    We are an official Java User Group recognised by Oracle's JUG program

  • JRebel

    Free 3 month J-Rebel license.

  • O'Reilly

    40% discount on printed books and 50% on e-books.

  • Craft Rebellion

    Your choice of fresh craft beer, delivered. For 10% off use ‘LJC'

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy