< prev index next >

test/jdk/valhalla/valuetypes/Point.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -33,6 +33,11 @@
         Point p = Point.default;
         p = __WithField(p.x, x);
         p = __WithField(p.y, y);
         return p;
     }
+
+    public Point(int x, int y) {
+        this.x = x;
+        this.y = y;
+    }
 }
< prev index next >