[jboss-cvs] Repository SVN: r30459 - in sun-jaxb: 2.1.4.patch03-brew and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 27 14:19:14 EDT 2009
Author: permaine
Date: 2009-10-27 14:19:13 -0400 (Tue, 27 Oct 2009)
New Revision: 30459
Added:
sun-jaxb/2.1.4.patch03-brew/
sun-jaxb/2.1.4.patch03-brew/component-info.xml
sun-jaxb/2.1.4.patch03-brew/lib/
sun-jaxb/2.1.4.patch03-brew/lib/jaxb-api-doc.zip
sun-jaxb/2.1.4.patch03-brew/lib/jaxb-api-src.zip
sun-jaxb/2.1.4.patch03-brew/lib/jaxb-api.jar
sun-jaxb/2.1.4.patch03-brew/lib/jaxb-impl.jar
sun-jaxb/2.1.4.patch03-brew/lib/jaxb-xjc.jar
sun-jaxb/2.1.4.patch03-brew/lib/jsr173_1.0_api.jar
sun-jaxb/2.1.4.patch03-brew/src/
sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-2.1.4-src.tar.gz
sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-1560.patch
sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-1956.patch
sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-2114.patch
sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-2121.patch
sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-build-hack.patch
Log:
Add Brew Build 2.1.4.patch03-brew
Added: sun-jaxb/2.1.4.patch03-brew/component-info.xml
===================================================================
--- sun-jaxb/2.1.4.patch03-brew/component-info.xml (rev 0)
+++ sun-jaxb/2.1.4.patch03-brew/component-info.xml 2009-10-27 18:19:13 UTC (rev 30459)
@@ -0,0 +1,28 @@
+<project name="sun-jaxb-component-info">
+
+ <!-- ============================================================ -->
+ <!-- JAXB 2.1 -->
+ <!-- ============================================================ -->
+
+ <component
+ id="sun-jaxb"
+ version="2.1.4.patch03-brew"
+ licenseType="cddl"
+ projectHome="https://jaxb.dev.java.net/"
+ description="The JAXB 2.0 implementation"
+ tag="glassfish-jaxb-2_1_4-1_12_patch03_ep1_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.4.patch03-brew/lib/jaxb-api-doc.zip
===================================================================
(Binary files differ)
Property changes on: sun-jaxb/2.1.4.patch03-brew/lib/jaxb-api-doc.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: sun-jaxb/2.1.4.patch03-brew/lib/jaxb-api-src.zip
===================================================================
(Binary files differ)
Property changes on: sun-jaxb/2.1.4.patch03-brew/lib/jaxb-api-src.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: sun-jaxb/2.1.4.patch03-brew/lib/jaxb-api.jar
===================================================================
(Binary files differ)
Property changes on: sun-jaxb/2.1.4.patch03-brew/lib/jaxb-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: sun-jaxb/2.1.4.patch03-brew/lib/jaxb-impl.jar
===================================================================
(Binary files differ)
Property changes on: sun-jaxb/2.1.4.patch03-brew/lib/jaxb-impl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: sun-jaxb/2.1.4.patch03-brew/lib/jaxb-xjc.jar
===================================================================
(Binary files differ)
Property changes on: sun-jaxb/2.1.4.patch03-brew/lib/jaxb-xjc.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: sun-jaxb/2.1.4.patch03-brew/lib/jsr173_1.0_api.jar
===================================================================
(Binary files differ)
Property changes on: sun-jaxb/2.1.4.patch03-brew/lib/jsr173_1.0_api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-2.1.4-src.tar.gz
===================================================================
(Binary files differ)
Property changes on: sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-2.1.4-src.tar.gz
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-1560.patch
===================================================================
--- sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-1560.patch (rev 0)
+++ sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-1560.patch 2009-10-27 18:19:13 UTC (rev 30459)
@@ -0,0 +1,123 @@
+--- jaxb-ri/runtime/src/com/sun/xml/bind/v2/runtime/reflect/opt/Injector.java.orig 2009-01-08 17:28:13.000000000 -0500
++++ jaxb-ri/runtime/src/com/sun/xml/bind/v2/runtime/reflect/opt/Injector.java 2009-01-08 17:44:51.000000000 -0500
+@@ -68,8 +68,8 @@ final class Injector {
+ *
+ * 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 @@ final class Injector {
+ 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 @@ final class Injector {
+ 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 @@ final class Injector {
+ * 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 @@ final class Injector {
+ }
+
+ private Injector(ClassLoader parent) {
+- this.parent = parent;
+ assert parent!=null;
+
+ boolean loadable = false;
+@@ -170,11 +166,14 @@ final class Injector {
+ }
+
+
+- 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 @@ final class Injector {
+ 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.4.patch03-brew/src/glassfish-jaxb-JBPAPP-1956.patch
===================================================================
--- sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-1956.patch (rev 0)
+++ sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-1956.patch 2009-10-27 18:19:13 UTC (rev 30459)
@@ -0,0 +1,18 @@
+--- jaxb-ri/runtime/src/com/sun/xml/bind/api/impl/NameConverter.java 2007-05-31 22:58:54.000000000 +0100
++++ jaxb-ri/runtime/src/com/sun/xml/bind/api/impl/NameConverter.java 2009-05-05 13:31:40.000000000 +0100
+@@ -181,13 +181,14 @@ public interface NameConverter
+ // get the token and remove illegal chars
+ String token = tokens.get( i );
+ token = removeIllegalIdentifierChars( token );
++ token = token.toLowerCase();
+
+ // this will check for reserved keywords
+ if( !NameUtil.isJavaIdentifier( token ) ) {
+ token = '_' + token;
+ }
+
+- tokens.set( i, token.toLowerCase() );
++ tokens.set( i, token );
+ }
+
+ // concat all the pieces and return it
Added: sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-2114.patch
===================================================================
--- sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-2114.patch (rev 0)
+++ sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-2114.patch 2009-10-27 18:19:13 UTC (rev 30459)
@@ -0,0 +1,44 @@
+--- jaxb-ri/runtime/src/com/sun/xml/bind/DatatypeConverterImpl.java.orig 2009-10-27 09:21:32.000000000 -0400
++++ jaxb-ri/runtime/src/com/sun/xml/bind/DatatypeConverterImpl.java 2009-10-27 09:23:22.000000000 -0400
+@@ -100,40 +100,8 @@ public final class DatatypeConverterImpl
+ return _parseInt(s);
+ }
+
+- /**
+- * Faster but less robust String->int conversion.
+- *
+- * Note that:
+- * <ol>
+- * <li>XML Schema allows '+', but {@link Integer#valueOf(String)} is not.
+- * <li>XML Schema allows leading and trailing (but not in-between) whitespaces..
+- * {@link Integer#valueOf(String)} doesn't allow any.
+- * </ol>
+- */
+ public static int _parseInt(CharSequence s) {
+- int len = s.length();
+- int sign = 1;
+-
+- int r = 0;
+-
+- for( int i=0; i<len; i++ ) {
+- char ch = s.charAt(i);
+- if(WhiteSpaceProcessor.isWhiteSpace(ch)) {
+- // skip whitespace
+- } else
+- if('0'<=ch && ch<='9') {
+- r = r*10 + (ch-'0');
+- } else
+- if(ch=='-') {
+- sign = -1;
+- } else
+- if(ch=='+') {
+- // noop
+- } else
+- throw new NumberFormatException("Not a number: "+s);
+- }
+-
+- return r*sign;
++ return Integer.valueOf(removeOptionalPlus(WhiteSpaceProcessor.trim(s)).toString());
+ }
+
+ public long parseLong(String lexicalXSLong) {
Added: sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-2121.patch
===================================================================
--- sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-2121.patch (rev 0)
+++ sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-JBPAPP-2121.patch 2009-10-27 18:19:13 UTC (rev 30459)
@@ -0,0 +1,16 @@
+--- jaxb-ri/runtime/src/com/sun/xml/bind/v2/runtime/unmarshaller/UnmarshallerImpl.java.orig 2009-10-27 09:25:37.000000000 -0400
++++ jaxb-ri/runtime/src/com/sun/xml/bind/v2/runtime/unmarshaller/UnmarshallerImpl.java 2009-10-27 09:26:15.000000000 -0400
+@@ -508,10 +508,11 @@ public final class UnmarshallerImpl exte
+
+
+ /**
+- * Default error handling behavior fot {@link Unmarshaller}.
++ * Default error handling behavior for {@link Unmarshaller}.
+ */
+ public boolean handleEvent(ValidationEvent event) {
+- return event.getSeverity()!=ValidationEvent.FATAL_ERROR;
++ int severity = event.getSeverity();
++ return (severity != ValidationEvent.FATAL_ERROR && severity != ValidationEvent.ERROR);
+ }
+
+ private static InputSource streamSourceToInputSource( StreamSource ss ) {
Added: sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-build-hack.patch
===================================================================
--- sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-build-hack.patch (rev 0)
+++ sun-jaxb/2.1.4.patch03-brew/src/glassfish-jaxb-build-hack.patch 2009-10-27 18:19:13 UTC (rev 30459)
@@ -0,0 +1,11 @@
+--- jaxb-ri/docs/xjc.html.old 2008-07-18 11:56:23.000000000 -0400
++++ jaxb-ri/docs/xjc.html 2008-07-18 11:56:53.000000000 -0400
+@@ -51,7 +51,7 @@
+ <h4>Output</h4>
+ <blockquote>
+ <!-- load help message from property file -->
+- <util:properties uri="../xjc/src/com/sun/tools/xjc/MessageBundle.properties" xmlns:util="jelly:util"/>
++ <util:properties uri="../xjc/src/com/sun/tools/xjc/MessageBundle.properties"/>
+ <pre>${Driver.Public.Usage}</pre>
+ </blockquote>
+ </blockquote>
More information about the jboss-cvs-commits
mailing list