Skip to content

Commit b62d22e

Browse files
committed
adding .j2s flags for method tracking
1 parent 9c96f3e commit b62d22e

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed
21 Bytes
Binary file not shown.
21 Bytes
Binary file not shown.

sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors/Java2ScriptVisitor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4733,7 +4733,10 @@ private void logMethodDeclared(String name) {
47334733
return;
47344734
}
47354735
String myName = fixLogName(getQualifiedClassName());
4736-
lstMethodsDeclared.add(myName + "." + name.substring(1, name.length() - 1));
4736+
if (name.startsWith("'"))
4737+
name = name.substring(1, name.length() - 1);
4738+
System.err.println(name);
4739+
lstMethodsDeclared.add(myName + "." + name);
47374740
}
47384741

47394742
private void logMethodCalled(String name) {

sources/net.sf.j2s.java.core/.j2s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
j2s.compiler.status=enable
22

33
#output file name for logging methods declared - delete the file to regenerate a listing
4-
j2s.log.methods.declared=methodsDeclared.csv
4+
#j2s.log.methods.declared=methodsDeclared.csv
55

66
#output file name for logging methods called - delete the file to regenerate a listing
77
#j2s.log.methods.called=methodsCalled.csv
-2.14 KB
Binary file not shown.

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15976,6 +15976,12 @@ function(){
1597615976
return this.valueOf();
1597715977
});
1597815978

15979+
m$(Integer,"signum",
15980+
function(){
15981+
return Math.signum(this.valueOf());
15982+
});
15983+
15984+
1597915985
// Note that Long is problematic in JavaScript
1598015986

1598115987
Clazz._setDeclared("java.lang.Long", java.lang.Long=Long=function(){

0 commit comments

Comments
 (0)