9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /**
26 * @test
27 * @bug 7047069
28 * @summary Array can dynamically change size when assigned to an object field
29 *
30 * @modules java.desktop
31 * @run main/othervm -Xbatch Test7047069
32 */
33
34 import java.util.*;
35 import java.awt.geom.*;
36
37 public class Test7047069 {
38 static boolean verbose;
39
40 static final int GROW_SIZE = 24; // Multiple of cubic & quad curve size
41
42 float squareflat; // Square of the flatness parameter
43 // for testing against squared lengths
44
45 int limit; // Maximum number of recursion levels
46
47 float hold[] = new float[14]; // The cache of interpolated coords
48 // Note that this must be long enough
49 // to store a full cubic segment and
50 // a relative cubic segment to avoid
51 // aliasing when copying the coords
52 // of a curve to the end of the array.
53 // This is also serendipitously equal
54 // to the size of a full quad segment
55 // and 2 relative quad segments.
56
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /**
26 * @test
27 * @bug 7047069
28 * @summary Array can dynamically change size when assigned to an object field
29 * @modules java.desktop
30 *
31 * @run main/othervm -Xbatch compiler.c2.Test7047069
32 */
33
34 package compiler.c2;
35
36 import java.awt.geom.Line2D;
37
38 public class Test7047069 {
39 static boolean verbose;
40
41 static final int GROW_SIZE = 24; // Multiple of cubic & quad curve size
42
43 float squareflat; // Square of the flatness parameter
44 // for testing against squared lengths
45
46 int limit; // Maximum number of recursion levels
47
48 float hold[] = new float[14]; // The cache of interpolated coords
49 // Note that this must be long enough
50 // to store a full cubic segment and
51 // a relative cubic segment to avoid
52 // aliasing when copying the coords
53 // of a curve to the end of the array.
54 // This is also serendipitously equal
55 // to the size of a full quad segment
56 // and 2 relative quad segments.
57
|