You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by Jeff Eastman <jd...@windwardsolutions.com> on 2010/06/08 01:05:04 UTC

Strange Compilation Failures

Some of these classes I have touched in porting to 20.2 but not nearly 
all. Anybody know what is happening here? Eclipse is a happy camper with 
all of these classes (esp. TestCanopyCreation which runs fine in it). 
I'm on r952477 doing mvn clean installs.


/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/fuzzykmeans/TestFuzzyKmeansClustering.java:[486,27] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/fuzzykmeans/TestFuzzyKmeansClustering.java:[486,114] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/MockReducerContext.java:[37,13] 
collect(org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable) 
in org.apache.mahout.common.DummyOutputCollector cannot be applied to 
(java.lang.Object,java.lang.Object)

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/ga/watchmaker/EvalMapperTest.java:[48,25] 
type parameter org.apache.hadoop.io.LongWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/ga/watchmaker/EvalMapperTest.java:[48,92] 
type parameter org.apache.hadoop.io.LongWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/MockMapperContext.java:[34,13] 
collect(org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable) 
in org.apache.mahout.common.DummyOutputCollector cannot be applied to 
(java.lang.Object,java.lang.Object)

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java:[398,25] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java:[398,99] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java:[442,25] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java:[442,99] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/kmeans/TestKmeansClustering.java:[367,27] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/kmeans/TestKmeansClustering.java:[367,101] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/kmeans/TestKmeansClustering.java:[408,25] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound

/Users/jeff/Documents/workspace/mahout/core/src/test/java/org/apache/mahout/clustering/kmeans/TestKmeansClustering.java:[408,99] 
type parameter org.apache.hadoop.io.IntWritable is not within its bound


Re: Strange Compilation Failures

Posted by Jeff Eastman <jd...@windwardsolutions.com>.
It's actually repeatable, and is caused by my adding a "<?>" wildcard to 
the declaration of the DummyOutputCollector to make Eclipse happy.

public class DummyOutputCollector<K extends WritableComparable, V 
extends Writable>
     implements OutputCollector<K,V> {

works but has an Eclipse warning "WritableComparable is a raw type. 
References to generic type WritableComparable<T> should be parameterized"

public class DummyOutputCollector<K extends WritableComparable<?>, V 
extends Writable>
     implements OutputCollector<K,V> {

makes Eclipse happy but throws the mvn compiler errors on other classes 
which use it with IntWritable and LongWritable K values. Probably should 
have paid more attention to Josh Bloch's generics tutorial I attended 
last year.

On 6/7/10 5:51 PM, Benson Margulies wrote:
> I guess mvn &eclipse writing class files at the same time
>
> On Jun 7, 2010, at 8:22 PM, Jeff Eastman <jd...@windwardsolutions.com> 
> wrote:
>
>> Another local phenomenon. Clean checkout is happy again.
>>
>> On 6/7/10 4:53 PM, Sean Owen wrote:
>>> I don't see this on the command line or in IntelliJ FWIW...
>>> (Mac OS X 10.6.x / Java 6 / etc.)
>>>
>>> On Tue, Jun 8, 2010 at 12:05 AM, Jeff Eastman
>>> <jd...@windwardsolutions.com>  wrote:
>>>
>>>> Some of these classes I have touched in porting to 20.2 but not 
>>>> nearly all.
>>>> Anybody know what is happening here? Eclipse is a happy camper with 
>>>> all of
>>>> these classes (esp. TestCanopyCreation which runs fine in it). I'm on
>>>> r952477 doing mvn clean installs.
>>>>
>>>>
>>>
>>
>


Re: Strange Compilation Failures

Posted by Benson Margulies <bi...@gmail.com>.
I guess mvn &eclipse writing class files at the same time

On Jun 7, 2010, at 8:22 PM, Jeff Eastman <jd...@windwardsolutions.com>  
wrote:

> Another local phenomenon. Clean checkout is happy again.
>
> On 6/7/10 4:53 PM, Sean Owen wrote:
>> I don't see this on the command line or in IntelliJ FWIW...
>> (Mac OS X 10.6.x / Java 6 / etc.)
>>
>> On Tue, Jun 8, 2010 at 12:05 AM, Jeff Eastman
>> <jd...@windwardsolutions.com>  wrote:
>>
>>> Some of these classes I have touched in porting to 20.2 but not  
>>> nearly all.
>>> Anybody know what is happening here? Eclipse is a happy camper  
>>> with all of
>>> these classes (esp. TestCanopyCreation which runs fine in it). I'm  
>>> on
>>> r952477 doing mvn clean installs.
>>>
>>>
>>
>

Re: Strange Compilation Failures

Posted by Jeff Eastman <jd...@windwardsolutions.com>.
Another local phenomenon. Clean checkout is happy again.

On 6/7/10 4:53 PM, Sean Owen wrote:
> I don't see this on the command line or in IntelliJ FWIW...
> (Mac OS X 10.6.x / Java 6 / etc.)
>
> On Tue, Jun 8, 2010 at 12:05 AM, Jeff Eastman
> <jd...@windwardsolutions.com>  wrote:
>    
>> Some of these classes I have touched in porting to 20.2 but not nearly all.
>> Anybody know what is happening here? Eclipse is a happy camper with all of
>> these classes (esp. TestCanopyCreation which runs fine in it). I'm on
>> r952477 doing mvn clean installs.
>>
>>      
>    


Re: Strange Compilation Failures

Posted by Sean Owen <sr...@gmail.com>.
I don't see this on the command line or in IntelliJ FWIW...
(Mac OS X 10.6.x / Java 6 / etc.)

On Tue, Jun 8, 2010 at 12:05 AM, Jeff Eastman
<jd...@windwardsolutions.com> wrote:
> Some of these classes I have touched in porting to 20.2 but not nearly all.
> Anybody know what is happening here? Eclipse is a happy camper with all of
> these classes (esp. TestCanopyCreation which runs fine in it). I'm on
> r952477 doing mvn clean installs.
>