harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r440270 - in /incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java: java/lang/instrument/ClassDefinition.java org/apache/harmony/instrument/internal/InstrumentationImpl.java
Date Tue, 05 Sep 2006 05:54:58 GMT
Author: pyang
Date: Mon Sep  4 22:54:57 2006
New Revision: 440270

URL: http://svn.apache.org/viewvc?view=rev&rev=440270
Log:
Updated patch applied for HARMONY-1333 ([classlib][internationalization]Internationalization
of the instrument module)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/java/lang/instrument/ClassDefinition.java
    incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/org/apache/harmony/instrument/internal/InstrumentationImpl.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/java/lang/instrument/ClassDefinition.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/java/lang/instrument/ClassDefinition.java?view=diff&rev=440270&r1=440269&r2=440270
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/java/lang/instrument/ClassDefinition.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/java/lang/instrument/ClassDefinition.java
Mon Sep  4 22:54:57 2006
@@ -50,10 +50,10 @@
      */
     public ClassDefinition(Class<?> theClass, byte[] theClassFile) {
         if (theClass == null) {
-            throw new NullPointerException(Messages.getString("instrument.1"));
+            throw new NullPointerException(Messages.getString("instrument.1")); //$NON-NLS-1$
         }
         if (theClassFile == null) {
-            throw new NullPointerException(Messages.getString("instrument.2"));
+            throw new NullPointerException(Messages.getString("instrument.2")); //$NON-NLS-1$
         }
         this.definitionClass = theClass;
         this.definitionClassFile = theClassFile;

Modified: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/org/apache/harmony/instrument/internal/InstrumentationImpl.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/org/apache/harmony/instrument/internal/InstrumentationImpl.java?view=diff&rev=440270&r1=440269&r2=440270
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/org/apache/harmony/instrument/internal/InstrumentationImpl.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/main/java/org/apache/harmony/instrument/internal/InstrumentationImpl.java
Mon Sep  4 22:54:57 2006
@@ -89,7 +89,7 @@
     public void redefineClasses(ClassDefinition[] definitions)
             throws ClassNotFoundException, UnmodifiableClassException {
         if (!isRedefineClassesSupported) {
-            throw new UnsupportedOperationException(Messages.getString("instrument.3"));
+            throw new UnsupportedOperationException(Messages.getString("instrument.3"));
//$NON-NLS-1$
         }
         for (int i = 0; i < definitions.length; i++) {
             if (null == definitions[i]) {
@@ -206,13 +206,13 @@
         try {
             ClassLoader loader = ClassLoader.getSystemClassLoader();
             Class c = loader.loadClass(new String(className));
-            Method method = c.getMethod("premain", PREMAIN_SIGNATURE);
+            Method method = c.getMethod("premain", PREMAIN_SIGNATURE); //$NON-NLS-1$
             method.invoke(null, new Object[] {
                     null == options ? null : new String(options), this });
         } catch (Exception e) {
             e.printStackTrace();
             System.err
-                    .println(Messages.getString("instrument.4"));
+                    .println(Messages.getString("instrument.4")); //$NON-NLS-1$
             System.exit(1);
         }
     }



Mime
View raw message