harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r967211 - in /harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java: java/lang/management/ org/apache/harmony/lang/management/ org/apache/harmony/lang/management/internals/nls/
Date Fri, 23 Jul 2010 19:11:35 GMT
Author: hindessm
Date: Fri Jul 23 19:11:35 2010
New Revision: 967211

URL: http://svn.apache.org/viewvc?rev=967211&view=rev
Log:
Minor fixes for "[#HARMONY-6598] [classlib][lang-management] added nls to
lang-management".

Modified:
    harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ManagementFactory.java
    harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java
    harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/DynamicMXBeanImpl.java
    harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/ThreadMXBeanImpl.java
    harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/internals/nls/messages.properties

Modified: harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ManagementFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ManagementFactory.java?rev=967211&r1=967210&r2=967211&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ManagementFactory.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ManagementFactory.java
Fri Jul 23 19:11:35 2010
@@ -375,9 +375,9 @@ public class ManagementFactory {
         if (multiInstanceBeanNames.contains(mxbeanInterfaceName)) {
             // partial match is good enough
             if (!mxbeanName.startsWith(expectedObjectName)) {
-                // lm.01= is not an instance of interface {0}
+                // lm.02={0} is not an instance of interface {1}
                 throw new IllegalArgumentException(Messages.getString(
-                        "lm.01", mxbeanInterfaceName)); //$NON-NLS-1$                
+                        "lm.02", mxbeanName, mxbeanInterfaceName)); //$NON-NLS-1$       
        
             }
         } else {
             // exact match required

Modified: harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java?rev=967211&r1=967210&r2=967211&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/java/lang/management/ThreadInfo.java
Fri Jul 23 19:11:35 2010
@@ -103,7 +103,7 @@ public class ThreadInfo {
             long threadIdVal = ((Long) attributeVals[0]).longValue();
             String threadNameVal = (String) attributeVals[1];
             if (threadNameVal == null) {
-                //lm.06=Invalid composite data: Attribute threadNAme has null value
+                //lm.06=Invalid composite data: Attribute threadName has null value
                 throw new IllegalArgumentException(Messages.getString("lm.06")); //$NON-NLS-1$
               
                 }
             String threadStateStringVal = (String) attributeVals[2];

Modified: harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/DynamicMXBeanImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/DynamicMXBeanImpl.java?rev=967211&r1=967210&r2=967211&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/DynamicMXBeanImpl.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/DynamicMXBeanImpl.java
Fri Jul 23 19:11:35 2010
@@ -172,8 +172,8 @@ public abstract class DynamicMXBeanImpl 
         MBeanAttributeInfo attribInfo = getPresentAttribute(attribute,
                 AttributeAccessType.READING);
         if (attribInfo == null) {            
-            //lm.0A=No such attribute :{0}
-            throw new AttributeNotFoundException(Messages.getString("lm.0A")); //$NON-NLs-1$
+            //lm.0A=No such attribute : {0}
+            throw new AttributeNotFoundException(Messages.getString("lm.0A", attribute));
//$NON-NLs-1$
         }
 
         try {
@@ -230,8 +230,8 @@ public abstract class DynamicMXBeanImpl 
         MBeanAttributeInfo attribInfo = getPresentAttribute(
                 attribute.getName(), AttributeAccessType.WRITING);
         if (attribInfo == null) {
-            //lm.0A=No such attribute :{0}
-            throw new AttributeNotFoundException(Messages.getString("lm.0A")); //$NON-NLs-1$
+            //lm.0A=No such attribute : {0}
+            throw new AttributeNotFoundException(Messages.getString("lm.0A"), attribute);
//$NON-NLs-1$
         }
 
         try {

Modified: harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/ThreadMXBeanImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/ThreadMXBeanImpl.java?rev=967211&r1=967210&r2=967211&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/ThreadMXBeanImpl.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/ThreadMXBeanImpl.java
Fri Jul 23 19:11:35 2010
@@ -580,8 +580,8 @@ public final class ThreadMXBeanImpl exte
     public boolean isThreadCpuTimeEnabled() {
         if (!isThreadCpuTimeSupported()) {
             
-            //lm.1F=Thread CPU timing is not supported on this virtual machine.
-            throw new UnsupportedOperationException(Messages.getString("lm.1F")); //$NON-NLS-1$
+            //lm.01=Thread CPU timing is not supported on this virtual machine.
+            throw new UnsupportedOperationException(Messages.getString("lm.01")); //$NON-NLS-1$
         }
         return this.isThreadCpuTimeEnabledImpl();
     }
@@ -659,8 +659,8 @@ public final class ThreadMXBeanImpl exte
      */
     public void setThreadCpuTimeEnabled(boolean enable) {
         if (!isThreadCpuTimeSupported()) {
-            //lm.1F=Thread CPU timing is not supported on this virtual machine.
-            throw new UnsupportedOperationException(Messages.getString("lm.1F")); //$NON-NLS-1$
         
+            //lm.01=Thread CPU timing is not supported on this virtual machine.
+            throw new UnsupportedOperationException(Messages.getString("lm.01")); //$NON-NLS-1$
         
         }
 
         SecurityManager security = System.getSecurityManager();

Modified: harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/internals/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/internals/nls/messages.properties?rev=967211&r1=967210&r2=967211&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/internals/nls/messages.properties
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/internals/nls/messages.properties
Fri Jul 23 19:11:35 2010
@@ -14,42 +14,33 @@
 #  limitations under the License.
 
 # messages for EN locale
-lm.01=is not an instance of interface {0}	
+lm.01=Thread CPU timing is not supported on this virtual machine.
 lm.02={0} is not an instance of interface {1}
 lm.03=poolName is null
 lm.04=usage is null
-lm.05=Attribute poolName has null value        	
-lm.06=Invalid composite data: Attribute threadNAme has null value
-lm.07=CompsiteData contains an unexpected threadState value. {0}             
-lm.08=StackTraceElement[] is missing                
-lm.09=VM does not support monitoring of compilation time          
-lm.0A=No such attribute :{0}        
-lm.0B={0} is a {1} attribute               
-lm.0C=No such operation : {0}        	
-lm.0D=Unable to find logger with name {0}            
-lm.0E=CompositeData does not contain the expected number of attribute.           
-lm.0F=CompositeData contains an attribute not of expected type. Expected {0} ,found {1}
-lm.10=CompositeData object does not contain expected key: {0}            	
-lm.11=CompositeData object does not have the expected number of attributes         	
-lm.12=TabularData row type is not CompositeType with two items.       
-lm.13=VM does not support collection usage threshold.        	
-lm.14=VM does not support usage threshold.        	
-lm.15=Collection usage threshold cannot be negative.        	          	        	
-lm.16=Collection usage threshold cannot exceed maximum amount of memory for pool.       
	
-lm.17=Unknown MXBean type : {0}        	
-lm.18=Bean name not in valid format. {0}           
-lm.19=Not registered {0}        	
-lm.1A=VM does not support boot classpath			
-lm.1B=Thread id must be greater than 0        	
-lm.1C=CPU time measurement is not supported on this virtual machine    	
+lm.05=Attribute poolName has null value
+lm.06=Invalid composite data: Attribute threadName has null value
+lm.07=CompsiteData contains an unexpected threadState value. {0}
+lm.08=StackTraceElement[] is missing
+lm.09=VM does not support monitoring of compilation time
+lm.0A=No such attribute : {0}
+lm.0B={0} is a {1} attribute
+lm.0C=No such operation : {0}
+lm.0D=Unable to find logger with name {0}
+lm.0E=CompositeData does not contain the expected number of attribute.
+lm.0F=CompositeData contains an attribute not of expected type. Expected {0}, found {1}
+lm.10=CompositeData object does not contain expected key: {0}
+lm.11=CompositeData object does not have the expected number of attributes
+lm.12=TabularData's row type is not CompositeType with two items.
+lm.13=VM does not support collection usage threshold.
+lm.14=VM does not support usage threshold.
+lm.15=Collection usage threshold cannot be negative.
+lm.16=Collection usage threshold cannot exceed maximum amount of memory for pool.
+lm.17=Unknown MXBean type : {0}
+lm.18=Bean name not in valid format. {0}
+lm.19=Not registered {0}
+lm.1A=VM does not support boot classpath
+lm.1B=Thread id must be greater than 0
+lm.1C=CPU time measurement is not supported on this virtual machine
 lm.1D=maxDepth value cannot be negative.
-lm.1E=Thread contention monitoring is not supported on this virtual machine.        	
-lm.1F=Thread CPU timing is not supported on this virtual machine.
- 	
-        	
-        	                
-                
-                
-                
-                
-                
\ No newline at end of file
+lm.1E=Thread contention monitoring is not supported on this virtual machine.



Mime
View raw message