diff options
author | 2019-11-13 09:33:52 -0800 | |
---|---|---|
committer | 2019-11-26 02:11:19 +0000 | |
commit | c47040d31cbcd8cddd5fadb552b4f0f6c94b5bd0 (patch) | |
tree | 50df569420cd6746daadf1487933719d1f86d66b /test/2001-virtual-structural-multithread/src-art/Main.java | |
parent | dc540dfffb6863177143d024dd6f491775d77585 (diff) |
Allow structural redefinition on non-final classes.
This adds support for structurally redefining non-final,
non-finalizable classes. The only restriction is that one cannot
redefine a class at the same time as any of its supertypes, if a
structural redefinition is occurring. The structural redefinition may
not remove any fields or methods, change the superclass or change the
implemented interfaces. Adding new methods or fields, both static or
non-static, public, private, protected, or package-private, is
supported.
Test: ./test.py --host
Bug: 134162467
Bug: 144168550
Change-Id: I32e9e854b3e56270170b10e8f5aba9de8f6bfdfa
Diffstat (limited to 'test/2001-virtual-structural-multithread/src-art/Main.java')
-rw-r--r-- | test/2001-virtual-structural-multithread/src-art/Main.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/2001-virtual-structural-multithread/src-art/Main.java b/test/2001-virtual-structural-multithread/src-art/Main.java new file mode 100644 index 0000000000..618cdcdf25 --- /dev/null +++ b/test/2001-virtual-structural-multithread/src-art/Main.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2017 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. + */ + +public class Main { + public static void main(String[] args) throws Exception { + art.Test2001.run(); + } +} |