jOOQ / jOOL

jOOλ - The Missing Parts in Java 8 jOOλ improves the JDK libraries in areas where the Expert Group's focus was elsewhere. It adds tuple support, function support, and a lot of additional functionality around sequential Streams. The JDK 8's main efforts (default methods, lambdas, and the Stream API) were focused around maintaining backwards compatibility and implementing a functional API for parallelism.
http://www.jooq.org/products
Apache License 2.0
2.09k stars 168 forks source link

Eclipse Configuration #62

Closed danieldietrich closed 10 years ago

danieldietrich commented 10 years ago

In order to import the project into Eclipse, the following block has to be added to the pom.xml / build section:

        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-enforcer-plugin</artifactId>
                                        <versionRange>[0,)</versionRange>
                                        <goals>
                                            <goal>enforce</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.codehaus.mojo</groupId>
                                        <artifactId>sql-maven-plugin</artifactId>
                                        <versionRange>[0,)</versionRange>
                                        <goals>
                                            <goal>execute</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore/>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>

Nevertheless the project does currently not build in Eclipse (Mars 4.5M3) - most probably because of the Eclipse Compiler for Java (ECJ). Building the project directly with maven in the shell does work fine! So this can be considered to be no issue of jOOL!

Description Resource    Path    Location    Type
Lambda expression's signature does not match the signature of the functional interface method apply(Tuple2<Integer,String>) SeqTest.java    /jool/src/test/java/org/jooq/lambda line 292    Java Problem
The type Tuple2 does not define v2(Object) that is applicable here  Seq.java    /jool/src/main/java/org/jooq/lambda line 370    Java Problem
The type Tuple2 does not define v2(Object) that is applicable here  Seq.java    /jool/src/main/java/org/jooq/lambda line 386    Java Problem
Type mismatch: cannot convert from Object to Tuple2<Seq<T>,Seq<T>>  Seq.java    /jool/src/main/java/org/jooq/lambda line 1087   Java Problem
Type mismatch: cannot convert from Seq<Object> to <unknown> SeqTest.java    /jool/src/test/java/org/jooq/lambda line 314    Java Problem
Type mismatch: cannot convert from Seq<Object> to <unknown> SeqTest.java    /jool/src/test/java/org/jooq/lambda line 318    Java Problem
Type mismatch: cannot convert from Tuple2<Seq<Object>,Seq<Object>> to Tuple2<Seq<Integer>,Seq<String>>  SeqTest.java    /jool/src/test/java/org/jooq/lambda line 288    Java Problem
Type mismatch: cannot convert from Tuple2<Seq<Object>,Seq<Object>> to Tuple2<Seq<Integer>,Seq<String>>  SeqTest.java    /jool/src/test/java/org/jooq/lambda line 292    Java Problem
lukaseder commented 10 years ago

Yes, there are some issues in the compiler for Java 8 in Eclipse. I believe they might be regressions, because at some point when I was using a developer build, these things compiled. Possible issue candidates:

For some reason, I have switched to IntelliJ when developing jOOL. Probably for this reason :)

I'm closing this as "won't fix", as these are clearly Eclipse bugs