Skip to content

Commit 1a2edbd

Browse files
committed
Fix extends parsing in CLDC11 compatibility checker
1 parent 6e685c4 commit 1a2edbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/cldc11_api_compat_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def parse_class_info(javap_output: str) -> ClassInfo:
147147
header_pattern = re.compile(
148148
r"(?P<visibility>public|protected)?\s*(?P<kind>class|interface|enum)\s+"
149149
r"(?P<name>[\w.$]+)"
150-
r"(?:\s+extends\s+(?P<extends>[^\{]+?))?"
150+
r"(?:\s+extends\s+(?P<extends>[^\{]+?)(?=\s+implements|$))?"
151151
r"(?:\s+implements\s+(?P<implements>[^\{]+))?",
152152
)
153153

0 commit comments

Comments
 (0)