Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit068cea2

Browse files
committed
//BH 2024.02.22 -- 3.3.1-v7 fixes long extension issue causing
MutableBitInteger to miscalculate subtraction(no change in version #)situation was long a = b - c - d - e...where later minus signs were not been replaced by commas when wrappedinto Long.$sub(b,c,d,e,...)
1 parenta826557 commit068cea2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎sources/net.sf.j2s.core/src/j2s/swingjs/Java2ScriptVisitor.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
// TODO: superclass inheritance for JAXB XmlAccessorType
3232
// TODO: Transpiler bug allows static String name, but JavaScript function().name is read-only and will be "clazz"
3333

34+
//BH 2024.02.22 -- 3.3.1-v7 fixes long extension issue causing MutableBitInteger to miscalculate subtraction(no change in version #)
3435
//BH 2023.03.29 -- 3.3.1-v7 fixes outer static method call from within lambda expression.
3536
//BH 2023.02.09 -- 3.3.1.v6 fixes j2s.excluded.paths needing /src/xxxx
3637
//BH 2022.06.27 -- 3.3.1-v5 fixes missing method annotations
@@ -4313,11 +4314,10 @@ && boxType(exp) == NO_BOX) {
43134314
privatevoidaddExtendedOperands(List<?>extendedOperands,Stringop,charpre,charpost,booleanisToString,
43144315
booleanisLongCall) {
43154316
buffer.append(' ');
4317+
if (isLongCall)
4318+
op =",";
43164319
for (Iterator<?>iter =extendedOperands.iterator();iter.hasNext();) {
43174320
Expressionexp = (Expression)iter.next();
4318-
// op may be int for a while, but after that it changes to long
4319-
if (isLongCall &&exp.resolveTypeBinding().getName().equals("long"))
4320-
op =",";
43214321
buffer.append(op);
43224322
buffer.append(pre);
43234323
addOperand(exp,isToString);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp