Commit Graph

65 Commits

Author SHA1 Message Date
Peter Levart
589c46da46 8152115: (proxy) Examine performance of dynamic proxy creation
Redesign caching of dynamic Proxy classes

Reviewed-by: mchung
2016-04-11 10:55:03 +02:00
Chris Hegarty
ff2e79c118 Merge 2016-03-22 10:42:32 +00:00
Alan Bateman
db4d383614 8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282

Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Alexandr Scherbatiy <alexandr.scherbatiy@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Miroslav Kos <miroslav.kos@oracle.com>
Co-authored-by: Huaming Li <huaming.li@oracle.com>
Co-authored-by: Sean Mullan <sean.mullan@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Sergey Bylokhov <sergey.bylokhov@oracle.com>
Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com>
Co-authored-by: Volker Simonis <volker.simonis@gmail.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Stuart Marks <stuart.marks@oracle.com>
Co-authored-by: Semyon Sadetsky <semyon.sadetsky@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Co-authored-by: Vincent Ryan <vincent.x.ryan@oracle.com>
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Co-authored-by: Yuri Nesterenko <yuri.nesterenko@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Felix Yang <felix.yang@oracle.com>
Co-authored-by: Andrei Eremeev <andrei.eremeev@oracle.com>
Co-authored-by: Frank Yuan <frank.yuan@oracle.com>
Co-authored-by: Sergei Pikalev <sergei.pikalev@oracle.com>
Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com>
Co-authored-by: Tiantian Du <tiantian.du@oracle.com>
Co-authored-by: Sha Jiang <sha.jiang@oracle.com>
Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt
2016-03-17 19:04:16 +00:00
Chris Hegarty
6853999d56 8145416: Move sun.misc.ProxyGenerator to java.lang.reflect
Reviewed-by: alanb, mchung, rriggs
2015-12-16 08:42:00 +00:00
Martin Buchholz
a2f0fe3c94 8136583: Core libraries should use blessed modifier order
Run blessed-modifier-order script (see bug)

Reviewed-by: psandoz, chegar, alanb, plevart
2015-09-15 21:56:04 -07:00
Mandy Chung
8bc30fb3c8 8104574: Update tests to prepare for system class loader not be URLClassLoader
Reviewed-by: chegar
2015-07-15 12:10:03 +08:00
Mandy Chung
53a97cbeb3 8081347: Add @modules to jdk_core tests
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Reviewed-by: alanb, joehw, lancea
2015-05-28 10:54:48 -07:00
Mandy Chung
db4c181844 8072656: test/java/lang/reflect/Proxy/ClassRestrictions.java assumes app class loader be URLClassLoader
Reviewed-by: lancea, alanb
2015-02-18 18:14:41 -08:00
Alejandro Murillo
e70f855944 Merge 2014-11-13 16:11:01 -08:00
Eric McCorkle
935c33a50c 8062556: Add jdk tests for JDK-8058322 and JDK-8058313
Add tests for two hotspot reflection fixes.

Reviewed-by: dholmes
2014-11-10 15:06:13 -05:00
Eric McCorkle
1c54a00f75 8055063: Parameter#toString() fails w/ AIOOBE for ctr of inner class w/ generic type
Add getAllGenericParameters, which attempts to report generic parameters with synthetic parameters to the best extent possible with current classfile information.

Reviewed-by: jfranck
2014-11-10 11:23:23 -05:00
Martin Buchholz
84e99bc48e 8062771: Core reflection should use final fields whenever possible
Reviewed-by: psandoz, darcy
2014-11-06 13:18:44 -08:00
Andrej Golovnin
fe519e6845 5043030: (reflect) unnecessary object creation in reflection
Use valueOf() instead of new for primitive wrappers.

Reviewed-by: jfranck
2014-09-09 12:04:31 +02:00
Joel Borggrén-Franck
febacf5319 8054987: (reflect) Add sharing of annotations between instances of Executable
Reviewed-by: darcy, plevart
2014-09-09 10:48:01 +02:00
Ivan Gerasimov
6b6a37ee50 8051382: Optimize java.lang.reflect.Modifier.toString()
Reviewed-by: martin
2014-08-06 02:11:17 +04:00
Joel Borggrén-Franck
6445980a62 8029674: (reflect) getMethods returns default methods that are not members of the class
Filter out methods that have a more specific default method from result

Reviewed-by: darcy, dlsmith
2014-06-10 14:40:20 +02:00
Alexandre Iline
092e29980a 8039438: Some tests depend on internal API sun.misc.IOUtils
Remove dependency on sun.misc.IOUtils.readFully(InputStream, int, boolean)

Reviewed-by: alanb, mchung, chegar
2014-04-21 13:12:22 -07:00
Lana Steuck
657b9db1ba 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
Updated files with 2011, 2012 and 2013 years according to the file's last updated date

Reviewed-by: tbell, lancea, chegar
2013-12-26 12:04:16 -08:00
Joe Darcy
48ce9464b0 8031651: Remove unneeded -source and -target flags in jdk repo regression tests
Reviewed-by: dfuchs, mullan
2014-01-14 10:08:24 -08:00
Eric McCorkle
fadfc31bec 8026884: test for fix of JDK-8021398 does not have @bug tag
8028021: @since 1.8 missing for certain methods in java.lang.reflect.Method in generated api docs

Two documentation fixes

Reviewed-by: darcy
2013-11-13 15:48:21 -05:00
Andreas Lundblad
79b1f94594 8016725: TEST_BUG: java/lang/reflect/Method/DefaultMethodModeling.java failing intermittently
Moved DefaultMethodModeling.java to its own directory to avoid conflicts with Equals.java.

Reviewed-by: darcy
2013-11-04 15:21:47 +01:00
Joe Darcy
5f3b001859 8005294: Consider default methods for additions to AnnotatedElement
Reviewed-by: jfranck, plevart, mchung, abuckley, sogoel
2013-10-30 17:27:25 -07:00
Joel Borggrén-Franck
415ea4460a 8009411: (reflect) Class.getMethods should not include static methods from interfaces
Update getMethods() and getMethod() to filter out interface statics

Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: darcy
2013-10-22 10:34:12 +02:00
Karen Kinnear
1e73553e8c 8026213: Reflection support for private interface methods
Reviewed-by: forax, psandoz, dholmes, jfranck
2013-10-11 15:21:23 -07:00
Joel Borggrén-Franck
db556bacff 7044282: (reflect) Class.forName and Array.newInstance are inconsistent regarding multidimensional arrays
Reviewed-by: darcy, psandoz
2013-10-10 18:11:53 +02:00
Eric McCorkle
367fa5ac0e 8020981: Update methods of java.lang.reflect.Parameter to throw correct exceptions
Fix behavior of parameter reflection API for malformed class files.

Reviewed-by: darcy
2013-10-02 19:13:42 -04:00
Eric McCorkle
e92da66e0b 8021398: j.l.r.Parameter.getAnnotatedType().getType() for not annotated use of type returns null
Fixed issue with type annotation reflection framework that would cause getType of AnnotatedTypes to be null if no annotations were present.

Reviewed-by: darcy, jfranck
2013-10-01 17:35:32 -04:00
Paul Sandoz
0fb014c2b3 8023463: Improvements to HashMap/LinkedHashMap use of bins/buckets and trees (red/black)
8012913: LinkedHashMap key/value/entry spliterators should report ORDERED

Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: mduigou, forax, bchristi, alanb
2013-09-04 09:34:25 +02:00
Vicente Romero
d0479145f3 8015780: java/lang/reflect/Method/GenericStringTest.java failing
Reviewed-by: darcy, jfranck
2013-08-12 17:40:14 +01:00
Amy Lu
0f4a06a92a 7184826: (reflect) Add support for Project Lambda concepts in core reflection
Reviewed-by: darcy, jfranck
2013-08-06 18:54:02 +02:00
Eric McCorkle
a58f094d40 8016285: Add java.lang.reflect.Parameter.isNamePresent()
Add isNamePresent method to parameter reflection library, which indicates whether or real parameter data is available

Reviewed-by: darcy
2013-07-03 19:47:15 -04:00
Mandy Chung
a4a210dc69 4487672: (proxy) Proxy constructor should check for null argument
Reviewed-by: alanb, lancea
2013-05-16 15:08:24 -07:00
David Katleman
05f3d6ab4b 8012643: JDK8 b86 source with GPL header errors
Reviewed-by: dholmes, alanb
2013-04-23 18:25:52 -07:00
Lana Steuck
8afbe69644 Merge 2013-04-17 21:48:04 -07:00
David Katleman
24ec30a8e7 Merge 2013-04-16 15:00:19 -07:00
Mandy Chung
fa54d97a10 8004260: dynamic proxy class should have the same Java language access as the proxy interfaces
Reviewed-by: alanb, jrose, jdn
2013-04-17 12:04:15 -07:00
David Katleman
930dcf7d28 8012048: JDK8 b85 source with GPL header errors
Reviewed-by: iris, mduigou, jjg
2013-04-12 15:22:33 -07:00
Joe Darcy
76a59cf150 8011590: More tests for core reflection modeling of default methods
Reviewed-by: mduigou
2013-04-05 18:20:12 -07:00
Joe Darcy
fa0b9daa08 8004979: java.lang.reflect.Modifier.toString should include "default"
Reviewed-by: mduigou
2013-04-02 16:26:54 -07:00
Joe Darcy
bc576240bc 8009267: Restore isAnnotationPresent methods in public AnnotatedElement implementations
Reviewed-by: jjg
2013-03-04 19:42:56 -08:00
Eric McCorkle
78fe727c6d 8008312: Re-enable MethodParameter tests in JDK
Reviewed-by: darcy
2013-02-19 17:09:25 +00:00
Joe Darcy
757d9cdeb9 8007115: Refactor regression tests for java.lang.reflect.Parameter
Reviewed-by: emc
2013-01-31 12:23:04 -08:00
Rob McKenna
6c5679d418 8004729: Add java.lang.reflect.Parameter and related changes for parameter reflection
Reviewed-by: darcy, forax, psandoz, dholmes, tbell
2013-01-23 17:54:34 +00:00
Joe Darcy
407aefdc02 8005042: Add Method.isDefault to core reflection
Reviewed-by: alanb, forax, mduigou, jgish, mchung
2012-12-18 14:44:13 -08:00
Alexey Utkin
c5c34df7bf 8004928: TEST_BUG: Reduce dependence of CoreLib tests from the AWT subsystem
The tests were refactored to drop AWT dependence where it was possible.

Reviewed-by: alanb, mchung
2012-12-17 14:34:37 +04:00
Joe Darcy
a1f5f73508 7086192: (reflect) Have TypeVariable extend AnnotatedElement
Reviewed-by: mcimadamore
2011-09-06 21:19:31 -07:00
Joe Darcy
d0bd4f51ce 6476261: (reflect) GenericSignatureFormatError When signature includes nested inner classes
6832374: (reflect) malformed signature can cause parser to go into infinite loop
7052898: (reflect) SignatureParser will accept strings outside of the grammar

Various signature parsing fixes; additional review by sonali.goel@oracle.com

Reviewed-by: alanb
2011-08-22 17:12:48 -07:00
Mike Duigou
80af4650a8 7073296: Executable.equalParamTypes() incorrectly returns true when the number of params differs
Reviewed-by: alanb, darcy
2011-08-04 08:53:16 -07:00
Mike Duigou
d845140f33 7035160: Disable broken test cases for test/java/lang/reflect/Generics/Probe.java
Reviewed-by: alanb
2011-04-18 11:31:38 -07:00
Kelly O'Hair
7c8e01891a Merge 2011-04-13 16:56:16 -07:00