equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
966 |
966 |
967 int match_flags = mflags; |
967 int match_flags = mflags; |
968 bool search_superc = ((match_flags & SEARCH_SUPERCLASSES) != 0); |
968 bool search_superc = ((match_flags & SEARCH_SUPERCLASSES) != 0); |
969 bool search_intfc = ((match_flags & SEARCH_INTERFACES) != 0); |
969 bool search_intfc = ((match_flags & SEARCH_INTERFACES) != 0); |
970 bool local_only = !(search_superc | search_intfc); |
970 bool local_only = !(search_superc | search_intfc); |
971 bool classes_only = false; |
|
972 |
971 |
973 if (name != NULL) { |
972 if (name != NULL) { |
974 if (name->utf8_length() == 0) return 0; // a match is not possible |
973 if (name->utf8_length() == 0) return 0; // a match is not possible |
975 } |
974 } |
976 if (sig != NULL) { |
975 if (sig != NULL) { |