Skip to content

Commit 6fe508c

Browse files
committed
adjustments
1 parent e95a776 commit 6fe508c

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

sources/net.sf.j2s.core/src/j2s/jmol/Java2ScriptLegacyCompiler.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,10 @@ public boolean compileToJavaScript(IFile javaSource, String trailer) {
105105
}
106106

107107
ASTScriptVisitor visitor = new ASTScriptVisitor();
108-
109-
System.out.println("J2SL109 " + visitor.supportsObjectStaticFields);
110-
111-
112108
isDebugging = "debug".equals(props.getProperty("j2s.compiler.mode"));
113109
visitor.setDebugging(isDebugging);
114110
dvisitor.setDebugging(isDebugging);
111+
dvisitor.setToCompileVariableName(false); // no compression
115112
errorOccurs = false;
116113
try {
117114
root.accept(visitor);

sources/net.sf.j2s.core/src/j2s/jmol/common/DependencyASTVisitor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class DependencyASTVisitor extends ASTEmptyVisitor {
8787

8888
private ASTNode javadocRoot = null;
8989

90-
protected boolean toCompileVariableName = true;
90+
protected boolean toCompileVariableName = false; // BH 2023.11.12
9191

9292
public String discardGenericType(String name) {
9393
return ((ASTTypeVisitor) getAdaptable(ASTTypeVisitor.class)).discardGenericType(name);
@@ -1046,9 +1046,9 @@ public boolean isToCompileVariableName() {
10461046
return toCompileVariableName;
10471047
}
10481048

1049-
// public void setToCompileVariableName(boolean toCompileVariableName) {
1050-
// this.toCompileVariableName = toCompileVariableName;
1051-
// }
1049+
public void setToCompileVariableName(boolean toCompileVariableName) {
1050+
this.toCompileVariableName = toCompileVariableName;
1051+
}
10521052

10531053
public boolean visit(MethodDeclaration node) {
10541054
IMethodBinding mBinding = node.resolveBinding();

sources/net.sf.j2s.java.core/build-core-applet_jmol.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<echo>creating dist/Jmol-j2s-site.zip </echo>
2626
<zip destfile="dist/Jmol-j2s-site.zip" basedir="site_jmol" >
27-
<exclude name="swingjs/j2s/test/**"/>
27+
<exclude name="jsmol/j2s/test/**"/>
2828
<exclude name="*.html"/>
2929
</zip>
3030

0 commit comments

Comments
 (0)