diff options
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r-- | gcc/java/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 8b5eab7..8dadacb 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -352,8 +352,8 @@ pop_type_0 (type, messagep) /* This is a kludge, but matches what Sun's verifier does. It can be tricked, but is safe as long as type errors (i.e. interface method calls) are caught at run-time. */ - /* FIXME: this is worse than a kludge, probably. */ - return object_ptr_type_node; + else if (CLASS_INTERFACE (TYPE_NAME (TREE_TYPE (type)))) + return object_ptr_type_node; } { const char *str1 = "expected type '"; |