MrLoick / andenginemultiplayerextension

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

Fails to compile with ant, but do compiles with eclipse #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get sources of andenginemultiplayerextension
2. Try to compile it using ant

What is the expected output? What do you see instead?
Expected to compile (as it does in Eclipse). But for some reason following 
shows up
 [javac] Compiling 452 source files to D:\--Projects\andengine\andenginemultiplayerextension\bin\classes
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:128: cannot find symbol
    [javac] symbol  : class IServerListener
    [javac] location: class org.anddev.andengine.extension.multiplayer.protocol.server.BluetoothSocketServer<CC>
    [javac]     public static interface IBluetoothSocketServerListener<CC extends ClientConnector<BluetoothSocketConnection>> extends IServerListener<BluetoothSocketServer<CC>> {
    [javac]                                                                                                                           ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:128: interface expected here
    [javac]     public static interface IBluetoothSocketServerListener<CC extends ClientConnector<BluetoothSocketConnection>> extends IServerListener<BluetoothSocketServer<CC>> {
    [javac]                                                                                                                                          ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:128: cannot find symbol
    [javac] symbol  : class ClientConnector
    [javac] location: class org.anddev.andengine.extension.multiplayer.protocol.server.BluetoothSocketServer<CC>
    [javac]     public static interface IBluetoothSocketServerListener<CC extends ClientConnector<BluetoothSocketConnection>> extends IServerListener<BluetoothSocketServer<CC>> {
    [javac]                                                                       ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:128: cannot find symbol
    [javac] symbol  : class BluetoothSocketConnection
    [javac] location: class org.anddev.andengine.extension.multiplayer.protocol.server.BluetoothSocketServer<CC>
    [javac]     public static interface IBluetoothSocketServerListener<CC extends ClientConnector<BluetoothSocketConnection>> extends IServerListener<BluetoothSocketServer<CC>> {
    [javac]                                                                                       ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:122: cannot find symbol
    [javac] symbol  : class IServerListener
    [javac] location: class org.anddev.andengine.extension.multiplayer.protocol.server.SocketServer<CC>
    [javac]     public static interface ISocketServerListener<CC extends ClientConnector<SocketConnection>> extends IServerListener<SocketServer<CC>> {
    [javac]                                                                                                         ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:122: interface expected here
    [javac]     public static interface ISocketServerListener<CC extends ClientConnector<SocketConnection>> extends IServerListener<SocketServer<CC>> {
    [javac]                                                                                                                        ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:122: cannot find symbol
    [javac] symbol  : class ClientConnector
    [javac] location: class org.anddev.andengine.extension.multiplayer.protocol.server.SocketServer<CC>
    [javac]     public static interface ISocketServerListener<CC extends ClientConnector<SocketConnection>> extends IServerListener<SocketServer<CC>> {
    [javac]                                                              ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:122: cannot find symbol
    [javac] symbol  : class SocketConnection
    [javac] location: class org.anddev.andengine.extension.multiplayer.protocol.server.SocketServer<CC>
    [javac]     public static interface ISocketServerListener<CC extends ClientConnector<SocketConnection>> extends IServerListener<SocketServer<CC>> {
    [javac]                                                                              ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServerDiscoveryServer.java:218: cannot find symbol
    [javac] symbol  : class IDiscoveryData
    [javac] location: class org.anddev.andengine.extension.multiplayer.protocol.server.SocketServerDiscoveryServer<T>
    [javac]     public interface ISocketServerDiscoveryServerListener<T extends IDiscoveryData> {
    [javac]                                                                     ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:56: cannot find symbol
    [javac] symbol  : constructor Server(org.anddev.andengine.extension.multiplayer.protocol.server.connector.ClientConnector.IClientConnectorListener<org.anddev.andengine.extension.multiplayer.protocol.shared.BluetoothSocketConnection>,org.anddev.andengine.extension.multiplayer.protocol.server.BluetoothSocketServer.IBluetoothSocketServerListener<CC>)
    [javac] location: class org.anddev.andengine.extension.multiplayer.protocol.server.Server<org.anddev.andengine.extension.multiplayer.protocol.shared.BluetoothSocketConnection,CC>
    [javac]         super(pClientConnectorListener, pBluetoothSocketServerListener);
    [javac]         ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:75: getServerListener() in org.anddev.andengine.extension.multiplayer.protocol.server.BluetoothSocketServer cannot override getServerListener() in org.anddev.andengine.extension.multiplayer.protocol.server.Server; attempting to use incompatible return type
    [javac] found   : org.anddev.andengine.extension.multiplayer.protocol.server.BluetoothSocketServer.IBluetoothSocketServerListener<CC>
    [javac] required: org.anddev.andengine.extension.multiplayer.protocol.server.Server.IServerListener<? extends org.anddev.andengine.extension.multiplayer.protocol.server.Server<org.anddev.andengine.extension.multiplayer.protocol.shared.BluetoothSocketConnection,CC>>
    [javac]     public IBluetoothSocketServerListener<CC> getServerListener() {
    [javac]                                               ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:74: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:137: method does not override or implement a method from a supertype
    [javac]         @Override
    [javac]         ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:140: method does not override or implement a method from a supertype
    [javac]         @Override
    [javac]         ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\BluetoothSocketServer.java:143: method does not override or implement a method from a supertype
    [javac]         @Override
    [javac]         ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:53: cannot find symbol
    [javac] symbol  : constructor Server(org.anddev.andengine.extension.multiplayer.protocol.server.connector.ClientConnector.IClientConnectorListener<org.anddev.andengine.extension.multiplayer.protocol.shared.SocketConnection>,org.anddev.andengine.extension.multiplayer.protocol.server.SocketServer.ISocketServerListener<CC>)
    [javac] location: class org.anddev.andengine.extension.multiplayer.protocol.server.Server<org.anddev.andengine.extension.multiplayer.protocol.shared.SocketConnection,CC>
    [javac]         super(pClientConnectorListener, pSocketServerListener);
    [javac]         ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:74: getServerListener() in org.anddev.andengine.extension.multiplayer.protocol.server.SocketServer cannot override getServerListener() in org.anddev.andengine.extension.multiplayer.protocol.server.Server; attempting to use incompatible return type
    [javac] found   : org.anddev.andengine.extension.multiplayer.protocol.server.SocketServer.ISocketServerListener<CC>
    [javac] required: org.anddev.andengine.extension.multiplayer.protocol.server.Server.IServerListener<? extends org.anddev.andengine.extension.multiplayer.protocol.server.Server<org.anddev.andengine.extension.multiplayer.protocol.shared.SocketConnection,CC>>
    [javac]     public ISocketServerListener<CC> getServerListener() {
    [javac]                                      ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:73: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:79: setServerListener(org.anddev.andengine.extension.multiplayer.protocol.server.Server.IServerListener<? extends org.anddev.andengine.extension.multiplayer.protocol.server.Server<org.anddev.andengine.extension.multiplayer.protocol.shared.SocketConnection,CC>>) in org.anddev.andengine.extension.multiplayer.protocol.server.Server<org.anddev.andengine.extension.multiplayer.protocol.shared.SocketConnection,CC> cannot be applied to (org.anddev.andengine.extension.multiplayer.protocol.server.SocketServer.ISocketServerListener<CC>)
    [javac]         super.setServerListener(pSocketServerListener);
    [javac]              ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:131: method does not override or implement a method from a supertype
    [javac]         @Override
    [javac]         ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:134: method does not override or implement a method from a supertype
    [javac]         @Override
    [javac]         ^
    [javac] D:\--Projects\andengine\andenginemultiplayerextension\src\org\anddev\andengine\extension\multiplayer\protocol\server\SocketServer.java:137: method does not override or implement a method from a supertype
    [javac]         @Override
    [javac]         ^
    [javac] 22 errors

What version of the product are you using? On what operating system?
JDK 1.6_26, Ant 1.8.2

Original issue reported on code.google.com by alexey.p...@gmail.com on 27 Aug 2011 at 4:04

GoogleCodeExporter commented 8 years ago
This is the only issue I've met when trying to make andengine and all 
extensions via ant. Target and Source are set to 1.6

Original comment by alexey.p...@gmail.com on 27 Aug 2011 at 4:28

GoogleCodeExporter commented 8 years ago
Any solution to this problem?  This also happens trying to compile in IntelliJ 
v10.x or v11.x.

Original comment by charlie....@gmail.com on 8 Jan 2012 at 10:17

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I got this reply from IntelliJ which uses the same compiler as Ant.

http://youtrack.jetbrains.net/issue/IDEA-79464?projectKey=IDEA

Turns out this project is using "features" in the Eclipse compiler that that 
are either open bugs in Java compiler or not standard.  The code would need to 
be rewritten to conform to Java generics in order to be compilable under Ant, 
IntelliJ, Netbeans, etc.  Right now AndEngine is ONLY compilable under Eclipse 
IDE.

Original comment by charlie....@gmail.com on 9 Jan 2012 at 2:34

GoogleCodeExporter commented 8 years ago
Hey guys,

can somebody please move this issue to 
https://github.com/nicolasgramlich/AndEngineMultiplayerExtension/
I'm going to address it as soon as possible.

Thanks a lot!

Original comment by NicolasG...@gmail.com on 10 Jan 2012 at 12:44

GoogleCodeExporter commented 8 years ago
Hi guys,

Same error here with intellij 11.0.2, though a quick patch I found is to set 
intellij to use Eclipse compiler in the settings/compiler menu (there are 
several options) and everything seems to compile properly.

Original comment by sephyrot...@gmail.com on 14 Mar 2012 at 1:26

GoogleCodeExporter commented 8 years ago
Same problem here, using IntelliJ IDEA 11.1.3

Original comment by gianmarco.gherardi on 13 Oct 2012 at 3:04

GoogleCodeExporter commented 8 years ago
How do you fix this problem?

Original comment by boxofki...@gmail.com on 25 Jan 2013 at 2:20