Issue Details (XML | Word | Printable)

Key: JDO-281
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Craig Russell
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

TCK doesn't compile with JDK 1.5

Created: 20/Jan/06 08:04 AM   Updated: 20/Jan/06 09:18 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: JDO 2 beta

Time Tracking:
Not Specified

Resolution Date: 20/Jan/06 09:18 AM


 Description  « Hide
When compiling tck20 under JDK 1.5, several errors and warnings.

/Users/clr/testtck/jdo2-tck-SNAPSHOT/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/AfterCloseSetMethodsThrowException.java:177: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Class for a varargs call
cast to java.lang.Class[] for a non-varargs call and to suppress this warning
                method = PersistenceManagerFactory.class.getMethod(methodName, null);
                                                                               ^
/Users/clr/testtck/jdo2-tck-SNAPSHOT/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/AfterCloseSetMethodsThrowException.java:184: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Object for a varargs call
cast to java.lang.Object[] for a non-varargs call and to suppress this warning
                method.invoke(pmf, null);
                                   ^
/Users/clr/testtck/jdo2-tck-SNAPSHOT/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/AfterGetPersistenceManagerNoSetMethodsSucceed.java:210: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Class for a varargs call
cast to java.lang.Class[] for a non-varargs call and to suppress this warning
                method = PersistenceManagerFactory.class.getMethod(methodName, null);
                                                                               ^
/Users/clr/testtck/jdo2-tck-SNAPSHOT/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/AfterGetPersistenceManagerNoSetMethodsSucceed.java:218: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Object for a varargs call
cast to java.lang.Object[] for a non-varargs call and to suppress this warning
                method.invoke(pmf, null);
                                   ^
/Users/clr/testtck/jdo2-tck-SNAPSHOT/src/java/org/apache/jdo/tck/models/fieldtypes/TestArrayCollections.java:180: compareTo(java.math.BigDecimal) in java.math.BigDecimal cannot be applied to (java.lang.Object)
                        if ((expectedBD.compareTo(actualBD) != 0)) {
                                       ^
/Users/clr/testtck/jdo2-tck-SNAPSHOT/src/java/org/apache/jdo/tck/models/fieldtypes/TestArrayListCollections.java:175: compareTo(java.math.BigDecimal) in java.math.BigDecimal cannot be applied to (java.lang.Object)
                        if ((bigDecCompareWith.compareTo(bigDecVal) != 0)) {
                                              ^
/Users/clr/testtck/jdo2-tck-SNAPSHOT/src/java/org/apache/jdo/tck/models/fieldtypes/TestCollectionCollections.java:165: compareTo(java.math.BigDecimal) in java.math.BigDecimal cannot be applied to (java.lang.Object)
                        if ((bigDecCompareWith.compareTo(bigDecVal) != 0)) {
                                              ^


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.