You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/08/24 22:09:42 UTC

DO NOT REPLY [Bug 40311] New: - Ant doesn�t compile java.util.Collection

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40311

           Summary: Ant doesn�t compile java.util.Collection<? extends
                    Class>
           Product: Ant
           Version: 1.6.5
          Platform: Other
        OS/Version: Windows 2000
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: luisbacca@gmail.com


When i use Collection<? extends Class> in an interface, i later implements this 
interface with a Collection<Son> and Son extends Class, it compiles by the 
jdeveloper, or whatever ide.

But with ant throws an error in the task javac. The error is the following :

incompatyble types.
Found : java.util.Collection<capture of ? extends BaseVO>
Required : java.util.Collection<BaseSonVO>

And BaseSonVO extends BaseVO.

Thanks ind advance.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 40311] - Ant doesn�t compile java.util.Collection

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40311





------- Additional Comments From luisbacca@gmail.com  2006-08-28 14:22 -------
(In reply to comment #1)
> Ant does not throw this exception - javac does.
> Please provide a .java file that contains the problem.

The source code that contains the problem is this :

public Collection<BaseSonVO> getCollectionsSon(){
  return getCollection();
}

The log says this :

incompatible types
found : java.util.Collection<capture of ? extends BaseVO>
required : java.util.Collection<BaseSonVO>

I think its a problem wiht the generics feature.

Thanks in advance.

PD : In the command line the same results.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 40311] - Ant doesn�t compile java.util.Collection

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40311





------- Additional Comments From stevel@apache.org  2006-08-25 17:20 -------
yes, and test this on the command line. run ant -v to see what the arguments to
javac are, and see if javac on the command line says.

jdeveloper is based on eclipse which has its own compiler. It may have a
different interpretation of things from Sun's javac.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 40311] - Ant doesn�t compile java.util.Collection

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40311





------- Additional Comments From peterreilly@apache.org  2006-08-25 08:36 -------
Ant does not throw this exception - javac does.
Please provide a .java file that contains the problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 40311] - Ant doesn�t compile java.util.Collection

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40311


carej@us.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org