cailin186 / reflections

Automatically exported from code.google.com/p/reflections
Do What The F*ck You Want To Public License
0 stars 0 forks source link

Inconsistent Compiler Version #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When you use this project as a maven dependency compiled against java 1.5 you 
get "bad class version" errors. This appears to be because the project is 
compiled against java 1.7 despite the fact that the parent pom marks the 
project as 1.5:

From the manifest:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: Ron
Build-Jdk: 1.7.0_03

And from the effective pom:
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <executions>
          <execution>
            <id>default-testCompile</id>
            <phase>test-compile</phase>
            <goals>
              <goal>testCompile</goal>
            </goals>
            <configuration>
              <encoding>UTF-8</encoding>
              <source>1.5</source>
              <target>1.5</target>
            </configuration>
          </execution>
          <execution>
            <id>default-compile</id>
            <phase>compile</phase>
            <goals>
              <goal>compile</goal>
            </goals>
            <configuration>
              <encoding>UTF-8</encoding>
              <source>1.5</source>
              <target>1.5</target>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <encoding>UTF-8</encoding>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>

Ideally, the project would work out of the box with java 1.5+, however, it 
looks like this might not be easily possible, so at the very least perhaps an 
update to the parent pom (dictating the actual version) and documentation that 
this project is java 1.6\1.7 would be helpful.

Original issue reported on code.google.com by javamonk...@gmail.com on 24 May 2012 at 5:16

GoogleCodeExporter commented 9 years ago
damn... 0.9.8

Original comment by ronm...@gmail.com on 25 May 2012 at 6:43

GoogleCodeExporter commented 9 years ago
Nice work! I've tried it out and it indeed works with 1.5 now. Thanks!

Original comment by javamonk...@gmail.com on 25 May 2012 at 1:10