hg: jdk8/tl/jdk: 17 new changesets

2012-04-10 Thread lana . steuck
Changeset: 93ca9cbc8940
Author:katleman
Date:  2012-04-05 13:05 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/93ca9cbc8940

Added tag jdk8-b33 for changeset 78cea258caab

! .hgtags

Changeset: 100b6c2f75ba
Author:rupashka
Date:  2012-03-22 17:10 +0200
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/100b6c2f75ba

6888634: test/closed/javax/swing/Popup/TaskbarPositionTest.java fails
Reviewed-by: alexp

! src/share/classes/javax/swing/JPopupMenu.java

Changeset: 1dd6fe680681
Author:rupashka
Date:  2012-03-23 15:16 +0200
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1dd6fe680681

4310381: Text in multi-row/col JTabbedPane tabs can be truncated/clipped
Reviewed-by: rupashka
Contributed-by: Charles Lee 

! src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java
+ test/javax/swing/JTabbedPane/4310381/bug4310381.html
+ test/javax/swing/JTabbedPane/4310381/bug4310381.java

Changeset: 9923c60c26b7
Author:anthony
Date:  2012-03-27 15:41 +0400
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/9923c60c26b7

7150516: [macosx] appletviewer shouldn'tlink against libX11 on the Mac
Summary: Don't link against libX11 on the Mac
Reviewed-by: art

! make/launchers/Makefile.launcher

Changeset: 4008c98ad48a
Author:anthony
Date:  2012-03-27 15:49 +0400
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4008c98ad48a

7149085: [macosx] Quit with QuitStrategy CLOSE_ALL_WINDOWS does terminate 
application
Summary: Don't force the termination of the event loop in the Quit action 
handler
Reviewed-by: art

! src/macosx/classes/com/apple/eawt/_AppEventHandler.java

Changeset: 3d5e83373a39
Author:anthony
Date:  2012-03-27 15:53 +0400
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3d5e83373a39

7132692: [macosx] Class com.apple.eawt not functioning
Summary: Postpone setting the application delegate until the app is fully 
initialized
Reviewed-by: art

! src/macosx/native/sun/awt/awt.m

Changeset: 74a1284ca75a
Author:serb
Date:  2012-03-29 17:31 +0400
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/74a1284ca75a

7124551: [macosx] Once added, Menu shortcut cannot be removed
Reviewed-by: art, anthony

! src/macosx/native/sun/awt/CMenuItem.m

Changeset: f84f86c5253e
Author:anthony
Date:  2012-03-30 18:10 +0400
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f84f86c5253e

7124428: [macosx] Frame.setExtendedState() doesn't work for undecorated windows
Summary: Emulate native NSWindow -zoom for undecorated windows
Reviewed-by: art

! src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java

Changeset: 96340349e35b
Author:zhouyx
Date:  2012-03-31 16:55 +0800
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/96340349e35b

7155298: Editable TextArea/TextField are blocking GUI applications from exit
Summary: Stop default caret's timer by setVisible(false) when dispose
Reviewed-by: anthony, ant

! src/solaris/classes/sun/awt/X11/XTextAreaPeer.java
! src/solaris/classes/sun/awt/X11/XTextFieldPeer.java
+ test/java/awt/TextArea/DisposeTest/TestDispose.java
+ test/java/awt/TextField/DisposeTest/TestDispose.java

Changeset: 121e6b435762
Author:anthony
Date:  2012-04-03 16:14 +0400
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/121e6b435762

7154177: [macosx] An invisible owner frame becomes visible upon clicking a 
child window
Summary: Establish the parent-child relationship for visible windows only
Reviewed-by: serb

! src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
+ test/java/awt/Frame/InvisibleOwner/InvisibleOwner.java

Changeset: cbf39e7a7535
Author:alexsch
Date:  2012-04-04 16:27 +0400
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/cbf39e7a7535

7093156: NLS Please change the mnemonic assignment system to avoid translation 
issue (Swing files)
Reviewed-by: rupashka

! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_de.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_es.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_fr.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_it.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_ja.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_ko.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_pt_BR.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_sv.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_zh_CN.properties
! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_zh_TW.properties
! src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic.properties
! 
src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_de.properties
! 
src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_es.properties
! 
src/share/classes/com/sun/swi

hg: jdk8/tl/hotspot: 18 new changesets

2012-04-10 Thread lana . steuck
Changeset: bc8881f974b8
Author:jcoomes
Date:  2012-03-23 22:34 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/bc8881f974b8

7156659: new hotspot build - hs24-b06
Reviewed-by: johnc

! make/hotspot_version

Changeset: 1139f6b1cbd4
Author:jcoomes
Date:  2012-03-20 19:36 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/1139f6b1cbd4

7154724: jdk7u4 test properties missing from jprt.properties
Reviewed-by: brutisso

! make/jprt.properties

Changeset: 0e9e3cecdc81
Author:mgerdin
Date:  2012-03-21 08:34 +0100
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/0e9e3cecdc81

7152791: wbapi tests fail on cygwin
Summary: Detect cygwin prescence when setting up PLATFORM. Translate cygwin 
style paths before passing them on to jtreg.
Reviewed-by: jcoomes, brutisso

! test/Makefile

Changeset: 8a729074feae
Author:nloodin
Date:  2012-03-16 16:14 +0100
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/8a729074feae

7154517: Build error in hotspot-gc without precompiled headers
Reviewed-by: jcoomes, brutisso

! src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp

Changeset: 64bf7c8270cb
Author:johnc
Date:  2012-03-12 14:59 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/64bf7c8270cb

7147724: G1: hang in SurrogateLockerThread::manipulatePLL
Summary: Attempting to initiate a marking cycle when allocating a humongous 
object can, if a marking cycle is successfully initiated by another thread, 
result in the allocating thread spinning until the marking cycle is complete. 
Eliminate a deadlock between the main ConcurrentMarkThread, the SurrogateLocker 
thread, the VM thread, and a mutator thread waiting on the 
SecondaryFreeList_lock (while free regions are going to become available) by 
not manipulating the pending list lock during the prologue and epilogue of the 
cleanup pause.
Reviewed-by: brutisso, jcoomes, tonyp

! src/share/vm/gc_implementation/g1/concurrentMarkThread.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/vm_operations_g1.cpp
! src/share/vm/gc_implementation/g1/vm_operations_g1.hpp

Changeset: 21595f05bc93
Author:tonyp
Date:  2012-03-23 10:53 -0400
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/21595f05bc93

7146246: G1: expose some of the -XX flags that drive which old regions to 
collect during mixed GCs
Summary: Make two G1 cmd line flags available in product builds: 
G1HeapWastePercent (previously called: G1OldReclaimableThresholdPercent) and 
G1MixedGCCountTarget (previous called: G1MaxMixedGCNum). Also changed the 
default of the former from 1% to 5% and the default for 
G1OldCSetRegionLiveThresholdPercent to 90%.
Reviewed-by: azeemj, jwilhelm, johnc

! src/share/vm/gc_implementation/g1/collectionSetChooser.cpp
! src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
! src/share/vm/gc_implementation/g1/g1_globals.hpp

Changeset: cc74fa5a91a9
Author:brutisso
Date:  2012-03-23 15:28 +0100
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/cc74fa5a91a9

7103665: HeapWord*ParallelScavengeHeap::failed_mem_allocate(unsigned 
long,bool)+0x97
Summary: Make sure that MutableNUMASpace::ensure_parsability() only calls 
CollectedHeap::fill_with_object() with valid sizes and make sure 
CollectedHeap::filler_array_max_size() returns a value that can be converted to 
an int without overflow
Reviewed-by: azeemj, jmasa, iveresov

! src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp
! src/share/vm/gc_interface/collectedHeap.cpp
! src/share/vm/gc_interface/collectedHeap.hpp

Changeset: 0c49af52ff2c
Author:jwilhelm
Date:  2012-03-26 13:22 +0200
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/0c49af52ff2c

Merge


Changeset: f7c4174b33ba
Author:jiangli
Date:  2012-03-13 13:50 -0400
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/f7c4174b33ba

7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into 
the _inner_class field.
Summary: Fold instanceKlass::_enclosing_method_class_index and 
instanceKlass::_enclosing_method_method_index into the 
instanceKlass::_inner_classes array.
Reviewed-by: never, coleenp
Contributed-by: Jiangli Zhou 

! agent/src/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java
! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/classFileParser.hpp
! src/share/vm/memory/dump.cpp
! src/share/vm/oops/instanceKlass.cpp
! src/share/vm/oops/instanceKlass.hpp
! src/share/vm/oops/instanceKlassKlass.cpp
! src/share/vm/prims/jvm.cpp
! src/share/vm/prims/jvmtiClassFileReconstituter.cpp
! src/share/vm/prims/jvmtiRedefineClasses.cpp
! src/share/vm/runtime/reflection.cpp

Changeset: 21b94feb697c
Author:collins
Date:  2012-03-13 15:37 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/21b94feb697c

Merge


Changeset: 6522ad563f99
Author:dlong
Date:  2012-03-17 17:31 -0400
URL:   http://hg.ope

hg: jdk8/tl/jaxws: Added tag jdk8-b33 for changeset ea80b2388dce

2012-04-10 Thread lana . steuck
Changeset: b3cad5619239
Author:katleman
Date:  2012-04-05 13:04 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/jaxws/rev/b3cad5619239

Added tag jdk8-b33 for changeset ea80b2388dce

! .hgtags



hg: jdk8/tl/jaxp: Added tag jdk8-b33 for changeset 9bcab2b8b8ea

2012-04-10 Thread lana . steuck
Changeset: 19d53d500474
Author:katleman
Date:  2012-04-05 13:04 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/19d53d500474

Added tag jdk8-b33 for changeset 9bcab2b8b8ea

! .hgtags



hg: jdk8/tl/langtools: 3 new changesets

2012-04-10 Thread lana . steuck
Changeset: e4241f09e2b6
Author:katleman
Date:  2012-04-05 13:05 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/langtools/rev/e4241f09e2b6

Added tag jdk8-b33 for changeset 46831c72b7f6

! .hgtags

Changeset: 517f0789bd4e
Author:lana
Date:  2012-04-09 21:58 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/langtools/rev/517f0789bd4e

Merge


Changeset: c35b158e2290
Author:lana
Date:  2012-04-10 23:19 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/langtools/rev/c35b158e2290

Merge




hg: jdk8/tl: 2 new changesets

2012-04-10 Thread lana . steuck
Changeset: 06ef0b4daa4c
Author:katleman
Date:  2012-04-05 13:04 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/rev/06ef0b4daa4c

Added tag jdk8-b33 for changeset 42f275168fa5

! .hgtags

Changeset: 3b70add6ae45
Author:lana
Date:  2012-04-09 21:55 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/rev/3b70add6ae45

Merge




hg: jdk8/tl/corba: Added tag jdk8-b33 for changeset 1e2ac1ea3f6c

2012-04-10 Thread lana . steuck
Changeset: 0feb9b8a9538
Author:katleman
Date:  2012-04-05 13:04 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/corba/rev/0feb9b8a9538

Added tag jdk8-b33 for changeset 1e2ac1ea3f6c

! .hgtags



Re: Code review request: 7157903: JSSE client sockets are very slow

2012-04-10 Thread Xuelei Fan
Both look fine to me.

Thanks,
Xuelei

On 4/11/2012 10:37 AM, Brad Wetmore wrote:
> Hi Xuelei,
> 
> Here's the webrev for for JDK7u and JDK8.
> 
> http://cr.openjdk.java.net/~wetmore/7157903/
> 
> These should be identical to versions you've seen before.
> 
> 7157903: JSSE client sockets are very slow
> 
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7157903
> 
> Thanks,
> 
> Brad
> 
> 
> 



Code review request: 7157903: JSSE client sockets are very slow

2012-04-10 Thread Brad Wetmore

Hi Xuelei,

Here's the webrev for for JDK7u and JDK8.

http://cr.openjdk.java.net/~wetmore/7157903/

These should be identical to versions you've seen before.

7157903: JSSE client sockets are very slow

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7157903

Thanks,

Brad





Re: Dates and certificates

2012-04-10 Thread Michael StJohns
I've come to the conclusion I literally do not know what I was talking about.  

This has been on my "figure out what's going on" some day list for a while and 
it went on because of some issue with respect to the handling of this 
particular date value that caused a program to blow up.  I now can't find that 
program.  And I've now been able - successfully - to use this date value.  

If I ever figure out why this was on the list (and confirm it's still an issue) 
I'll bring it up again.  Consider it closed unless and until and my apologies.

Thanks to Vincent and Xueming for the info on what I was doing wrong with 
Calendar.  Both hints were needed to resolve the issue. 

Mike



At 11:23 AM 4/10/2012, Sean Mullan wrote:
>On 04/09/2012 02:07 PM, Michael StJohns wrote:
>>Hi -
>>
>>I've been trying to figure out which changes would be necessary to
>>support the "inifinite" date used in RFC5280 for certificates that
>>don't expire (e.g. 1231255959).(e.g.
>>java.security.cert.X509Certificate)
>>
>>I first thought this would be as easy as supporting the use of
>>Calendar instead or in addition to Date for the notBefore and
>>notAfter fields.  That would require an API change.
>
>Can you explain why you think Date would not be sufficient?
>
>>In the process of testing whether or not Calendar would support this
>>I wrote the following short program:
>>
>>
>>import java.util.Calendar; import java.util.TimeZone; import
>>java.util.GregorianCalendar;
>>
>>public class TestDate {
>>
>>public static void main (String[] args) throws Exception {
>>
>>Calendar c = Calendar.getInstance(); // Calendar c = new
>>GregorianCalendar(,12,31,23,59,59);
>>c.setTimeZone(TimeZone.getTimeZone("GMT-0")); c.set
>>(Calendar.ZONE_OFFSET, 0); c.set (Calendar.YEAR, ); c.set
>>(Calendar.MONTH,12); c.set (Calendar.DATE,31); c.set
>>(Calendar.HOUR,23); c.set (Calendar.MINUTE,59); c.set
>>(Calendar.SECOND,59);
>>
>>System.out.printf ("%tY%>System.out.println (c); } }
>>
>>I expected to get "1231235959" out.  What I got was
>>"10201115959".  Or somewhat over 1 month off.
>>
>>I haven't tracked down why this is the case (could be the format
>>process, could be a conversion to Date, could be something else), but
>>I thought I'd pass it along.
>
>I'm not sure. I've copied Xueming (Sherman) who might know the answer.
>
>--Sean
>
>>
>>In any event, could we update the API to support Calendar for
>>certificate related dates?
>>
>>Later, Mike




Re: Dates and certificates

2012-04-10 Thread Xueming Shen
Calendar's month starts with 0, so December is 11, not 12. Yes, people 
have been
complaining this for years, and the JSR310 will have an enum type of 
month and

the integer type will be "1" based.

-Sherman

On 04/10/2012 08:23 AM, Sean Mullan wrote:

On 04/09/2012 02:07 PM, Michael StJohns wrote:

Hi -

I've been trying to figure out which changes would be necessary to
support the "inifinite" date used in RFC5280 for certificates that
don't expire (e.g. 1231255959).(e.g.
java.security.cert.X509Certificate)

I first thought this would be as easy as supporting the use of
Calendar instead or in addition to Date for the notBefore and
notAfter fields.  That would require an API change.


Can you explain why you think Date would not be sufficient?


In the process of testing whether or not Calendar would support this
I wrote the following short program:


import java.util.Calendar; import java.util.TimeZone; import
java.util.GregorianCalendar;

public class TestDate {

public static void main (String[] args) throws Exception {

Calendar c = Calendar.getInstance(); //Calendar c = new
GregorianCalendar(,12,31,23,59,59);
c.setTimeZone(TimeZone.getTimeZone("GMT-0")); c.set
(Calendar.ZONE_OFFSET, 0); c.set (Calendar.YEAR, ); c.set
(Calendar.MONTH,12); c.set (Calendar.DATE,31); c.set
(Calendar.HOUR,23); c.set (Calendar.MINUTE,59); c.set
(Calendar.SECOND,59);

System.out.printf ("%tY%

I'm not sure. I've copied Xueming (Sherman) who might know the answer.

--Sean



In any event, could we update the API to support Calendar for
certificate related dates?

Later, Mike







Re: Dates and certificates

2012-04-10 Thread Vincent Ryan

Hello Michael,

Are you referring to the getNotAfter() and getNotBefore() methods of 
X509Certificate?


The Date class that those methods return already supports dates well
past the year .

Are you seeking to add support for Calendar for ease-of-use reasons?


BTW an early call to c.clear() in the program below prevents any
unintended interference from default values. And (bizarrely)
Calendar.MONTH is 0-based.



On 04/ 9/12 07:07 PM, Michael StJohns wrote:

Hi -

I've been trying to figure out which changes would be necessary to support the 
"inifinite" date used in RFC5280 for certificates that don't expire (e.g. 
1231255959).(e.g. java.security.cert.X509Certificate)

I first thought this would be as easy as supporting the use of Calendar instead 
or in addition to Date for the notBefore and notAfter fields.  That would 
require an API change.

In the process of testing whether or not Calendar would support this I wrote 
the following short program:


import java.util.Calendar;
import java.util.TimeZone;
import java.util.GregorianCalendar;

public class TestDate {

 public static void main (String[] args)
throws Exception {

Calendar c = Calendar.getInstance();
//  Calendar c = new GregorianCalendar(,12,31,23,59,59);
c.setTimeZone(TimeZone.getTimeZone("GMT-0"));
c.set (Calendar.ZONE_OFFSET, 0);
c.set (Calendar.YEAR, );
c.set (Calendar.MONTH,12);
c.set (Calendar.DATE,31);
c.set (Calendar.HOUR,23);
c.set (Calendar.MINUTE,59);
c.set (Calendar.SECOND,59);

System.out.printf ("%tY%



Re: Dates and certificates

2012-04-10 Thread Sean Mullan

On 04/09/2012 02:07 PM, Michael StJohns wrote:

Hi -

I've been trying to figure out which changes would be necessary to
support the "inifinite" date used in RFC5280 for certificates that
don't expire (e.g. 1231255959).(e.g.
java.security.cert.X509Certificate)

I first thought this would be as easy as supporting the use of
Calendar instead or in addition to Date for the notBefore and
notAfter fields.  That would require an API change.


Can you explain why you think Date would not be sufficient?


In the process of testing whether or not Calendar would support this
I wrote the following short program:


import java.util.Calendar; import java.util.TimeZone; import
java.util.GregorianCalendar;

public class TestDate {

public static void main (String[] args) throws Exception {

Calendar c = Calendar.getInstance(); // Calendar c = new
GregorianCalendar(,12,31,23,59,59);
c.setTimeZone(TimeZone.getTimeZone("GMT-0")); c.set
(Calendar.ZONE_OFFSET, 0); c.set (Calendar.YEAR, ); c.set
(Calendar.MONTH,12); c.set (Calendar.DATE,31); c.set
(Calendar.HOUR,23); c.set (Calendar.MINUTE,59); c.set
(Calendar.SECOND,59);

System.out.printf ("%tY%

I'm not sure. I've copied Xueming (Sherman) who might know the answer.

--Sean



In any event, could we update the API to support Calendar for
certificate related dates?

Later, Mike





hg: jdk8/tl/jdk: 7158930: (ann) library support for repeating annotations is not built when compiling the JDK

2012-04-10 Thread jonathan . gibbons
Changeset: eec133f2406a
Author:jfranck
Date:  2012-04-10 10:45 +0200
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/eec133f2406a

7158930: (ann) library support for repeating annotations is not built when 
compiling the JDK
Reviewed-by: ohair, erikj

! make/java/java/reflect/Makefile



hg: jdk8/tl/jdk: 7154809: JDI: update JDI/JDB debugee commandline option parsing

2012-04-10 Thread staffan . larsen
Changeset: fb52e8bd3718
Author:mgronlun
Date:  2012-04-10 10:32 +0200
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fb52e8bd3718

7154809: JDI: update JDI/JDB debugee commandline option parsing
Summary: update debugee commandline parsing
Reviewed-by: dcubed, dsamersoff, sla

! src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java