PATCH: Parameter ambiguous in SnippetTemplate
Thomas Wuerthinger
thomas.wuerthinger at oracle.com
Tue Apr 16 08:13:23 PDT 2013
It is hard to reproduce the issue. Most likely it is because you are using a different JDK version? We could switch to a system without .* imports in order to improve source compatibility.
- thomas
On Apr 2, 2013, at 11:45 PM, Christian Thalinger <christian.thalinger at oracle.com> wrote:
> I know I'm doing stuff different than others but this file didn't compile for me because Parameter was ambiguous. Two ways to fix it: either change the imports or use Snippet.Parameter.
>
> -- Chris
>
> diff --git a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java
> --- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java
> +++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java
> @@ -22,7 +22,8 @@
> */
> package com.oracle.graal.replacements;
>
> -import java.lang.reflect.*;
> +import java.lang.reflect.Array;
> +import java.lang.reflect.Modifier;
> import java.util.*;
> import java.util.Map.Entry;
> import java.util.concurrent.*;
>
More information about the graal-dev
mailing list