On 7 October 2010 10:32, Niclas Hedhman <[email protected]> wrote:
> On Thu, Oct 7, 2010 at 4:03 PM, Stanislav Muhametsin
> <[email protected]> wrote:
> > Quoting Niclas Hedhman <[email protected]>:
> >
> >> It is being compiled with JDK 1.5.0_22, as I take that as the only
> >> safe way... Compatibility out has the tendency to miss 'new methods'
> >> and such.
> >>
> >
> > Did you try changing names of generics? Like, "ThrowableType1" in
> > AbstractModifierModel, and "ThrowableType2" in ConstructorsModel . I
> > remember having some generics name-clash problem, which 1.6 did not
> report
> > (correctly), but 1.5 did (incorrectly).
>
> Thanks for the suggestion, but it doesn't help.
>
it's probably a bug in the generics compiler - something to do with
resolving the containing wildcard against the contained wildcard
these days I tend to compile with a Java6 JDK using target 1.5
and use the animal-sniffer-maven-plugin to enforce Java5 usage:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.6</version>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java15</artifactId>
<version>1.0</version>
</signature>
</configuration>
<executions>
<execution>
<id>check-java-1.5-compat</id>
<phase>process-classes</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
HTH
Cheers
> --
> Niclas Hedhman, Software Developer
> http://www.qi4j.org - New Energy for Java
>
> I live here; http://tinyurl.com/2qq9er
> I work here; http://tinyurl.com/2ymelc
> I relax here; http://tinyurl.com/2cgsug
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>
--
Cheers, Stuart
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev