jackba / rapla

Automatically exported from code.google.com/p/rapla
0 stars 0 forks source link

COMPILE ERROR #378

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download latest source code (1.7.6) or git clone (tested both)
2. ./build.sh

I have openjdk-6 installed

What is the expected output? What do you see instead?

Source code should compile into rapla 

<***************************start-copy-paste********************>
/usr/src/rapla $ sudo ./build.sh
Buildfile: /usr/src/rapla/build.xml

init:
Copying 1 file to /usr/src/rapla

prepare:
Created dir: /usr/src/rapla/temp
Created dir: /usr/src/rapla/build
Created dir: /usr/src/rapla/build/classes
Created dir: /usr/src/rapla/build/clientclasses
Created dir: /usr/src/rapla/build/bootstrap
Created dir: /usr/src/rapla/build/classes/META-INF
Created dir: /usr/src/rapla/build/clientclasses/META-INF

compile:
Compiling 8 source files to /usr/src/rapla/build/bootstrap
Compiling 604 source files to /usr/src/rapla/build/clientclasses
/usr/src/rapla/src/org/rapla/facade/internal/FacadeImpl.java:1328: incomparable 
types: org.rapla.entities.RaplaType<T> and 
org.rapla.entities.RaplaType<org.rapla.entities.domain.Appointment>
        if (raplaType ==  Appointment.TYPE ){
                      ^
/usr/src/rapla/src/org/rapla/facade/internal/FacadeImpl.java:1334: incomparable 
types: org.rapla.entities.RaplaType<T> and 
org.rapla.entities.RaplaType<org.rapla.entities.domain.Reservation>
        } else if (raplaType == Reservation.TYPE) {
                             ^
/usr/src/rapla/src/org/rapla/gui/internal/edit/DeleteUndo.java:31: incomparable 
types: org.rapla.entities.RaplaType<T> and 
org.rapla.entities.RaplaType<org.rapla.entities.Category>
            if ( entity.getRaplaType() == Category.TYPE)
                                       ^
/usr/src/rapla/src/org/rapla/gui/internal/edit/DeleteUndo.java:52: incomparable 
types: org.rapla.entities.RaplaType<T> and 
org.rapla.entities.RaplaType<org.rapla.entities.Category>
            if ( entity.getRaplaType() == Category.TYPE)
                                       ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors

BUILD FAILED
/usr/src/rapla/build.xml:203: The following error occurred while executing this 
line:
/usr/src/rapla/build.xml:227: Compile failed; see the compiler error output for 
details.

Total time: 1 minute 14 seconds
< ********************** End of copy - paste ********************>
What version of the product are you using? On what operating system?

OS/CPU : Linux Ubuntu Precise 12.04.3 LTS - amd64
Rapla : v 1.7.6 + latest git version
Java Version : javac -version : javac 1.6.0_27

Please provide any additional information below.

Original issue reported on code.google.com by milktea....@gmail.com on 22 Dec 2013 at 9:02

GoogleCodeExporter commented 9 years ago
This is due java 1.6. Is fixed now in master and 1_7 branch

Original comment by christop...@gmail.com on 23 Dec 2013 at 3:32

GoogleCodeExporter commented 9 years ago

Original comment by christop...@gmail.com on 23 Dec 2013 at 3:33

GoogleCodeExporter commented 9 years ago

Original comment by christop...@gmail.com on 23 Dec 2013 at 3:50

GoogleCodeExporter commented 9 years ago

Original comment by christop...@gmail.com on 9 Feb 2014 at 9:07