Skip to content

Commit

Permalink
jacobin-610 added java/nio/charset/StandardCharsets.<clinit>()V as a …
Browse files Browse the repository at this point in the history
…trapFunction in otherModules.go
  • Loading branch information
texadactyl committed Nov 17, 2024
1 parent d4b13e3 commit 2725059
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 6 additions & 2 deletions src/gfunction/Traps.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,24 @@ func Load_Traps() {
GFunction: trapDeprecated,
}

// Class initialisation for Console.
MethodSignatures["java/nio/charset/Charset.<clinit>()V"] =
GMeth{
ParamSlots: 0,
GFunction: trapFunction,
}

// Get the default character set.
MethodSignatures["java/nio/charset/Charset.defaultCharset()Ljava/nio/charset/Charset;"] =
GMeth{
ParamSlots: 0,
GFunction: trapFunction,
}

MethodSignatures["java/nio/charset/StandardCharsets.<clinit>()V"] =
GMeth{
ParamSlots: 0,
GFunction: trapFunction,
}

MethodSignatures["java/rmi/RMISecurityManager.<clinit>()V"] =
GMeth{
ParamSlots: 0,
Expand Down
8 changes: 0 additions & 8 deletions src/gfunction/otherMethods.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ func Load_Other_methods() {
GFunction: clinitGeneric,
}

/***
MethodSignatures["java/util/HexFormat.<clinit>()V"] =
GMeth{
ParamSlots: 0,
GFunction: clinitGeneric,
}
***/

MethodSignatures["java/util/Locale$Category.<clinit>()V"] =
GMeth{
ParamSlots: 0,
Expand Down

0 comments on commit 2725059

Please sign in to comment.