46 Commits

Author SHA1 Message Date
Joe Darcy
e751cc77ad 8017550: Fix doclint issues in java.lang and subpackages
Reviewed-by: alanb, chegar
2013-06-24 23:40:31 -07:00
Chris Hegarty
9735594f15 Merge 2013-06-18 09:39:25 +01:00
Aleksey Shipilev
9821ebcba7 8016236: Class.getGenericInterfaces performance improvement
Cache more reflective data and lookup results.

Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: alanb, plevart, psandoz, dl
2013-06-17 16:28:22 +04:00
Eric McCorkle
47556dfb0d 8016019: Remove setProtectionDomain0 and JVM_SetProtectionDomain in JDK
SetProtectionDomain0 and JVM_SetProtectionDomain are unused since at least 1.5.  This is the JDK side of a changeset to remove it.

Reviewed-by: alanb
2013-06-06 09:51:17 -04:00
Joel Borggrén-Franck
a638aed2e1 8011139: (reflect) Revise checking in getEnclosingClass
Reviewed-by: darcy, mchung, ahgross
2013-05-07 13:23:08 +02:00
Chris Hegarty
22126efe5a Merge 2013-06-10 10:38:33 +01:00
Mandy Chung
3a6de961eb 8011557: Improve reflection utility classes
Reviewed-by: ahgross, alanb
2013-04-17 15:04:59 -07:00
Joel Borggrén-Franck
a005174625 8007812: (reflect) Class.getEnclosingMethod problematic for some classes
Better checking in getEnclosing(Method|Constructor|Class)

Reviewed-by: darcy, ahgross, mchung
2013-04-19 14:40:31 +01:00
Mandy Chung
176ed8d94c 8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
Reviewed-by: jrose, alanb, twisti
2013-04-16 21:39:52 -07:00
Joe Darcy
2c7f3d292f 6298888: Add toGenericString to j.l.Class and getTypeName to j.l.reflect.Type
6992705: Include modifiers in Class.toGenericString()

Class.toGenericString and supporting changes; additional reviews by Peter Levart

Reviewed-by: alanb
2013-04-08 17:06:20 -07:00
Lana Steuck
31330fc47a Merge 2013-03-12 19:04:49 -07:00
Joe Darcy
bc576240bc 8009267: Restore isAnnotationPresent methods in public AnnotatedElement implementations
Reviewed-by: jjg
2013-03-04 19:42:56 -08:00
Edvard Wendelin
cbfc80d987 Merge 2013-02-19 21:48:01 +01:00
Joel Borggrén-Franck
e0eba88c1b 8007278: Rename j.l.r.AnnotatedElement.getAnnotations(Class) to getAnnotationsByType(Class)
Reviewed-by: darcy, abuckley
2013-02-13 10:36:36 +01:00
Joe Darcy
7c644b0a4b 8014836: Have GenericDeclaration extend AnnotatedElement
Reviewed-by: abuckley, jfranck
2013-05-22 20:03:45 -07:00
Edvard Wendelin
11036fb4d5 Merge 2013-02-05 15:35:35 +01:00
Joe Darcy
920d11993c 8007113: Upgrade AnnotatedElement.isAnnotionPresent to be a default method
Reviewed-by: chegar, jfranck
2013-02-04 17:56:29 -08:00
Joel Borggrén-Franck
34e1726860 8005712: Simplify support for repeating annotations in j.l.r.AnnotatedElement
8004919: AnnotationSupport uses possibly half-constructed AnnotationType instances

Implements the simplified semantics for repeating annotations and removes the incorrect obtaining of an AnnotationType

Reviewed-by: darcy, abuckley
2013-01-31 10:10:34 +01:00
Joel Borggrén-Franck
b29b479461 8004698: Implement Core Reflection for Type Annotations
Reviewed-by: darcy
2013-01-29 10:32:49 +01:00
Peter Levart
e912773451 8005232: (JEP-149) Class Instance size reduction
Moved the fields for cached reflection objects into a seperate ReflectionData object to reduce dynamic footprint.

Reviewed-by: dholmes, mchung, shade
2013-01-13 19:57:06 -05:00
Joe Darcy
059b2b67b3 8005097: Tie isSynthetic javadoc to the JLS
Reviewed-by: mduigou
2012-12-19 11:53:52 -08:00
Edvard Wendelin
f92370665e Merge 2013-02-03 23:25:38 +01:00
Joel Borggrén-Franck
36464f41e2 7154390: Add support for repeating annotations in j.l.r.AnnotatedElement
Reviewed-by: darcy
2012-11-28 09:21:37 -08:00
Mandy Chung
d3ccd20d1f 7197546: (proxy) Reflect about creating reflective proxies
Reviewed-by: alanb, jdn, jrose
2012-11-02 16:50:23 -07:00
Alan Bateman
430592a30e 7197491: update copyright year to match last edit in jdk8 jdk repository
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
Alan Bateman
9b8e06e699 8000269: Cleanup javadoc warnings
Reviewed-by: lancea, darcy, ulfzibis, iris, naoto, dholmes
2012-10-01 15:36:57 +01:00
Mandy Chung
9108824515 7193339: Prepare system classes be defined by a non-null module loader
Reviewed-by: alanb, dholmes, dsamersoff, sspitsyn, psandoz
2012-08-24 22:55:49 -07:00
John R Rose
cec41c4c9d 7030453: JSR 292 ClassValue.get method is too slow
Implement ClassValue cooperatively with Class like ThreadLocal with Thread.

Reviewed-by: twisti, mduigou
2012-01-18 17:34:32 -08:00
Omair Majid
d312aad0c1 7117612: Miscellaneous warnings in java.lang
Reviewed-by: smarks, dholmes, alanb, darcy
2011-12-08 13:48:54 -05:00
Martin Desruisseaux
f6f5a14a32 7110111: Minor Java SE javadoc & Constructor clean up
Reviewed-by: alanb, darcy
2011-11-10 11:41:27 -05:00
Sebastian Sickelmann
0a9fa0feb2 7084245: Update usages of InternalError to use exception chaining
To use new InternalError constructor with cause chainning

Reviewed-by: alanb, ksrini, xuelei, neugens
2011-08-30 11:53:11 -07:00
Joe Darcy
2aa1b6d565 6380161: (reflect) Exception from newInstance() not chained to cause
Reviewed-by: dholmes, lancea, forax
2011-08-08 09:07:43 -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
Lana Steuck
b99716e22a Merge 2011-04-17 16:19:29 -07:00
Jim Holmlund
bbf16c0b3a 7032960: API files in java.awt need to be updated for references to JVM Spec with editions/hyperlinks
7032965: API files in java.io need to updated for references to JVM Spec with editions/hyperlinks
7032958: API files in java.lang need to updated for references to JLS with editions/hyperlinks
7032961: API files in java.lang need to updated for references to JVM with editions/hyperlinks
7032976: API files in javax.lang need to be updated for references to JLS with editions/hyperlinks
7032959: API files in java.util need to updated for references to JLS with editions/hyperlinks
7032962: API files in java.util need to updated for references to JVM Spec with editions/hyperlinks
7032967: API files in java.security need to updated for references to JVM Spec with editions/hyperlinks
7032955: API files in java.math need to updated for references to JLS with editions/hyperlinks

Removed URLs and 'edition' references

Reviewed-by: darcy
2011-04-13 12:16:13 -07:00
Kelly O'Hair
d2b1e20c7d 7033660: Update copyright year to 2011 on any files changed in 2011
Reviewed-by: dholmes
2011-04-06 22:06:11 -07:00
Stuart Marks
6e7cb44eea 6880112: Project Coin: Port JDK core library code to use diamond operator
Reviewed-by: darcy, lancea, alanb, briangoetz, mduigou, mchung
2010-12-20 13:47:04 -08:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Joe Darcy
bd9e7da356 5062288: (reflect) Core reflection uses raw types when it could be using wildcards
Reviewed-by: alanb
2009-10-06 13:31:41 -07:00
Martin Buchholz
b5f1c84e3e 6881442: (reflect) Race condition in Class.getName()
Only read "name" field racily once

Reviewed-by: darcy
2009-09-12 15:30:13 -07:00
Joe Darcy
21aa3652d4 6857803: Missing links to exceptions in javadoc for Class.getGeneric{Superclass, Interfaces}
Reviewed-by: chegar
2009-07-07 16:12:34 -07:00
Valerie Peng
c10f593c2c 4735126: (cl) ClassLoader.loadClass locks all instances in chain when delegating
Added support for parallel-capable class loaders

Reviewed-by: alanb
2009-04-06 18:46:20 -07:00
Mandy Chung
37885fe5f8 6799230: Lazily load java.lang.annotation.Annotation class
Remove the static EMPTY_ANNOTATION_ARRAY field; add AnnotationParser.toArray method

Reviewed-by: darcy
2009-03-03 19:26:43 -08:00
Xiomara Jayasena
2617d1d179 6719955: Update copyright year
Update copyright year for files that have been modified in 2008

Reviewed-by: ohair, tbell
2008-07-02 12:55:45 -07:00
Martin Buchholz
4341094beb 6600143: Remove another 450 unnecessary casts
Reviewed-by: alanb, iris, lmalvent, bristor, peterjones, darcy, wetmore
2008-03-10 15:07:09 -07:00
J. Duke
319a3b9947 Initial load 2007-12-01 00:00:00 +00:00