openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Build failure with autoboxing
Date Tue, 03 Apr 2007 19:46:07 GMT
This is strange. Autoboxing turned off somehow? I must be doing  
something wrong. Just checked out from the tip of trunk,

[INFO] Building OpenJPA JDBC
[INFO]    task-segment: [install]
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 15 source files to /Users/clr/openjpa/openjpa/trunk/openjpa- 
jdbc/target/classes
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]  
------------------------------------------------------------------------
[INFO] Compilation failure

/Users/clr/openjpa/openjpa/trunk/openjpa-jdbc/src/main/java/org/ 
apache/openjpa/jdbc/sql/DB2Dictionary.java:[242,31] incompatible types
found   : boolean
required: java.lang.Boolean

/Users/clr/openjpa/openjpa/trunk/openjpa-jdbc/src/main/java/org/ 
apache/openjpa/jdbc/sql/DB2Dictionary.java:[249,29] operator ==  
cannot be applied to java.lang.Boolean,boolean

/Users/clr/openjpa/openjpa/trunk/openjpa-jdbc/src/main/java/org/ 
apache/openjpa/jdbc/sql/DB2Dictionary.java:[253,34] operator ==  
cannot be applied to java.lang.Boolean,boolean

     public String getForUpdateClause(JDBCFetchConfiguration fetch,  
boolean forUpdate) {
         String isolationLevel = null;
         Boolean updateClause = null;
         DatabaseMetaData metaData = null;
         StringBuffer forUpdateString = new StringBuffer();
         try {
             // Determine the update clause/isolationLevel the hint
             // overrides the persistence.xml value
             if (fetch != null && fetch.getHint 
("openjpa.hint.updateClause")
                 !=null )
                 updateClause = (Boolean)fetch.
                 getHint("openjpa.hint.updateClause");
             else
                 updateClause = forUpdate;  
<=========================================== here
             if (fetch != null &&fetch.getHint 
("openjpa.hint.isolationLevel")
                 !=null )
                 isolationLevel = (String)fetch.
                 getHint("openjpa.hint.isolationLevel");
             else
                 isolationLevel = conf.getTransactionIsolation();
             if (updateClause == false)  
<=========================================== here
                 //This sql is not for update so add FOR Read Only  
clause
                 forUpdateString.append(" ").append(forReadOnlyClause)
                 .append(" ");
             else if (updateClause == true) 
{ <=========================================== here

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message