Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
platypusguy committed Jan 30, 2025
2 parents 15545cb + 1d7cb36 commit 8082f1e
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 72 deletions.
4 changes: 2 additions & 2 deletions src/gfunction/Traps.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ func Load_Traps() {
MethodSignatures["sun/security/util/Debug.getInstance(Ljava/lang/String;)Lsun/security/util/Debug;"] =
GMeth{
ParamSlots: 1,
GFunction: trapFunction,
GFunction: returnNull,
}

MethodSignatures["sun/security/util/Debug.getInstance(Ljava/lang/String;Ljava/lang/String;)Lsun/security/util/Debug;"] =
GMeth{
ParamSlots: 2,
GFunction: trapFunction,
GFunction: returnNull,
}

}
Expand Down
5 changes: 5 additions & 0 deletions src/gfunction/gfunction.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ func justReturn([]interface{}) interface{} {
return object.StringObjectFromGoString("justReturn")
}

// return a Java null object.
func returnNull([]interface{}) interface{} {
return object.Null
}

func returnCharsetName([]interface{}) interface{} {
return object.StringObjectFromGoString(globals.GetCharsetName())
}
Expand Down
Loading

0 comments on commit 8082f1e

Please sign in to comment.