mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8218419: Can't get annotations that are present on packages in -Xbootclasspath/a
Reviewed-by: alanb
This commit is contained in:
parent
216049dc47
commit
752bd3d955
6 changed files with 157 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 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
|
||||
|
@ -638,7 +638,7 @@ public class BuiltinClassLoader
|
|||
* binary name. This method returns {@code null} when the class is not
|
||||
* found.
|
||||
*/
|
||||
protected Class<?> loadClassOrNull(String cn) {
|
||||
protected final Class<?> loadClassOrNull(String cn) {
|
||||
return loadClassOrNull(cn, false);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 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
|
||||
|
@ -114,7 +114,7 @@ public class ClassLoaders {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Class<?> loadClassOrNull(String cn) {
|
||||
protected Class<?> loadClassOrNull(String cn, boolean resolve) {
|
||||
return JLA.findBootstrapClassOrNull(this, cn);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue