flexiblepower / powermatcher

PowerMatcher - The Java implementation of the PowerMatcher, including the API, the core, a couple of examples, a remote implementation using websockets and a visualisation of the configuration.
http://www.powermatcher.org
Apache License 2.0
43 stars 25 forks source link

Java version compliance - only Java 7+ #141

Closed jbwan closed 9 years ago

jbwan commented 9 years ago

There appears to be an issue with the current development branch and compatibility with Java 1.5 as indicated in the Wiki at https://github.com/flexiblepower/powermatcher/wiki/SettingUpTheIDE#installing-the-java-development-kit

For example, in CSVLogger.java under the net.powermatcher.core.monitoring package, PrintWriter is used in the method writeLineToCSV(String[] line, File outputFile) but it raises a compilation error that PrintWriter does not implement java.lang.AutoClosable which was only introduced as an implemented interface for PrintWriter in Java 7.

alex254 commented 9 years ago

@villgust Hans can we take a look at this in the current sprint?

THoeken commented 9 years ago

While code standard is now 1.7. It may still be necessary to update this in the bnd files. Some are 1.6

marcdejonge commented 9 years ago

We switched the project back to Java 1.6, just like the rest of the flexiblepower projects.