Re: [X10-users] Generic Reduction

2010-07-20 Thread Yoav Zibin
Hi, Yes, you're right! I get the same error: : -- 1. ERROR in C:\cygwin\home\Yoav\test\Hello.java (at line 51) T id$2, ^ T cannot be resolved to a type -- 2. ERROR in C:\cygwin\home\Yoav\test\Hello.java (at line 52) T id$3); ^ T cannot be resolved to a type ---

Re: [X10-users] Generic Reduction

2010-07-20 Thread Mohsen Vakilian
I was just referring to the Adder class that you wrote in your previous message yourself. So, I didn't have to attach any x10 files. I had just attached the generated java file. The java file is too large to inline in a message. So, I created a link to it.

Re: [X10-users] Generic Reduction

2010-07-20 Thread Yoav Zibin
You can't attach files in the mailing list, so please inline those files inside your email. Please send your X10 program. On Tue, Jul 20, 2010 at 3:58 PM, Mohsen Vakilian wrote: > I get the following error messages when I compiler the class Adder you > wrote > below. > > x10c: -- > 1.

Re: [X10-users] Generic Reduction

2010-07-20 Thread Mohsen Vakilian
I get the following error messages when I compiler the class Adder you wrote below. x10c: -- 1. ERROR in bin/Adder.java (at line 51) T id$2, ^ T cannot be resolved to a type -- 2. ERROR in bin/Adder.java (at line 52) T id$3);

Re: [X10-users] Generic Reduction

2010-07-20 Thread Yoav Zibin
Sorry, this is the JIRA: http://jira.codehaus.org/browse/XTENLANG-1577 On Tue, Jul 20, 2010 at 1:35 PM, Yoav Zibin wrote: > It's not an easy fix - there are multiple bugs in the collecting-finish > construct. > I opened a JIRA so you can follow our progress. > As a work-around, use a reducer wi

Re: [X10-users] Generic Reduction

2010-07-20 Thread Yoav Zibin
It's not an easy fix - there are multiple bugs in the collecting-finish construct. I opened a JIRA so you can follow our progress. As a work-around, use a reducer without generic parameters, e.g., class Adder { static abstract class A implements Reducible[Int] {} def test2(r:A) { val x =

Re: [X10-users] Generic Reduction

2010-07-20 Thread Mohsen Vakilian
Igor, The copy of the message in my sent box has the file attached to it. But, it looks like the the mailing list has dropped it. This is why I sent another message with the code in the body of the message. On Tue, Jul 20, 2010 at 11:06 AM, Igor Peshansky wrote: > Mohsen Vakilian wrote on 07/1

Re: [X10-users] Generic Reduction

2010-07-20 Thread Yoav Zibin
Hi, Mohsen didn't forget the type bound (I can see his code). Generic bounds such as "{T <: Reducible[S]}" do not work properly in the compiler (there is already a JIRA opened for it, so no need to open another one). As a work around, I tried: abstract class Adder[S] { public abstract def getT()

Re: [X10-users] Generic Reduction

2010-07-20 Thread Igor Peshansky
Mohsen Vakilian wrote on 07/19/2010 06:41:20 PM: > I built the x10 compiler from trunk today (7/19) and used it to compile the > attached piece of code. The code implements a class that is parameterized by > a type that implements the Reducible interface. But, there are problems when > using t

Re: [X10-users] Generic Reduction

2010-07-20 Thread Mohsen Vakilian
I realized that I had missed the import statements. But, adding the import statement didn't change the error messages. import x10.lang.*; import x10.util.*; public class Reduction { public static def main(args: Rail[String]!) { } } abstract class Adder[S, T]{T <: Reducible[S]} { public ab

[X10-users] Generic Reduction

2010-07-19 Thread Mohsen Vakilian
I built the x10 compiler from trunk today (7/19) and used it to compile the attached piece of code. The code implements a class that is parameterized by a type that implements the Reducible interface. But, there are problems when using the reducer in the finish statement. I've attached the error me