Menu

#37 Restore Java 5 compatability

2.0.1
closed
None
9
2012-12-08
2012-11-29
No

Even though we've got maven compiler compliance set to 1.5, there is non-Java 5 code (such as String.isEmpty()) in Super CSV, which means that Super CSV is no longer Java 5 compatible!

Note on maven compiler plugin page:

Merely setting the target option does not guarantee that your code actually runs on a JRE with the specified version. The pitfall is unintended usage of APIs that only exist in later JREs which would make your code fail at runtime with a linkage error. To avoid this issue, you can either configure the compiler's boot classpath to match the target JRE or use the Animal Sniffer Maven Plugin to verify your code doesn't use unintended APIs.

Update Super CSV to use the animal sniffer plugin.
~~~~~

Related

Discussion: Error: No such method: IsEmpty()

Discussion

  • James Bassett

    James Bassett - 2012-11-30

    Fixed in [r264] by replacing all String.isEmpty() calls and adding animal-sniffer plugin so build fails when the source isn't compatible with Java 1.5.

     

    Related

    Commit: [r264]

  • James Bassett

    James Bassett - 2012-11-30
    • status: open --> pending
     
  • James Bassett

    James Bassett - 2012-12-08
    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB