rpms/axis/F-11 axis-java16.patch,NONE,1.1 axis.spec,1.28,1.29
Permaine Cheung
pcheung at fedoraproject.org
Fri May 15 16:29:19 UTC 2009
- Previous message: rpms/qt3/F-11 qt-x11-free-3.3.7-arm.patch, NONE, 1.1 qt3.spec, 1.16, 1.17
- Next message: rpms/qt3/F-10 qt-x11-free-3.3.7-arm.patch, NONE, 1.1 qt-x11-free-3.3.8-odbc.patch, NONE, 1.1 qt.csh, 1.2, 1.3 qt.sh, 1.2, 1.3 qt3.spec, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: pcheung
Update of /cvs/pkgs/rpms/axis/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19436
Modified Files:
axis.spec
Added Files:
axis-java16.patch
Log Message:
Backport fix for building with java 1.6
axis-java16.patch:
--- NEW FILE axis-java16.patch ---
--- src/org/apache/axis/i18n/ProjectResourceBundle.java.orig 2009-05-15 12:01:12.000000000 -0400
+++ src/org/apache/axis/i18n/ProjectResourceBundle.java 2009-05-15 12:03:40.000000000 -0400
@@ -114,14 +114,14 @@ public class ProjectResourceBundle exten
*
* @param projectName The name of the project to which the class belongs.
* It must be a proper prefix of the caller's package.
- *
- * @param caller The calling class.
- * This is used to get the package name to further construct
- * the basename as well as to get the proper ClassLoader.
+ *
+ * @param packageName The name of the package.
*
* @param resourceName The name of the resource without the
* ".properties" extension
- *
+ *
+ * @return the appropriate ProjectResourceBundle
+ *
* @throws MissingResourceException if projectName is not a prefix of
* the caller's package name, or if the resource could not be
* found/loaded.
@@ -146,7 +146,11 @@ public class ProjectResourceBundle exten
*
* @param resourceName The name of the resource without the
* ".properties" extension
- *
+ *
+ * @param locale the Locale for messages
+ *
+ * @return the appropriate ProjectResourceBundle
+ *
* @throws MissingResourceException if projectName is not a prefix of
* the caller's package name, or if the resource could not be
* found/loaded.
@@ -170,15 +174,17 @@ public class ProjectResourceBundle exten
* @param projectName The name of the project to which the class belongs.
* It must be a proper prefix of the caller's package.
*
- * @param caller The calling class.
- * This is used to get the package name to further construct
- * the basename as well as to get the proper ClassLoader.
- *
+ * @param packageName The package name of the resource
+ *
* @param resourceName The name of the resource without the
* ".properties" extension
*
* @param locale The locale
- *
+ *
+ * @param loader ClassLoader to use when finding things
+ *
+ * @return the appropriate ProjectResourceBundle
+ *
* @throws MissingResourceException if projectName is not a prefix of
* the caller's package name, or if the resource could not be
* found/loaded.
@@ -210,7 +216,9 @@ public class ProjectResourceBundle exten
*
* @param extendsBundle If non-null, then this ExtendMessages will
* default to extendsBundle.
- *
+ *
+ * @return the appropriate ProjectResourceBundle
+ *
* @throws MissingResourceException if projectName is not a prefix of
* the caller's package name, or if the resource could not be
* found/loaded.
@@ -236,18 +244,20 @@ public class ProjectResourceBundle exten
* @param projectName The name of the project to which the class belongs.
* It must be a proper prefix of the caller's package.
*
- * @param caller The calling class.
- * This is used to get the package name to further construct
- * the basename as well as to get the proper ClassLoader.
- *
+ * @param packageName The package name of the resource
+ *
* @param resourceName The name of the resource without the
* ".properties" extension
*
* @param locale The locale
*
+ * @param loader ClassLoader to use when finding things
+ *
* @param extendsBundle If non-null, then this ExtendMessages will
* default to extendsBundle.
- *
+ *
+ * @return the appropriate ProjectResourceBundle
+ *
* @throws MissingResourceException if projectName is not a prefix of
* the caller's package name, or if the resource could not be
* found/loaded.
@@ -276,7 +286,7 @@ public class ProjectResourceBundle exten
packageName = context.validate(packageName);
- ProjectResourceBundle bundle = null;
+ ProjectResourceBundle bundle;
try {
bundle = getBundle(context, packageName);
} catch (RuntimeException e) {
@@ -298,6 +308,11 @@ public class ProjectResourceBundle exten
* - check cache
* - try up hierarchy
* - if at top of hierarchy, use (link to) context.getParentBundle()
+ *
+ * @param context a Context object containing metadata about this call
+ * @param packageName the package name of the resource
+ *
+ * @return the appropriate ProjectResourceBundle
*/
private static synchronized ProjectResourceBundle getBundle(Context context, String packageName)
throws MissingResourceException
@@ -339,13 +354,15 @@ public class ProjectResourceBundle exten
return prb;
}
- private static final String getPackage(String name) {
+ private static String getPackage(String name) {
return name.substring(0, name.lastIndexOf('.')).intern();
}
/**
* Construct a new ProjectResourceBundle
- */
+ * @param name the name of this bundle
+ * @param bundle reference to our parent bundle
+ */
private ProjectResourceBundle(String name, ResourceBundle bundle)
throws MissingResourceException
{
@@ -360,7 +377,7 @@ public class ProjectResourceBundle exten
/**
* Clears the internal cache
*/
- public static void clearCache()
+ public static void clearPRBCache()
{
bundleCache.clear();
}
@@ -428,7 +445,7 @@ public class ProjectResourceBundle exten
ResourceBundle getParentBundle(String packageName)
{
ResourceBundle p;
- if (packageName != _projectName) {
+ if (!packageName.equals(_projectName)) {
p = getBundle(this, getPackage(packageName));
} else {
p = _parent;
@@ -456,7 +473,7 @@ public class ProjectResourceBundle exten
/* Ensure that project is a proper prefix of class.
* Terminate project name with '.' to ensure proper match.
*/
- if (packageName != _projectName && !packageName.startsWith(_projectName + '.')) {
+ if (!packageName.equals(_projectName) && !packageName.startsWith(_projectName + '.')) {
log.debug("Project not a prefix of Package");
throw new MissingResourceException("Project '" + _projectName
+ "' must be a prefix of Package '"
Index: axis.spec
===================================================================
RCS file: /cvs/pkgs/rpms/axis/F-11/axis.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -p -r1.28 -r1.29
--- axis.spec 24 Feb 2009 03:48:58 -0000 1.28
+++ axis.spec 15 May 2009 16:28:48 -0000 1.29
@@ -7,7 +7,7 @@
Name: axis
Version: 1.2.1
-Release: 5.1%{?dist}
+Release: 5.2%{?dist}
Epoch: 0
Summary: A SOAP implementation in Java
License: ASL 2.0
@@ -19,6 +19,8 @@ Patch2: %{name}-imageio.patch
Patch3: %{name}-objectweb.patch
Patch4: %{name}-%{version}-DH.patch
Patch5: %{name}-build_xml.patch
+#Backport the fix for: http://svn.apache.org/viewvc?view=rev&revision=742981
+Patch6: %{name}-java16.patch
BuildRequires: jpackage-utils >= 0:1.5
BuildRequires: java-devel
BuildRequires: ant >= 0:1.6, ant-nodeps
@@ -98,6 +100,7 @@ Documentation for %{name}.
%patch3 -p1 -b .orig
%patch4
%patch5
+%patch6 -b .orig
# Remove provided binaries
find . -name "*.jar" -exec rm -f {} \;
@@ -215,6 +218,9 @@ fi
%doc docs/*
%changelog
+* Fri May 15 2009 Permaine Cheung <pcheung at redhat.com> - 0:1.2.1-5.2
+- Backport fix for building with java 1.6
+
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0:1.2.1-5.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- Previous message: rpms/qt3/F-11 qt-x11-free-3.3.7-arm.patch, NONE, 1.1 qt3.spec, 1.16, 1.17
- Next message: rpms/qt3/F-10 qt-x11-free-3.3.7-arm.patch, NONE, 1.1 qt-x11-free-3.3.8-odbc.patch, NONE, 1.1 qt.csh, 1.2, 1.3 qt.sh, 1.2, 1.3 qt3.spec, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list