[jboss-cvs] Repository SVN: r24297 - in sun-jaxb: 2.1.9-brew and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 9 09:12:59 EDT 2009


Author: permaine
Date: 2009-04-09 09:12:58 -0400 (Thu, 09 Apr 2009)
New Revision: 24297

Added:
   sun-jaxb/2.1.9-brew/
   sun-jaxb/2.1.9-brew/component-info.xml
   sun-jaxb/2.1.9-brew/lib/
   sun-jaxb/2.1.9-brew/lib/jaxb-api-doc.zip
   sun-jaxb/2.1.9-brew/lib/jaxb-api-src.zip
   sun-jaxb/2.1.9-brew/lib/jaxb-api.jar
   sun-jaxb/2.1.9-brew/lib/jaxb-impl.jar
   sun-jaxb/2.1.9-brew/lib/jaxb-xjc.jar
   sun-jaxb/2.1.9-brew/lib/jsr173_1.0_api.jar
   sun-jaxb/2.1.9-brew/src/
   sun-jaxb/2.1.9-brew/src/glassfish-jaxb-2.1.9-JBAS-6535.patch
   sun-jaxb/2.1.9-brew/src/glassfish-jaxb-2.1.9-src.tar.bz2
   sun-jaxb/2.1.9-brew/src/jaxb-api-2.1.pom
Log:
Add Brew-build 2.1.9-brew

Added: sun-jaxb/2.1.9-brew/component-info.xml
===================================================================
--- sun-jaxb/2.1.9-brew/component-info.xml	                        (rev 0)
+++ sun-jaxb/2.1.9-brew/component-info.xml	2009-04-09 13:12:58 UTC (rev 24297)
@@ -0,0 +1,28 @@
+<project name="sun-jaxb-component-info">
+  
+  <!-- ============================================================ -->
+  <!-- JAXB 2.1                                                     -->
+  <!-- ============================================================ -->
+  
+  <component 
+    id="sun-jaxb" 
+    version="2.1.9-brew" 
+    licenseType="cddl" 
+    projectHome="https://jaxb.dev.java.net/" 
+    description="The JAXB 2.0 implementation"
+    tag="glassfish-jaxb-2_1_9-1_1_ep5_el4">
+    
+    <artifact id="jaxb-api.jar"/>
+    <artifact id="jaxb-xjc.jar"/>
+    <artifact id="jaxb-impl.jar"/>
+  
+    <import componentref="glassfish/jaf">
+      <compatible version="1.1.0-brew"/>
+    </import>
+ 
+    <export>
+      <include input="jaxb-api.jar"/>
+    </export>
+  </component>
+  
+</project>

Added: sun-jaxb/2.1.9-brew/lib/jaxb-api-doc.zip
===================================================================
(Binary files differ)


Property changes on: sun-jaxb/2.1.9-brew/lib/jaxb-api-doc.zip
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: sun-jaxb/2.1.9-brew/lib/jaxb-api-src.zip
===================================================================
(Binary files differ)


Property changes on: sun-jaxb/2.1.9-brew/lib/jaxb-api-src.zip
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: sun-jaxb/2.1.9-brew/lib/jaxb-api.jar
===================================================================
(Binary files differ)


Property changes on: sun-jaxb/2.1.9-brew/lib/jaxb-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: sun-jaxb/2.1.9-brew/lib/jaxb-impl.jar
===================================================================
(Binary files differ)


Property changes on: sun-jaxb/2.1.9-brew/lib/jaxb-impl.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: sun-jaxb/2.1.9-brew/lib/jaxb-xjc.jar
===================================================================
(Binary files differ)


Property changes on: sun-jaxb/2.1.9-brew/lib/jaxb-xjc.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: sun-jaxb/2.1.9-brew/lib/jsr173_1.0_api.jar
===================================================================
(Binary files differ)


Property changes on: sun-jaxb/2.1.9-brew/lib/jsr173_1.0_api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: sun-jaxb/2.1.9-brew/src/glassfish-jaxb-2.1.9-JBAS-6535.patch
===================================================================
--- sun-jaxb/2.1.9-brew/src/glassfish-jaxb-2.1.9-JBAS-6535.patch	                        (rev 0)
+++ sun-jaxb/2.1.9-brew/src/glassfish-jaxb-2.1.9-JBAS-6535.patch	2009-04-09 13:12:58 UTC (rev 24297)
@@ -0,0 +1,124 @@
+--- glassfish-jaxb-2.1.9/runtime/src/com/sun/xml/bind/v2/runtime/reflect/opt/Injector.java    2007-05-31 23:32:10.000000000 +0100
++++ glassfish-jaxb-2.1.9/runtime/src/com/sun/xml/bind/v2/runtime/reflect/opt/Injector.java 2009-03-20 12:36:51.000000000 +0000
+@@ -68,8 +68,8 @@
+      *
+      * We only need one injector per one user class loader.
+      */
+-    private static final Map<ClassLoader,WeakReference<Injector>> injectors =
+-        Collections.synchronizedMap(new WeakHashMap<ClassLoader,WeakReference<Injector>>());
++    private static final Map<ClassLoader,Injector> injectors =
++        Collections.synchronizedMap(new WeakHashMap<ClassLoader,Injector>());
+ 
+     private static final Logger logger = Util.getClassLogger();
+ 
+@@ -82,7 +82,7 @@
+     static Class inject( ClassLoader cl, String className, byte[] image ) {
+         Injector injector = get(cl);
+         if(injector!=null)
+-            return injector.inject(className,image);
++            return injector.internalInject(cl,className,image);
+         else
+             return null;
+     }
+@@ -93,7 +93,7 @@
+     static Class find( ClassLoader cl, String className ) {
+         Injector injector = get(cl);
+         if(injector!=null)
+-            return injector.find(className);
++            return injector.internalFind(cl,className);
+         else
+             return null;
+     }
+@@ -105,26 +105,23 @@
+      *      if it fails.
+      */
+     private static Injector get(ClassLoader cl) {
+-        Injector injector = null;
+-        WeakReference<Injector> wr = injectors.get(cl);
+-        if(wr!=null)
+-            injector = wr.get();
++        Injector injector = injectors.get(cl);
++               
+         if(injector==null)
+             try {
+-                injectors.put(cl,new WeakReference<Injector>(injector = new Injector(cl)));
++                injectors.put(cl,injector = new Injector(cl));
+             } catch (SecurityException e) {
+                 logger.log(Level.FINE,"Unable to set up a back-door for the injector",e);
+                 return null;
+             }
++            
+         return injector;
+     }
+ 
+     /**
+      * Injected classes keyed by their names.
+      */
+-    private final Map<String,Class> classes = new HashMap<String,Class>();
+-
+-    private final ClassLoader parent;
++    private final Map<String,WeakReference<Class>> classes = new HashMap<String,WeakReference<Class>>();
+ 
+     /**
+      * True if this injector is capable of injecting accessors.
+@@ -155,7 +152,6 @@
+     }
+ 
+     private Injector(ClassLoader parent) {
+-        this.parent = parent;
+         assert parent!=null;
+ 
+         boolean loadable = false;
+@@ -170,11 +166,14 @@
+     }
+ 
+ 
+-    private synchronized Class inject(String className, byte[] image) {
++    private synchronized Class internalInject(ClassLoader parent, String className, byte[] image) {
+         if(!loadable)   // this injector cannot inject anything
+             return null;
+ 
+-        Class c = classes.get(className);
++        Class c = null;
++        WeakReference<Class> ref = classes.get(className); 
++        if (ref != null)
++            c = ref.get(); 
+         if(c==null) {
+             // we need to inject a class into the
+             try {
+@@ -193,12 +192,31 @@
+                 logger.log(Level.FINE,"Unable to inject "+className,e);
+                 return null;
+             }
+-            classes.put(className,c);
++            classes.put(className,new WeakReference<Class>(c));
+         }
+         return c;
+     }
+ 
+-    private synchronized Class find(String className) {
+-        return classes.get(className);
++    private synchronized Class internalFind(ClassLoader parent, String className) {
++        Class clazz = null;
++        WeakReference<Class> ref = classes.get(className);
++        if (ref != null)
++        {
++           clazz = ref.get();
++           if (clazz==null)
++           {
++              // If we have a reference but no class the class must have been
++              // loaded at some point.
++              try {
++                 clazz = parent.loadClass(className);
++              } catch (ClassNotFoundException e) {
++                 // If this fails then null can be returned so the class can 
++                 // be redefined.
++                 logger.log(Level.FINE,"Unable to load "+className,e);
++              }
++           } 
++        }
++        
++        return clazz; 
+     }
+ }
+

Added: sun-jaxb/2.1.9-brew/src/glassfish-jaxb-2.1.9-src.tar.bz2
===================================================================
(Binary files differ)


Property changes on: sun-jaxb/2.1.9-brew/src/glassfish-jaxb-2.1.9-src.tar.bz2
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: sun-jaxb/2.1.9-brew/src/jaxb-api-2.1.pom
===================================================================
--- sun-jaxb/2.1.9-brew/src/jaxb-api-2.1.pom	                        (rev 0)
+++ sun-jaxb/2.1.9-brew/src/jaxb-api-2.1.pom	2009-04-09 13:12:58 UTC (rev 24297)
@@ -0,0 +1,11 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>javax.xml</groupId>
+  <artifactId>jaxb-api</artifactId>
+  <version>2.1</version>
+  <distributionManagement>
+    <relocation>
+      <groupId>javax.xml.bind</groupId>
+    </relocation>
+  </distributionManagement>
+</project>




More information about the jboss-cvs-commits mailing list