aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/constants.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/constants.c')
-rw-r--r--gcc/java/constants.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/java/constants.c b/gcc/java/constants.c
index 8eb9f54..3679d4e 100644
--- a/gcc/java/constants.c
+++ b/gcc/java/constants.c
@@ -368,9 +368,12 @@ int
alloc_class_constant (clas)
tree clas;
{
-
+ tree class_name = build_internal_class_name (clas);
+
return alloc_name_constant (CONSTANT_Class,
- build_internal_class_name (clas));
+ (unmangle_classname
+ (IDENTIFIER_POINTER(class_name),
+ IDENTIFIER_LENGTH(class_name))));
}
/* Return a reference to the data array of the current constant pool. */