Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8256663: [test] Deprecated use of new Double in jshell ImportTest #270

wants to merge 1 commit into from
Changes from all commits
File filter
Filter by extension
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -68,7 +68,7 @@ public void testImportOnDemand() {

public void testImportStatic() {
assertImportKeyMatch("import static java.lang.Math.PI;", "PI", SINGLE_STATIC_IMPORT_SUBKIND, added(VALID));
assertEval("new Double(PI).toString().substring(0, 16).equals(\"3.14159265358979\");", "true");
assertEval("Double.valueOf(PI).toString().substring(0, 16).equals(\"3.14159265358979\");", "true");

public void testImportStaticOnDemand() {
@@ -13,7 +13,7 @@
boolean m(String s);

@SuppressWarnings({"deprecation", "removal"})
void testRaw() {
Sub s1 = c -> true;
Sub s2 = Boolean::new;
@@ -23,7 +23,7 @@ void testRaw() {

@SuppressWarnings({"deprecation", "removal"})
void testNonRaw() {
Sub<Integer> s1 = c -> true;
Sub<Integer> s2 = Boolean::new;