diff options
| author | 2015-11-11 22:36:19 +0000 | |
|---|---|---|
| committer | 2015-11-11 22:36:19 +0000 | |
| commit | 92d662edaff9f2f64728d291806c52c1932d94a4 (patch) | |
| tree | 8d709e0ae5fa70ca607864c8ddd06a1b1c2e5aae | |
| parent | 152ee552652691ecaec2db420d468cb178647952 (diff) | |
Revert "lambda: unit test for lambda expressions at Java Language source level."
REASON: Buildbots are having jack issues
This reverts commit 152ee552652691ecaec2db420d468cb178647952.
Change-Id: I650fe1a94f1b97c14a689599703498506dd70b23
| -rwxr-xr-x | test/956-checker-lambda/build | 27 | ||||
| -rw-r--r-- | test/956-checker-lambda/expected.txt | 2 | ||||
| -rw-r--r-- | test/956-checker-lambda/info.txt | 1 | ||||
| -rwxr-xr-x | test/956-checker-lambda/run | 18 | ||||
| -rw-r--r-- | test/956-checker-lambda/src/Main.java | 45 |
5 files changed, 0 insertions, 93 deletions
diff --git a/test/956-checker-lambda/build b/test/956-checker-lambda/build deleted file mode 100755 index d666020c4e..0000000000 --- a/test/956-checker-lambda/build +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# -# Copyright 2015 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Make us exit on a failure. -set -e - -# Hard-wired use of experimental jack. -# TODO: fix this temporary work-around for lambdas, see b/19467889 -export USE_JACK=true -export JACK_VERSION="-1.1.PRE_ALPHA" -export JACK_SERVER=false -export JACK_REPOSITORY="${ANDROID_BUILD_TOP}/prebuilts/sdk/tools/jacks" - -./default-build "$@" --experimental lambdas diff --git a/test/956-checker-lambda/expected.txt b/test/956-checker-lambda/expected.txt deleted file mode 100644 index 521aed5901..0000000000 --- a/test/956-checker-lambda/expected.txt +++ /dev/null @@ -1,2 +0,0 @@ -Lambda 123 -passed diff --git a/test/956-checker-lambda/info.txt b/test/956-checker-lambda/info.txt deleted file mode 100644 index 6bc7442e19..0000000000 --- a/test/956-checker-lambda/info.txt +++ /dev/null @@ -1 +0,0 @@ -Test on lambda expressions. diff --git a/test/956-checker-lambda/run b/test/956-checker-lambda/run deleted file mode 100755 index 2fb2f89f6b..0000000000 --- a/test/956-checker-lambda/run +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2015 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Ensure that the lambda experimental opcodes are turned on for dalvikvm and dex2oat -${RUN} "$@" --experimental lambdas diff --git a/test/956-checker-lambda/src/Main.java b/test/956-checker-lambda/src/Main.java deleted file mode 100644 index b5f4a94b9e..0000000000 --- a/test/956-checker-lambda/src/Main.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2015 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// -// Test on lambda expressions. -// -public class Main { - - @NeedsLambda - interface L1 { - public void run(int a); - } - - int d; - - public Main() { - d = 4; - } - - private void doit(int a) { - int b = 2; - // Captures parameter, local, and field. Takes its own parameter. - // TODO: add field d as well, b/25631011 prevents this - L1 lambda1 = (int c) -> { System.out.println("Lambda " + a + b + c); }; - lambda1.run(3); - } - - public static void main(String[] args) { - new Main().doit(1); - System.out.println("passed"); - } -} |