PATCH: Parameter ambiguous in SnippetTemplate
Christian Thalinger
christian.thalinger at oracle.com
Tue Apr 16 08:59:20 PDT 2013
On Apr 16, 2013, at 8:13 AM, Thomas Wuerthinger <thomas.wuerthinger at oracle.com> wrote:
> It is hard to reproduce the issue.
Doug fixed it last week or so.
> 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.
Maybe that would be a good idea.
-- Chris
>
> - 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