Community
Participate
Working Groups
Example code: === package ru.yandex.temp; public abstract class Function1<A, B> { public abstract B apply(A a); /** (f andThen g)(x) = g(f(x)) */ public <C> Function1<A, C> andThen(final Function1<B, C> g) { return new Function1<A, C>() { public C apply(A a) { return g.apply(Function1.this.apply(a)); } }; } /** (f compose g)(x) = f(g(x)) */ public <C> Function1<C, B> compose(final Function1<C, A> g) { return g.andThen(this); } } === Screenshot with error: http://screencast.com/t/9zkheAjxdAE Error persists.
Created attachment 78819 [details] Proposed patch
Added GenericTypeTest#test1171
Released for 3.4M3. Fixed
should backport to 3.3.2
Released for 3.3.2 Fixed
Verified for 3.4 M3 using build I20071029-0010.
The compiler shouldn't be performing such double substitutions. Fix is safe, got tested heavily.
+1 for 3.3.2
Someone knows when some version with bug fixed will be released?
Verified for 3.3.2 using build M20080123-0800