Skip to content

Commit 9f9f4a4

Browse files
hansonrhansonr
authored andcommitted
comment
1 parent 2c09580 commit 9f9f4a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,8 +1715,10 @@ private void addClassOrInterface(ASTNode node, ITypeBinding binding, List<?> bod
17151715
this$0Name = null;
17161716
finalShortClassName = getFinalJ2SClassName(
17171717
(isLambda ? getMyJavaClassNameLambda(true) : getJavaClassNameQualified(binding)), FINAL_P);
1718-
if (finalShortClassName.startsWith("P$."))
1718+
if (finalShortClassName.startsWith("P$.")) {
1719+
// java.lang.x will return x, not P$.x
17191720
finalShortClassName = finalShortClassName.substring(3);
1721+
}
17201722
setClassAndBinding(finalShortClassName, binding);
17211723
if (isLambda)
17221724
buffer.append("(");

0 commit comments

Comments
 (0)