Re: [picocontainer-dev] current build of pico container

Jörg Schaible <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
Hi Mauro,

Mauro Talevi wrote:

> Jörg Schaible wrote:
> 
>>> Original source contains class.getCanonicalName()
>>> and string.contains() which are  1.5...
>> 
>> Gosh. I think the latest release went quite wrong here ... we need
>> pico-1.3.1 to fix this!
> 
> True - but I'm puzzled as to how it compiles given the declared:
> 
>              <plugin>
>                  <groupId>org.apache.maven.plugins</groupId>
>                  <artifactId>maven-compiler-plugin</artifactId>
>                  <configuration>
>                      <source>1.3</source>
>                      <target>1.3</target>
>                      <encoding>UTF-8</encoding>
>                      <optimize>false</optimize>
>                      <debug>true</debug>
>                      <showDeprecation>true</showDeprecation>
>                  </configuration>
>              </plugin>

Take a JDK 5 and it compiles. The compiler does not check for methods
introduced in newer JDKs even if you put the source/target parameters.
Therefore we had once the CI building pico with a pure 1.3 ;-)

- Jörg

BTW: You also could have upgraded the jMock dep to 1.2 and use
assertThat(result, contains("")) ;-)



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.