[jboss-svn-commits] JBL Code SVN: r10963 - in labs/jbosstm/trunk: ArjunaCore/tsmx/classes/com/arjuna/ats/internal/tsmx/mbeans and 3 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Apr 13 05:59:48 EDT 2007


Author: jhalliday
Date: 2007-04-13 05:59:47 -0400 (Fri, 13 Apr 2007)
New Revision: 10963

Modified:
   labs/jbosstm/trunk/ArjunaCore/tsmx/classes/com/arjuna/ats/internal/tsmx/mbeans/PropertyServiceMBeanWrapper.java
   labs/jbosstm/trunk/antbuildsystem/build.xml
   labs/jbosstm/trunk/build.xml
   labs/jbosstm/trunk/common/build.xml
   labs/jbosstm/trunk/common/classes/com/arjuna/common/internal/util/logging/DefaultLog.java
Log:
Build system tweaks - deprecation warnings now on by default.
Code tweaks - casts to fix varargs warnings on jdk 1.5


Modified: labs/jbosstm/trunk/ArjunaCore/tsmx/classes/com/arjuna/ats/internal/tsmx/mbeans/PropertyServiceMBeanWrapper.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/tsmx/classes/com/arjuna/ats/internal/tsmx/mbeans/PropertyServiceMBeanWrapper.java	2007-04-13 09:03:57 UTC (rev 10962)
+++ labs/jbosstm/trunk/ArjunaCore/tsmx/classes/com/arjuna/ats/internal/tsmx/mbeans/PropertyServiceMBeanWrapper.java	2007-04-13 09:59:47 UTC (rev 10963)
@@ -1,20 +1,20 @@
 /*
  * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors 
- * as indicated by the @author tags. 
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
  * See the copyright.txt in the distribution for a
- * full listing of individual contributors. 
+ * full listing of individual contributors.
  * This copyrighted material is made available to anyone wishing to use,
  * modify, copy, or redistribute it subject to the terms and conditions
  * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A 
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
  * You should have received a copy of the GNU Lesser General Public License,
  * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  * MA  02110-1301, USA.
- * 
+ *
  * (C) 2005-2006,
  * @author JBoss Inc.
  */
@@ -286,7 +286,7 @@
 		try
 		{
 			saveOperation = new MBeanOperationInfo("Save the properties",
-					this.getClass().getMethod("save", null));
+					this.getClass().getMethod("save", (Class[])null));
 		}
 		catch (NoSuchMethodException e)
 		{

Modified: labs/jbosstm/trunk/antbuildsystem/build.xml
===================================================================
--- labs/jbosstm/trunk/antbuildsystem/build.xml	2007-04-13 09:03:57 UTC (rev 10962)
+++ labs/jbosstm/trunk/antbuildsystem/build.xml	2007-04-13 09:59:47 UTC (rev 10963)
@@ -1,20 +1,20 @@
 <!--
   JBoss, Home of Professional Open Source
-  Copyright 2006, Red Hat Middleware LLC, and individual contributors 
-  as indicated by the @author tags. 
+  Copyright 2006, Red Hat Middleware LLC, and individual contributors
+  as indicated by the @author tags.
   See the copyright.txt in the distribution for a
-  full listing of individual contributors. 
+  full listing of individual contributors.
   This copyrighted material is made available to anyone wishing to use,
   modify, copy, or redistribute it subject to the terms and conditions
   of the GNU Lesser General Public License, v. 2.1.
-  This program is distributed in the hope that it will be useful, but WITHOUT A 
-  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+  This program is distributed in the hope that it will be useful, but WITHOUT A
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
   You should have received a copy of the GNU Lesser General Public License,
   v.2.1 along with this distribution; if not, write to the Free Software
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
   MA  02110-1301, USA.
-  
+
   (C) 2005-2006,
   @author JBoss Inc.
 -->
@@ -45,7 +45,7 @@
 		<fileset dir="${com.hp.mwlabs.buildsystem.libs}"/>
 	</path>
 	<property name="com.hp.mwlabs.buildsystem.classpath" refid="com.hp.mwlabs.buildsystem.classpath"/>
-	
+
 	<!-- Initialisation -->
 	<target name="com.hp.mwlabs.buildsystem.init">
 		<!-- Define default build properties -->
@@ -67,7 +67,8 @@
                        destdir="${com.hp.mwlabs.buildsystem.dest}"
                        classpath="${com.hp.mwlabs.buildsystem.classpath}"
                        excludes="${com.hp.mwlabs.buildsystem.compile.excludes}"
-                       debug="${com.hp.mw.debug}"/>
+                       debug="${com.hp.mw.debug}"
+					   deprecation="${com.hp.mw.deprecation}"/>
 	</target>
 
 	<!-- Jar targets -->

Modified: labs/jbosstm/trunk/build.xml
===================================================================
--- labs/jbosstm/trunk/build.xml	2007-04-13 09:03:57 UTC (rev 10962)
+++ labs/jbosstm/trunk/build.xml	2007-04-13 09:59:47 UTC (rev 10963)
@@ -35,6 +35,9 @@
    <property name="jboss.libdir" location="jboss"/>
    <property name="jboss.install.libdir" location="${com.hp.mw.installationdirectory}/jboss"/>
 
+   <property name="com.hp.mw.deprecation" value="yes"/>
+   <property name="com.arjuna.mw.deprecation" value="yes"/>
+
    <available property="jts.present" file="${jts.dir}" type="dir"/>
 
    <property name="junit.jar" location="ext/junit.jar"/>

Modified: labs/jbosstm/trunk/common/build.xml
===================================================================
--- labs/jbosstm/trunk/common/build.xml	2007-04-13 09:03:57 UTC (rev 10962)
+++ labs/jbosstm/trunk/common/build.xml	2007-04-13 09:59:47 UTC (rev 10963)
@@ -155,7 +155,8 @@
             destdir="${com.hp.mwlabs.ts.common.dest}"
             classpath="${com.arjuna.common.src}"
             excludes="${com.arjuna.common.compile.excludes}"
-            debug="${com.hp.mwlabs.ts.common.debug}">
+            debug="${com.hp.mwlabs.ts.common.debug}"
+			deprecation="${com.hp.mw.deprecation}">
             <classpath>
                 <path path="${build.classpath}"/>
                 <path path="${com.arjuna.common.src}"/>

Modified: labs/jbosstm/trunk/common/classes/com/arjuna/common/internal/util/logging/DefaultLog.java
===================================================================
--- labs/jbosstm/trunk/common/classes/com/arjuna/common/internal/util/logging/DefaultLog.java	2007-04-13 09:03:57 UTC (rev 10962)
+++ labs/jbosstm/trunk/common/classes/com/arjuna/common/internal/util/logging/DefaultLog.java	2007-04-13 09:59:47 UTC (rev 10963)
@@ -636,11 +636,11 @@
         if (classLoader == null) {
             try {
                 // Are we running on a JDK 1.2 or later system?
-                Method method = Thread.class.getMethod("getContextClassLoader", null);
+                Method method = Thread.class.getMethod("getContextClassLoader", (Class[])null);
 
                 // Get the thread context class loader (if there is one)
                 try {
-                    classLoader = (ClassLoader)method.invoke(Thread.currentThread(), null);
+                    classLoader = (ClassLoader)method.invoke(Thread.currentThread(), (Object[])null);
                 } catch (IllegalAccessException e) {
                     ;  // ignore
                 } catch (InvocationTargetException e) {




More information about the jboss-svn-commits mailing list