Skip to content

Commit 750bece

Browse files
committed
8305771: SA ClassWriter.java fails to skip overpass methods
Reviewed-by: kevinw, cjplummer
1 parent b81c9c8 commit 750bece

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/jcore/ClassWriter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -438,8 +438,8 @@ protected void writeMethods() throws IOException {
438438
ArrayList<Method> valid_methods = new ArrayList<Method>();
439439
for (int i = 0; i < methods.length(); i++) {
440440
Method m = methods.at(i);
441-
long accessFlags = m.getAccessFlags();
442-
// overpass method
441+
long accessFlags = m.getAccessFlags() & JVM_RECOGNIZED_METHOD_MODIFIERS;
442+
// skip overpass methods
443443
if (accessFlags == (JVM_ACC_PUBLIC | JVM_ACC_SYNTHETIC | JVM_ACC_BRIDGE)) {
444444
continue;
445445
}

0 commit comments

Comments
 (0)