Skip to content

Commit c7c5999

Browse files
committed
fixes Integer.class.getName() nd related classes
- returned "Integer" (and instead of "java.lang.Integer")
1 parent 214b471 commit c7c5999

File tree

1 file changed

+2
-1
lines changed
  • sources/net.sf.j2s.java.core/src/java/lang

1 file changed

+2
-1
lines changed

sources/net.sf.j2s.java.core/src/java/lang/Class.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
23
* Copyright 1994-2006 Sun Microsystems, Inc. All Rights Reserved.
34
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
45
*
@@ -664,7 +665,7 @@ private String getName0() {
664665
* code = this.$clazz$.__CLASS_NAME$__ ||
665666
* this.$clazz$.__CLASS_NAME__;
666667
*
667-
* if (code) return code;
668+
* if (code) return (code.indexOf(".") < 0 ? "java.lang." + code : code);
668669
*
669670
* code = this.$clazz$.__PARAMCODE;
670671
*

0 commit comments

Comments
 (0)