jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

Maven has a source compatibility for Java 1.5. The source does not.

Open StevenGeens opened this issue 11 years ago • 2 comments

The pom.xml specifies 1.5 source compatibility:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>

The source code is actually 1.6 compatible.

@Override at methods inherited from interfaces:

  private Comparator<? super ParameterDescription> m_parameterDescriptionComparator
      = new Comparator<ParameterDescription>() {
        @Override
        public int compare(ParameterDescription p0, ParameterDescription p1) {
          return p0.getLongestName().compareTo(p1.getLongestName());
        }
      };

The String.isEmpty() method:

      if (Enum.class.isAssignableFrom(parameterized.getType())
          && m_parameterAnnotation.description().isEmpty()) {

StevenGeens avatar Jan 20 '15 08:01 StevenGeens

~~Actually the source seems to have a 1.7 compatibility. There are several uses of the java.nio.file package.~~ Should have looked before commenting - the POM specifies 1.7 compatibility now.

johndistasio avatar May 14 '15 14:05 johndistasio

The test I used with compiling this project with a 1.5 JDK has just become irrelevant. I am closing the issue.

StevenGeens avatar Jun 01 '15 21:06 StevenGeens