Skip to content

Commit 4c9c5a4

Browse files
committed
8327007: javax/swing/JSpinner/8008657/bug8008657.java fails
Reviewed-by: sgehwolf Backport-of: b7540df6a4279c63e69d32b9d9834f7a427478d1
1 parent 8b28c35 commit 4c9c5a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdk/test/javax/swing/JSpinner/8008657/bug8008657.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -36,7 +36,6 @@
3636
/**
3737
* @test
3838
* @bug 8008657
39-
* @author Alexander Scherbatiy
4039
* @summary JSpinner setComponentOrientation doesn't affect on text orientation
4140
* @run main bug8008657
4241
*/
@@ -122,6 +121,7 @@ static void createDateSpinner() {
122121
calendar.add(Calendar.YEAR, -1);
123122
Date earliestDate = calendar.getTime();
124123
calendar.add(Calendar.YEAR, 1);
124+
calendar.add(Calendar.DAY_OF_MONTH, 1);
125125
Date latestDate = calendar.getTime();
126126
SpinnerModel dateModel = new SpinnerDateModel(initDate,
127127
earliestDate,

0 commit comments

Comments
 (0)