Skip to content

Commit 12cf686

Browse files
committed
Added hack to avoid problem with som.vmobjects.Object class being the only class in the type system.
- apparently, java.lang.Object is always part of the type system?, so it conflicts with the simple name - the solution is to use the qualified name for everything that has the simple name "Object". -> it is not a general solution…, but works for me and doesn't break any tests Signed-off-by: Stefan Marr <git@stefan-marr.de>
1 parent 47437eb commit 12cf686

File tree

1 file changed

+4
-0
lines changed
  • graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor

1 file changed

+4
-0
lines changed

graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/Utils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ private static String getWildcardName(WildcardType type) {
360360
private static String getDeclaredName(DeclaredType element) {
361361
String simpleName = element.asElement().getSimpleName().toString();
362362

363+
if ("Object".equals(simpleName)) {
364+
return getQualifiedName(element);
365+
}
366+
363367
if (element.getTypeArguments().size() == 0) {
364368
return simpleName;
365369
}

0 commit comments

Comments
 (0)