Mercurial > hg > release > icedtea8-forest-3.0 > jaxp
changeset 664:195b74b3e579 jdk8u5-b03
Merge
author | asaha |
---|---|
date | Mon, 06 Jan 2014 13:15:40 -0800 |
parents | 5783ced91458 (current diff) 985376a77c4c (diff) |
children | b0f56d9ed427 |
files | .hgtags |
diffstat | 30 files changed, 56 insertions(+), 47 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgtags Tue Dec 24 14:14:00 2013 -0800 +++ b/.hgtags Mon Jan 06 13:15:40 2014 -0800 @@ -243,5 +243,6 @@ 69a930376c70beb9877970128bad0f04cb0c6eb1 jdk8-b119 64d8b228a72cf9082b1a9a881c81188ccffde234 jdk8-b120 4045edd35e8ba73bfdc23ce8961b9640d4145fe5 jdk8-b121 +93bf25903af0a8eaec78d7b1ab85a5b812c9aef2 jdk8-b122 22b63601be6f04fcb2c3b563261f14869954b44a jdk8u5-b01 bd97ff5f82588c627869218df02a9c2dbb9402d0 jdk8u5-b02
--- a/src/com/sun/org/apache/xalan/internal/XalanConstants.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xalan/internal/XalanConstants.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/com/sun/org/apache/xalan/internal/utils/FeatureManager.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xalan/internal/utils/FeatureManager.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/com/sun/org/apache/xalan/internal/utils/FeaturePropertyBase.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xalan/internal/utils/FeaturePropertyBase.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/com/sun/org/apache/xerces/internal/impl/Constants.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/impl/Constants.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. */ /*
--- a/src/com/sun/org/apache/xerces/internal/impl/PropertyManager.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/impl/PropertyManager.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLDTDScannerImpl.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/impl/XMLDTDScannerImpl.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. */ /*
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. */ /*
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. */ /*
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLEntityScanner.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/impl/XMLEntityScanner.java Mon Jan 06 13:15:40 2014 -0800 @@ -1142,7 +1142,7 @@ int i=0; for ( i = offset; i < fCurrentEntity.position; i++) { fCurrentEntity.ch[i] = '\n'; - whiteSpaceLookup[whiteSpaceLen++]=i; + storeWhiteSpace(i); } int length = fCurrentEntity.position - offset; @@ -1163,27 +1163,18 @@ } // scan literal value - while (fCurrentEntity.position < fCurrentEntity.count) { - c = fCurrentEntity.ch[fCurrentEntity.position++]; + for (; fCurrentEntity.position<fCurrentEntity.count; fCurrentEntity.position++) { + c = fCurrentEntity.ch[fCurrentEntity.position]; if ((c == quote && - (!fCurrentEntity.literal || isExternal)) - || c == '%' || !XMLChar.isContent(c)) { - fCurrentEntity.position--; + (!fCurrentEntity.literal || isExternal)) || + c == '%' || !XMLChar.isContent(c)) { break; } - if(whiteSpaceInfoNeeded){ - if(c == 0x20 || c == 0x9){ - if(whiteSpaceLen < whiteSpaceLookup.length){ - whiteSpaceLookup[whiteSpaceLen++]= fCurrentEntity.position-1; - }else{ - int [] tmp = new int[whiteSpaceLookup.length*2]; - System.arraycopy(whiteSpaceLookup,0,tmp,0,whiteSpaceLookup.length); - whiteSpaceLookup = tmp; - whiteSpaceLookup[whiteSpaceLen++]= fCurrentEntity.position - 1; - } - } + if (whiteSpaceInfoNeeded && c == '\t') { + storeWhiteSpace(fCurrentEntity.position); } } + int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; content.setValues(fCurrentEntity.ch, offset, length); @@ -1209,6 +1200,24 @@ } // scanLiteral(int,XMLString):int + /** + * Save whitespace information. Increase the whitespace buffer by 100 + * when needed. + * + * For XML 1.0, legal characters below 0x20 are 0x09 (TAB), 0x0A (LF) and 0x0D (CR). + * + * @param whiteSpacePos position of a whitespace in the scanner entity buffer + */ + private void storeWhiteSpace(int whiteSpacePos) { + if (whiteSpaceLen >= whiteSpaceLookup.length) { + int [] tmp = new int[whiteSpaceLookup.length + 100]; + System.arraycopy(whiteSpaceLookup, 0, tmp, 0, whiteSpaceLookup.length); + whiteSpaceLookup = tmp; + } + + whiteSpaceLookup[whiteSpaceLen++] = whiteSpacePos; + } + //CHANGED: /** * Scans a range of character data up to the specified delimiter,
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLNSDocumentScannerImpl.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/impl/XMLNSDocumentScannerImpl.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. */ /*
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLScanner.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/impl/XMLScanner.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. */ /*
--- a/src/com/sun/org/apache/xerces/internal/jaxp/validation/StAXValidatorHelper.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/jaxp/validation/StAXValidatorHelper.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/com/sun/org/apache/xerces/internal/util/SymbolTable.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/org/apache/xerces/internal/util/SymbolTable.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. */ /*
--- a/src/com/sun/xml/internal/stream/Entity.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/xml/internal/stream/Entity.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. */ /*
--- a/src/com/sun/xml/internal/stream/StaxXMLInputSource.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/xml/internal/stream/StaxXMLInputSource.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/com/sun/xml/internal/stream/XMLEntityStorage.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/xml/internal/stream/XMLEntityStorage.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/com/sun/xml/internal/stream/writers/WriterUtility.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/xml/internal/stream/writers/WriterUtility.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/com/sun/xml/internal/stream/writers/XMLStreamWriterImpl.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/com/sun/xml/internal/stream/writers/XMLStreamWriterImpl.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/javax/xml/XMLConstants.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/javax/xml/XMLConstants.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/javax/xml/parsers/SAXParser.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/javax/xml/parsers/SAXParser.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/javax/xml/stream/XMLOutputFactory.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/javax/xml/stream/XMLOutputFactory.java Mon Jan 06 13:15:40 2014 -0800 @@ -241,11 +241,10 @@ * factory class name that provides implementation of the factory. * * <p> - * Note that this is a new method that replaces the deprecated + * Note that this is a new method that replaces the deprecated * {@link #newInstance(java.lang.String, java.lang.ClassLoader) * newInstance(String factoryId, ClassLoader classLoader)} method. - * No changes in behavior are defined by this replacement method relative - * to the deprecated method. + * The original method was incorrectly defined to return XMLInputFactory. * </p> * * @param factoryId Name of the factory to find, same as
--- a/src/javax/xml/validation/Validator.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/javax/xml/validation/Validator.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/javax/xml/xpath/XPathException.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/javax/xml/xpath/XPathException.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/javax/xml/xpath/XPathFactory.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/javax/xml/xpath/XPathFactory.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/org/xml/sax/helpers/NewInstance.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/org/xml/sax/helpers/NewInstance.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/org/xml/sax/helpers/ParserAdapter.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/org/xml/sax/helpers/ParserAdapter.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/org/xml/sax/helpers/ParserFactory.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/org/xml/sax/helpers/ParserFactory.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/org/xml/sax/helpers/SecuritySupport.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/org/xml/sax/helpers/SecuritySupport.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it
--- a/src/org/xml/sax/helpers/XMLReaderFactory.java Tue Dec 24 14:14:00 2013 -0800 +++ b/src/org/xml/sax/helpers/XMLReaderFactory.java Mon Jan 06 13:15:40 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it