]> source.dussan.org Git - javassist.git/commitdiff
preparation for 3.7.1 release
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sun, 9 Mar 2008 13:07:12 +0000 (13:07 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sun, 9 Mar 2008 13:07:12 +0000 (13:07 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@421 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

Readme.html
build.xml
src/main/META-INF/MANIFEST.MF
src/main/javassist/CtClass.java
src/main/javassist/util/proxy/SecurityActions.java

index 8f0bac7af52bfc35bd347d1a10802e2d15a52a12..6827b03d762ff2b4d3dff1ab523a418259a9ebc0 100644 (file)
@@ -281,6 +281,11 @@ see javassist.Dump.
 
 <h2>Changes</h2>
 
+<p>-version 3.7.1 on March 10, 2008
+<ul>
+    <li>a bug of javassist.util.proxy has been fixed.
+</ul>
+
 <p>-version 3.7 on January 20, 2008
 <ul>
        <li>Several minor bugs have been fixed.
index 1a6385e0dec171d7078814d9c85fd758dabea792..2de5a2e88d1329273cd25539e7a31a93e879bc79 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -6,7 +6,7 @@
 
 <project name="javassist" default="jar" basedir=".">
 
-  <property name="dist-version" value="javassist-3.7"/>
+  <property name="dist-version" value="javassist-3.7.1"/>
 
   <property environment="env"/>
   <property name="target.jar" value="javassist.jar"/>
index 4789d0fc7114e2965cd69df0091c07dad9c57762..ed798ac1483093ee39de534f7f450850702050e2 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.1
 Specification-Title: Javassist
 Created-By: Shigeru Chiba, Tokyo Institute of Technology
 Specification-Vendor: Shigeru Chiba, Tokyo Institute of Technology
-Specification-Version: 3.7
+Specification-Version: 3.7.1
 Main-Class: javassist.CtClass
 
 Name: javassist/
index d676ded349f2d39445fb31a74cc01981d91da40d..463518192bbdfd9d8aec1ac05757c10c1bf6b89f 100644 (file)
@@ -52,7 +52,7 @@ public abstract class CtClass {
     /**
      * The version number of this release.
      */
-    public static final String version = "3.7.0.GA";
+    public static final String version = "3.7.1.GA";
 
     /**
      * Prints the version number and the copyright notice.
index e7784b896e3f254ed011b43a07acc5518ac8c275..40741e406c925e952abe8fdb7cbaaa100777c197 100755 (executable)
@@ -23,142 +23,113 @@ import java.security.PrivilegedAction;
 import java.security.PrivilegedActionException;
 import java.security.PrivilegedExceptionAction;
 
-class SecurityActions
-{
-    static Method[] getDeclaredMethods(final Class clazz)
-    {
-       if (System.getSecurityManager() == null)
-       {
-          return clazz.getDeclaredMethods();
-       }
-       else
-       {
-          return (Method[])AccessController.doPrivileged(new PrivilegedAction() {
-
-            public Object run()
-            {
-               return clazz.getDeclaredMethods();
-            }});
-       }
+class SecurityActions {
+    static Method[] getDeclaredMethods(final Class clazz) {
+        if (System.getSecurityManager() == null)
+            return clazz.getDeclaredMethods();
+        else {
+            return (Method[]) AccessController
+                    .doPrivileged(new PrivilegedAction() {
+                        public Object run() {
+                            return clazz.getDeclaredMethods();
+                        }
+                    });
+        }
     }
-    
-    static Constructor[] getDeclaredConstructors(final Class clazz)
-    {
-       if (System.getSecurityManager() == null)
-       {
-          return clazz.getDeclaredConstructors();
-       }
-       else
-       {
-          return (Constructor[])AccessController.doPrivileged(new PrivilegedAction() {
 
-            public Object run()
-            {
-               return clazz.getDeclaredConstructors();
-            }});
-       }
+    static Constructor[] getDeclaredConstructors(final Class clazz) {
+        if (System.getSecurityManager() == null)
+            return clazz.getDeclaredConstructors();
+        else {
+            return (Constructor[]) AccessController
+                    .doPrivileged(new PrivilegedAction() {
+                        public Object run() {
+                            return clazz.getDeclaredConstructors();
+                        }
+                    });
+        }
     }
-    
-    static Method getDeclaredMethod(final Class clazz, final String name, final Class[] types) throws NoSuchMethodException
-    {
-       if (System.getSecurityManager() == null)
-       {
-          return clazz.getDeclaredMethod(name, types);
-       }
-       else
-       {
-          try
-          {
-             return (Method)AccessController.doPrivileged(new PrivilegedExceptionAction() {
 
-                public Object run()throws Exception
-                {
-                   return clazz.getDeclaredMethod(name, types);
-                }});
-          }
-          catch(PrivilegedActionException e)
-          {
-             if (e.getCause() instanceof NoSuchMethodException)
-             {
-                throw (NoSuchMethodException)e.getCause();
-             }
-             throw new RuntimeException(e.getCause());
-          }
-       }
+    static Method getDeclaredMethod(final Class clazz, final String name,
+            final Class[] types) throws NoSuchMethodException {
+        if (System.getSecurityManager() == null)
+            return clazz.getDeclaredMethod(name, types);
+        else {
+            try {
+                return (Method) AccessController
+                        .doPrivileged(new PrivilegedExceptionAction() {
+                            public Object run() throws Exception {
+                                return clazz.getDeclaredMethod(name, types);
+                            }
+                        });
+            }
+            catch (PrivilegedActionException e) {
+                if (e.getCause() instanceof NoSuchMethodException)
+                    throw (NoSuchMethodException) e.getCause();
+
+                throw new RuntimeException(e.getCause());
+            }
+        }
     }
-    
-    static Constructor getDeclaredConstructor(final Class clazz, final Class[] types) throws NoSuchMethodException
+
+    static Constructor getDeclaredConstructor(final Class clazz,
+                                              final Class[] types)
+        throws NoSuchMethodException
     {
-       if (System.getSecurityManager() == null)
-       {
-          return clazz.getDeclaredConstructor(types);
-       }
-       else
-       {
-          try
-         {
-            return (Constructor)AccessController.doPrivileged(new PrivilegedExceptionAction() {
+        if (System.getSecurityManager() == null)
+            return clazz.getDeclaredConstructor(types);
+        else {
+            try {
+                return (Constructor) AccessController
+                        .doPrivileged(new PrivilegedExceptionAction() {
+                            public Object run() throws Exception {
+                                return clazz.getDeclaredConstructor(types);
+                            }
+                        });
+            }
+            catch (PrivilegedActionException e) {
+                if (e.getCause() instanceof NoSuchMethodException)
+                    throw (NoSuchMethodException) e.getCause();
 
-               public Object run() throws Exception
-               {
-                  return clazz.getDeclaredConstructor(types);
-               }});
-         }
-         catch (PrivilegedActionException e)
-         {
-            if (e.getCause() instanceof NoSuchMethodException)
-            {
-               throw (NoSuchMethodException)e.getCause();
+                throw new RuntimeException(e.getCause());
             }
-            throw new RuntimeException(e.getCause());
-         }
-       }
-    }    
-    
-    static void setAccessible(final AccessibleObject ao, final boolean accessible)
-    {
-       if (System.getSecurityManager() == null)
-       {
-          ao.setAccessible(accessible);
-       }
-       else
-       {
-          AccessController.doPrivileged(new PrivilegedAction() {
+        }
+    }
 
-            public Object run() 
-            {
-               ao.setAccessible(accessible);
-               return null;
-            }});
-       }
-    }    
-    
-    static void set(final Field fld, final Object target, final Object value) throws IllegalAccessException
+    static void setAccessible(final AccessibleObject ao,
+                              final boolean accessible) {
+        if (System.getSecurityManager() == null)
+            ao.setAccessible(accessible);
+        else {
+            AccessController.doPrivileged(new PrivilegedAction() {
+                public Object run() {
+                    ao.setAccessible(accessible);
+                    return null;
+                }
+            });
+        }
+    }
+
+    static void set(final Field fld, final Object target, final Object value)
+        throws IllegalAccessException
     {
-       if (System.getSecurityManager() == null)
-       {
-          fld.set(target, value);
-       }
-       else
-       {
-          try
-         {
-            AccessController.doPrivileged(new PrivilegedExceptionAction() {
+        if (System.getSecurityManager() == null)
+            fld.set(target, value);
+        else {
+            try {
+                AccessController.doPrivileged(new PrivilegedExceptionAction() {
+                    public Object run() throws Exception {
+                        fld.set(target, value);
+                        return null;
+                    }
+                });
+            }
+            catch (PrivilegedActionException e) {
+                if (e.getCause() instanceof NoSuchMethodException)
+                    throw (IllegalAccessException) e.getCause();
 
-               public Object run() throws Exception 
-               {
-                  fld.set(target, value);
-                  return null;
-               }});
-         }
-         catch (PrivilegedActionException e)
-         {
-            if (e.getCause() instanceof NoSuchMethodException)
-            {
-               throw (IllegalAccessException)e.getCause();
+                throw new RuntimeException(e.getCause());
             }
-            throw new RuntimeException(e.getCause());
-         }
-       }
-    }    
-}
\ No newline at end of file
+        }
+    }
+}