diff options
author | 2018-05-02 14:58:12 +0100 | |
---|---|---|
committer | 2018-05-10 16:17:30 -0700 | |
commit | d8860b42e47d48fcc47db9d0daf5a1b9432180a1 (patch) | |
tree | c5522fa9c6d1e9e63cb497da7dc84b72b6b11531 /test/172-app-image-twice/src/TestClass.java | |
parent | 48af3b39cd7c8abaa7f9671191ec8260630239b2 (diff) |
Do not load app image for class collisions
Even for special shared libraries that are compiled with
'--class-loader-context=&', we must reject the app image
if there are duplicate classes.
In the case where "&" is not specified, avoid the collision check.
This is safe since the class loader context check was actually run.
Test: 172-app-image-twice
Bug: 77342775
Bug: 79200502
Change-Id: Idc2d59166680948d4d34d0f224491f77ecad2974
Diffstat (limited to 'test/172-app-image-twice/src/TestClass.java')
-rw-r--r-- | test/172-app-image-twice/src/TestClass.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/172-app-image-twice/src/TestClass.java b/test/172-app-image-twice/src/TestClass.java new file mode 100644 index 0000000000..5381718f6e --- /dev/null +++ b/test/172-app-image-twice/src/TestClass.java @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2018 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 TestClass { +} |