You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Evgeniya Maenkova (JIRA)" <ji...@apache.org> on 2007/02/20 17:13:05 UTC

[jira] Created: (HARMONY-3209) Harmony's default instance of javax.xml.TransformerFactory differs from RI's one

Harmony's default instance of javax.xml.TransformerFactory differs from RI's one
--------------------------------------------------------------------------------

                 Key: HARMONY-3209
                 URL: https://issues.apache.org/jira/browse/HARMONY-3209
             Project: Harmony
          Issue Type: Bug
          Components: Misc
            Reporter: Evgeniya Maenkova


Xalan provides both a compiler and a runtime processor.
Interpretive processor is used by defaut in xalan's distribution unlike SUN's jdk, which uses XSLT compiler.

So Harmony uses "interpreter" mode now.
This change could be done by setting of system property.

See please more info at http://xml.apache.org/xalan-j/xsltc_usage.html.

The test to see this is:
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.transform.TransformerFactory;

public class TransformerFactoryTest {
	public static void main(String[] args) {
		System.out.println(TransformerFactory.newInstance());		
		System.out.println(DocumentBuilderFactory.newInstance());
		System.out.println(SAXParserFactory.newInstance());
	}
}

RI prints:
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl@247401
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@247eff
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl@2483b5
unlike Harmony:
org.apache.xalan.processor.TransformerFactoryImpl@206b9400
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@206c004c
org.apache.xerces.jaxp.SAXParserFactoryImpl@206c46a8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-3209) Harmony's default instance of javax.xml.TransformerFactory differs from RI's one

Posted by "Evgeniya Maenkova (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Evgeniya Maenkova closed HARMONY-3209.
--------------------------------------


Alexey P, thanks for applying this patch. Works as expected.

Alexey V, I raised this question on dev-list a month ago.


> Harmony's default instance of javax.xml.TransformerFactory differs from RI's one
> --------------------------------------------------------------------------------
>
>                 Key: HARMONY-3209
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3209
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Misc
>            Reporter: Evgeniya Maenkova
>         Assigned To: Alexey Petrenko
>         Attachments: set_property.patch
>
>
> Xalan provides both a compiler and a runtime processor.
> Interpretive processor is used by defaut in xalan's distribution unlike SUN's jdk, which uses XSLT compiler.
> So Harmony uses "interpreter" mode now.
> This change could be done by setting of system property.
> See please more info at http://xml.apache.org/xalan-j/xsltc_usage.html.
> The test to see this is:
> import javax.xml.parsers.DocumentBuilderFactory;
> import javax.xml.parsers.SAXParserFactory;
> import javax.xml.transform.TransformerFactory;
> public class TransformerFactoryTest {
> 	public static void main(String[] args) {
> 		System.out.println(TransformerFactory.newInstance());		
> 		System.out.println(DocumentBuilderFactory.newInstance());
> 		System.out.println(SAXParserFactory.newInstance());
> 	}
> }
> RI prints:
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl@247401
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@247eff
> com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl@2483b5
> unlike Harmony:
> org.apache.xalan.processor.TransformerFactoryImpl@206b9400
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@206c004c
> org.apache.xerces.jaxp.SAXParserFactoryImpl@206c46a8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3209) Harmony's default instance of javax.xml.TransformerFactory differs from RI's one

Posted by "Evgeniya Maenkova (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Evgeniya Maenkova updated HARMONY-3209:
---------------------------------------

    Attachment: set_property.patch

to set system property for TransformerFactory

> Harmony's default instance of javax.xml.TransformerFactory differs from RI's one
> --------------------------------------------------------------------------------
>
>                 Key: HARMONY-3209
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3209
>             Project: Harmony
>          Issue Type: Bug
>          Components: Misc
>            Reporter: Evgeniya Maenkova
>         Attachments: set_property.patch
>
>
> Xalan provides both a compiler and a runtime processor.
> Interpretive processor is used by defaut in xalan's distribution unlike SUN's jdk, which uses XSLT compiler.
> So Harmony uses "interpreter" mode now.
> This change could be done by setting of system property.
> See please more info at http://xml.apache.org/xalan-j/xsltc_usage.html.
> The test to see this is:
> import javax.xml.parsers.DocumentBuilderFactory;
> import javax.xml.parsers.SAXParserFactory;
> import javax.xml.transform.TransformerFactory;
> public class TransformerFactoryTest {
> 	public static void main(String[] args) {
> 		System.out.println(TransformerFactory.newInstance());		
> 		System.out.println(DocumentBuilderFactory.newInstance());
> 		System.out.println(SAXParserFactory.newInstance());
> 	}
> }
> RI prints:
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl@247401
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@247eff
> com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl@2483b5
> unlike Harmony:
> org.apache.xalan.processor.TransformerFactoryImpl@206b9400
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@206c004c
> org.apache.xerces.jaxp.SAXParserFactoryImpl@206c46a8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3209) Harmony's default instance of javax.xml.TransformerFactory differs from RI's one

Posted by "Evgeniya Maenkova (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Evgeniya Maenkova updated HARMONY-3209:
---------------------------------------

    Issue Type: Improvement  (was: Bug)

> Harmony's default instance of javax.xml.TransformerFactory differs from RI's one
> --------------------------------------------------------------------------------
>
>                 Key: HARMONY-3209
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3209
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Misc
>            Reporter: Evgeniya Maenkova
>         Attachments: set_property.patch
>
>
> Xalan provides both a compiler and a runtime processor.
> Interpretive processor is used by defaut in xalan's distribution unlike SUN's jdk, which uses XSLT compiler.
> So Harmony uses "interpreter" mode now.
> This change could be done by setting of system property.
> See please more info at http://xml.apache.org/xalan-j/xsltc_usage.html.
> The test to see this is:
> import javax.xml.parsers.DocumentBuilderFactory;
> import javax.xml.parsers.SAXParserFactory;
> import javax.xml.transform.TransformerFactory;
> public class TransformerFactoryTest {
> 	public static void main(String[] args) {
> 		System.out.println(TransformerFactory.newInstance());		
> 		System.out.println(DocumentBuilderFactory.newInstance());
> 		System.out.println(SAXParserFactory.newInstance());
> 	}
> }
> RI prints:
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl@247401
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@247eff
> com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl@2483b5
> unlike Harmony:
> org.apache.xalan.processor.TransformerFactoryImpl@206b9400
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@206c004c
> org.apache.xerces.jaxp.SAXParserFactoryImpl@206c46a8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-3209) Harmony's default instance of javax.xml.TransformerFactory differs from RI's one

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko reassigned HARMONY-3209:
----------------------------------------

    Assignee: Alexey Petrenko

> Harmony's default instance of javax.xml.TransformerFactory differs from RI's one
> --------------------------------------------------------------------------------
>
>                 Key: HARMONY-3209
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3209
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Misc
>            Reporter: Evgeniya Maenkova
>         Assigned To: Alexey Petrenko
>         Attachments: set_property.patch
>
>
> Xalan provides both a compiler and a runtime processor.
> Interpretive processor is used by defaut in xalan's distribution unlike SUN's jdk, which uses XSLT compiler.
> So Harmony uses "interpreter" mode now.
> This change could be done by setting of system property.
> See please more info at http://xml.apache.org/xalan-j/xsltc_usage.html.
> The test to see this is:
> import javax.xml.parsers.DocumentBuilderFactory;
> import javax.xml.parsers.SAXParserFactory;
> import javax.xml.transform.TransformerFactory;
> public class TransformerFactoryTest {
> 	public static void main(String[] args) {
> 		System.out.println(TransformerFactory.newInstance());		
> 		System.out.println(DocumentBuilderFactory.newInstance());
> 		System.out.println(SAXParserFactory.newInstance());
> 	}
> }
> RI prints:
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl@247401
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@247eff
> com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl@2483b5
> unlike Harmony:
> org.apache.xalan.processor.TransformerFactoryImpl@206b9400
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@206c004c
> org.apache.xerces.jaxp.SAXParserFactoryImpl@206c46a8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-3209) Harmony's default instance of javax.xml.TransformerFactory differs from RI's one

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-3209.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> Harmony's default instance of javax.xml.TransformerFactory differs from RI's one
> --------------------------------------------------------------------------------
>
>                 Key: HARMONY-3209
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3209
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Misc
>            Reporter: Evgeniya Maenkova
>         Assigned To: Alexey Petrenko
>         Attachments: set_property.patch
>
>
> Xalan provides both a compiler and a runtime processor.
> Interpretive processor is used by defaut in xalan's distribution unlike SUN's jdk, which uses XSLT compiler.
> So Harmony uses "interpreter" mode now.
> This change could be done by setting of system property.
> See please more info at http://xml.apache.org/xalan-j/xsltc_usage.html.
> The test to see this is:
> import javax.xml.parsers.DocumentBuilderFactory;
> import javax.xml.parsers.SAXParserFactory;
> import javax.xml.transform.TransformerFactory;
> public class TransformerFactoryTest {
> 	public static void main(String[] args) {
> 		System.out.println(TransformerFactory.newInstance());		
> 		System.out.println(DocumentBuilderFactory.newInstance());
> 		System.out.println(SAXParserFactory.newInstance());
> 	}
> }
> RI prints:
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl@247401
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@247eff
> com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl@2483b5
> unlike Harmony:
> org.apache.xalan.processor.TransformerFactoryImpl@206b9400
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@206c004c
> org.apache.xerces.jaxp.SAXParserFactoryImpl@206c46a8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.