Skip to content

Commit b7540df

Browse files
committedMar 5, 2024
8327007: javax/swing/JSpinner/8008657/bug8008657.java fails
Reviewed-by: prr
1 parent e1b661f commit b7540df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/jdk/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
@@ -39,7 +39,6 @@
3939
* @test
4040
* @key headful
4141
* @bug 8008657
42-
* @author Alexander Scherbatiy
4342
* @summary JSpinner setComponentOrientation doesn't affect on text orientation
4443
* @run main bug8008657
4544
*/
@@ -137,6 +136,7 @@ static void createDateSpinner() {
137136
calendar.add(Calendar.YEAR, -1);
138137
Date earliestDate = calendar.getTime();
139138
calendar.add(Calendar.YEAR, 1);
139+
calendar.add(Calendar.DAY_OF_MONTH, 1);
140140
Date latestDate = calendar.getTime();
141141
SpinnerModel dateModel = new SpinnerDateModel(initDate,
142142
earliestDate,

0 commit comments

Comments
 (0)
Please sign in to comment.