Code Review 6992859: InetAddressCachePolicy.setIfNotSet() fails

2010-10-19 Thread Chris Hegarty

Alan, Michael,

While this is an internal API and not supported, there is certainly an 
issue in the implementation that crept in a while back. setIfNotSet is 
using cachePolicy while get() may not return this value (depending on 
whether there is a security manager installed, or if the policy has been 
set by a property).


This change simply sets the default policy during initialization and 
allows setIfNotSet to increase the caching time. There is no regression 
test since this is small implementation issue.


http://cr.openjdk.java.net/~chegar/6992859/webrev.00/webrev/

Thanks,
-Chris.


hg: jdk7/tl/jdk: 6992968: test/java/lang/management/MemoryMXBean/CollectionUsageThresholdConcMarkSweepGC.sh should not hang

2010-10-19 Thread mandy . chung
Changeset: 617ada000804
Author:mchung
Date:  2010-10-19 09:49 -0700
URL:   http://hg.openjdk.java.net/jdk7/tl/jdk/rev/617ada000804

6992968: 
test/java/lang/management/MemoryMXBean/CollectionUsageThresholdConcMarkSweepGC.sh
 should not hang
Reviewed-by: alanb, dholmes

! test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java
! 
test/java/lang/management/MemoryMXBean/CollectionUsageThresholdConcMarkSweepGC.sh



hg: jdk7/tl/jdk: 6992121: StringBuilder.ensureCapacity(int minCap) throws OutOfMemoryError with minCap=Integer.MIN_VALUE

2010-10-19 Thread mandy . chung
Changeset: c6320457db65
Author:mchung
Date:  2010-10-19 10:02 -0700
URL:   http://hg.openjdk.java.net/jdk7/tl/jdk/rev/c6320457db65

6992121: StringBuilder.ensureCapacity(int minCap) throws OutOfMemoryError with 
minCap=Integer.MIN_VALUE
Reviewed-by: dholmes, alanb

! src/share/classes/java/lang/AbstractStringBuilder.java
! src/share/classes/java/util/ArrayList.java
! src/share/classes/java/util/Vector.java
+ test/java/lang/StringBuilder/EnsureCapacity.java
+ test/java/util/ArrayList/EnsureCapacity.java



hg: jdk7/tl/langtools: 6987760: remove 308 support from JDK7

2010-10-19 Thread jonathan . gibbons
Changeset: 4851ff2ffc10
Author:jjg
Date:  2010-10-19 15:02 -0700
URL:   http://hg.openjdk.java.net/jdk7/tl/langtools/rev/4851ff2ffc10

6987760: remove 308 support from JDK7
Reviewed-by: darcy, mcimadamore

- src/share/classes/com/sun/source/tree/AnnotatedTypeTree.java
! src/share/classes/com/sun/source/tree/MethodTree.java
! src/share/classes/com/sun/source/tree/Tree.java
! src/share/classes/com/sun/source/tree/TreeVisitor.java
! src/share/classes/com/sun/source/tree/TypeParameterTree.java
- src/share/classes/com/sun/source/util/AbstractTypeProcessor.java
! src/share/classes/com/sun/source/util/SimpleTreeVisitor.java
! src/share/classes/com/sun/source/util/TreeScanner.java
! src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! 
src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
! src/share/classes/com/sun/tools/javac/tree/JCTree.java
! src/share/classes/com/sun/tools/javac/tree/TreeCopier.java
- test/tools/javac/T6985181.java
! test/tools/javac/annotations/6881115/T6881115.java
! test/tools/javac/annotations/6881115/T6881115.out
- test/tools/javac/diags/examples/TypeAnnotationsNotSupported.java
! test/tools/javac/processing/model/element/TestAnonClassNames.java
! test/tools/javac/tree/TreePosTest.java
- test/tools/javac/treeannotests/AnnoTreeTests.java
- test/tools/javac/typeAnnotations/6967002/T6967002.java
- test/tools/javac/typeAnnotations/6967002/T6967002.out
- test/tools/javac/typeAnnotations/InnerClass.java
- test/tools/javac/typeAnnotations/MultipleTargets.java
- test/tools/javac/typeAnnotations/TypeParameterTarget.java
- test/tools/javac/typeAnnotations/TypeUseTarget.java
- test/tools/javac/typeAnnotations/attribution/Scopes.java
- test/tools/javac/typeAnnotations/classfile/DeadCode.java
- test/tools/javac/typeAnnotations/failures/AnnotationVersion.java
- test/tools/javac/typeAnnotations/failures/AnnotationVersion.out
- test/tools/javac/typeAnnotations/failures/IncompleteArray.java
- test/tools/javac/typeAnnotations/failures/IncompleteArray.out
- test/tools/javac/typeAnnotations/failures/IncompleteVararg.java
- test/tools/javac/typeAnnotations/failures/IncompleteVararg.out
- test/tools/javac/typeAnnotations/failures/IndexArray.java
- test/tools/javac/typeAnnotations/failures/IndexArray.out
- test/tools/javac/typeAnnotations/failures/LintCast.java
- test/tools/javac/typeAnnotations/failures/LintCast.out
- test/tools/javac/typeAnnotations/failures/OldArray.java
- test/tools/javac/typeAnnotations/failures/Scopes.java
- test/tools/javac/typeAnnotations/failures/Scopes.out
- test/tools/javac/typeAnnotations/failures/StaticFields.java
- test/tools/javac/typeAnnotations/failures/StaticFields.out
- test/tools/javac/typeAnnotations/failures/StaticMethods.java
- test/tools/javac/typeAnnotations/failures/StaticMethods.out
- test/tools/javac/typeAnnotations/failures/VoidGenericMethod.java
- 
test/tools/javac/typeAnnotations/failures/common/arrayclass/DuplicateAnnotationValue.java
- 
test/tools/javac/typeAnnotations/failures/common/arrayclass/DuplicateAnnotationValue.out
- 
test/tools/javac/typeAnnotations/failures/common/arrayclass/DuplicateTypeAnnotation.java
- 
test/tools/javac/typeAnnotations/failures/common/arrayclass/DuplicateTypeAnnotation.out
- 
test/tools/javac/typeAnnotations/failures/common/arrayclass/InvalidLocation.java
- 
test/tools/javac/typeAnnotations/failures/common/arrayclass/InvalidLocation.out
- 
test/tools/javac/typeAnnotations/failures/common/arrayclass/MissingAnnotationValue.java
- 
test/tools/javac/typeAnnotations/failures/common/arrayclass/MissingAnnotationValue.out
- 
test/tools/javac/typeAnnotations/failures/common/arrays/DuplicateAnnotationValue.java
- 
test/tools/javac/typeAnnotations/failures/common/arrays/DuplicateAnnotationValue.out
- 
test/tools/javac/typeAnnotations/failures/common/arrays/DuplicateTypeAnnotation.java
- 
test/tools/javac/typeAnnotations/failures/common/arrays/DuplicateTypeAnnotation.out
- test/tools/javac/typeAnnotations/failures/common/arrays/InvalidLocation.java
- test/tools/javac/typeAnnotations/failures/common/arrays/InvalidLocation.out
- 
test/tools/javac/typeAnnotations/failures/common/arrays/MissingAnnotationValue.java
- 
test/tools/javac/typeAnnotations/failures/common/arrays/MissingAnnotationValue.out
- 
test/tools/javac/typeAnnotations/failures/common/innertypeparams/DuplicateAnnotationValue.java
- 
test/tools/javac/typeAnnotations/failures/common/innertypeparams/DuplicateAnnotationValue.out
- 
test/tools/javac/typeAnnotations/failures/common/innertypeparams/DuplicateTypeAnnotation.java
- 
test/tools/javac/typeAnnotations/failures/common/innertypeparams/DuplicateTypeAnnotation.out
- 
test/tools/javac/typeAnnotations/failures/common/innertypeparams/InvalidLocation.java
- 
test/tools/javac/typeAnnotations/failures/common/innertypeparams/InvalidLocation.out
- 
test/too