You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/03/21 01:44:32 UTC
[jira] Created: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
[classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
-----------------------------------------------------------------------------------------------------
Key: HARMONY-3453
URL: https://issues.apache.org/jira/browse/HARMONY-3453
Project: Harmony
Issue Type: Bug
Components: Classlib, Non-bug differences from RI
Reporter: Vasily Zakharov
Consider the following test:
import javax.swing.JEditorPane;
public class Test {
public static void main(String args[]) throws Exception {
System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
try {
JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
} catch (Exception e) {
e.printStackTrace();
}
System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
}
}
public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
}
Output on RI:
null
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
at TestNPE.main(TestNPE.java:8)
MyEditorKit@1a46e30
MyEditorKit@3e25a5
Output on Harmony:
null
null
null
The specification says nothing about passing null classloader.
The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483597 ]
Vasily Zakharov commented on HARMONY-3453:
------------------------------------------
Yes, I agree. It seems we've come to consensus. My propositions are as follows:
1. Rewrite registration information storage to use Map from content types to instances of a special class storing class name and classloader. Swing is not thread-safe, so we may not care of the synchronization, and HashMap should be faster than Hashtable.
2. Add caching of the resolved EditorKit instances to avoid resolving through classloader multiple times. Probably the best idea is to add a 3rd field to a special class mentioned in (1), to avoid another Map lookup in case the EditorKit instance is not yet resolved for the particular content type.
3. Implement all the above as a patch to HARMONY-3454, where it truly belongs.
4. Do not throw NPE as RI does, and close this issue as a non-bug-difference.
Do you agree? Any additional comments, suggestions? May I proceed with making a patch?
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Assigned To: Alexey Petrenko
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485542 ]
Vasily Zakharov commented on HARMONY-3453:
------------------------------------------
While preparing a patch, I've found out why three lists were used instead of a Map. The reason is setEditorKit(EditorKit) method that requires a lookup FROM EditorKit TO ContentType - in other words, if Map is used, a reverse lookup needs to be performed, which is rather expensive operation.
However, this reverse lookup is only needed in one place, and forward lookups are used everywhere, and also Map solution is more convenient and less error-prone. So I think, changing three lists to a Map is still is still preferable.
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Assigned To: Alexey Petrenko
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485221 ]
Alexey A. Ivanov commented on HARMONY-3453:
-------------------------------------------
Yes, that would be nice.
The point two may lead to incompatibility: we should check whether RI also caches EditorKit instances. Since one can use a special ClassLoader, the caching may be implemented in ClassLoader. Another point, ClassLoader itself, or constructor of EditorKit may perform side effects, and using the copy of EditorKit (moreover it may be not Cloneable as it's not required that an implementation extends DefaultEditorKit) may lead to weird behavior.
As for other point, I have no objections.
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Assigned To: Alexey Petrenko
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482662 ]
Alexey A. Ivanov commented on HARMONY-3453:
-------------------------------------------
I think it's better to use HashMap/HashTable for storing registered EditorKits because of performance reasons.
On the other hand I guess there won't be many items registered, thus making performance gains very low.
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483171 ]
Vasily Zakharov commented on HARMONY-3453:
------------------------------------------
Alexey,
Thanks for the idea, but your comment should probably have gone to HARMONY-3454.
This issue is only about RI throwing NPE from JEditorPane.registerEditorKitForContentType(String, String, null).
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485941 ]
Alexey A. Ivanov commented on HARMONY-3453:
-------------------------------------------
Great!
I forgot that EditorKit was a class but not an interface. Thus there's no problem using clone() of course!
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Assigned To: Alexey Petrenko
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485518 ]
Vasily Zakharov commented on HARMONY-3453:
------------------------------------------
Hmm, good concern, thanks Alexey. I've investigated this question, here's the test:
import javax.swing.JEditorPane;
public class Test {
public static void main(String args[]) throws Exception {
System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
try {
JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
} catch (Exception e) {
e.printStackTrace();
}
System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
}
}
import java.io.*;
import javax.swing.*;
import javax.swing.text.*;
public class MyEditorKit extends EditorKit {
public Object clone() {
Object ret = super.clone();
System.out.println("clone() of " + this + " returning: " + ret);
return ret;
}
public Caret createCaret() { return null; }
public Document createDefaultDocument() { return null; }
public Action[] getActions() { return null; }
public String getContentType() { return null; }
public ViewFactory getViewFactory() { return null; }
public void read(InputStream in, Document doc, int pos) {}
public void read(Reader in, Document doc, int pos) {}
public void write(OutputStream out, Document doc, int pos, int len) {}
public void write(Writer out, Document doc, int pos, int len) {}
}
Output on RI:
null
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
at Test.main(Test.java:7)
clone() of MyEditorKit@110b053 returning: MyEditorKit@a83b8a
MyEditorKit@a83b8a
clone() of MyEditorKit@110b053 returning: MyEditorKit@dd20f6
MyEditorKit@dd20f6
clone() of MyEditorKit@19efb05 returning: MyEditorKit@723d7c
MyEditorKit@723d7c
clone() of MyEditorKit@19efb05 returning: MyEditorKit@22c95b
MyEditorKit@22c95b
This test shows the following:
- It looks like RI keeps one EditorKit instance per content type (see the addresses at "clone() of ...").
- It looks like RI calls clone() on that instance and returns that clone from createEditorKitForContentType().
EditorKit implements Clonable, so using clone() on EditorKit instances seems allowable. Also, the specification for createEditorKitForContentType(EditorKit) states: "Once a prototype EditorKit instance is successfully located, it is cloned and the clone is returned."
To me, all this looks reasonable enough to implement the instance caching per point 2 in my previous comment.
If you agree and have no other objections, I'm proceeding with the patch. Thank you!
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Assigned To: Alexey Petrenko
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483190 ]
Alexey A. Ivanov commented on HARMONY-3453:
-------------------------------------------
If Harmony uses HashMap or Hashtable to store the values, it would throw NPE just like RI does since it's impossible to put null value.
It was this issue that I meant to comment because I talked about how we can achieve thrown NPE. HARMONY-3454 is closely related but it's about another issue, however, using this idea may help to solve the HARMONY-3454 issue as well.
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482635 ]
Vasily Zakharov commented on HARMONY-3453:
------------------------------------------
The test returns null on Harmony in all cases because another bug exists in Harmony, see HARMONY-3454.
However, that issue is not directly related to this one.
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483433 ]
Alexey A. Ivanov commented on HARMONY-3453:
-------------------------------------------
But it's not possible to put null into Hashtable.
If decision is made to use Map to store values, then of course a class with three fields should be used rather than three Maps; don't you agree? The same idea could be used to store values in ArrayLists. Possibly the overhead of three ArrayLists is more than using an object for every value; and this implementation is much clearer and less error-prone than using three arrays with "synchronized" values.
And yes, we can of course avoid throwing NPE where it shouldn't be one.
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko reassigned HARMONY-3453:
----------------------------------------
Assignee: Alexey Petrenko
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Assigned To: Alexey Petrenko
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483196 ]
Vasily Zakharov commented on HARMONY-3453:
------------------------------------------
It IS possible to put null value to a HashMap.
Moreover, as far as I understand it SHOULD be possible to store null value to reflect the bootstrap class loader.
And the bug in RI is not only the NPE itself, but also a fact that RI throws NPE besides performing the registration.
So I'm sure we SHOULD NOT try to reproduce this bad behavior in Harmony.
I think it could make sense to store the resolved instances of EditorKits in a separate table (and clone them the next time they're used - as the specification suggests).
However, I'm not sure if the registration information can be conveniently stored in a Map, as the registration data contain three fields - content type, class name and classloader. It looks like the current implementation using three ArrayLists is rather effective, however we can of course use a Map with a special class for values, storing class name and class loader pair.
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vasily Zakharov closed HARMONY-3453.
------------------------------------
Resolution: Won't Fix
Ok, I'm closing this issue as a non-bug-difference.
Please see HARMONY-3454 for the continued discussion and the related patches.
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Assigned To: Alexey Petrenko
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483189 ]
Vasily Zakharov commented on HARMONY-3453:
------------------------------------------
Here's the discussion of this issue on the dev-list:
http://thread.gmane.org/gmane.comp.java.harmony.devel/25068
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vasily Zakharov updated HARMONY-3453:
-------------------------------------
Priority: Minor (was: Major)
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3453) [classlib][swing]
JEditorPane.registerEditorKitForContentType(String, String, null) doesn't
throw NPE
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485556 ]
Vasily Zakharov commented on HARMONY-3453:
------------------------------------------
I've attached an updated fix patch to HARMONY-3454.
> [classlib][swing] JEditorPane.registerEditorKitForContentType(String, String, null) doesn't throw NPE
> -----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3453
> URL: https://issues.apache.org/jira/browse/HARMONY-3453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, Non-bug differences from RI
> Reporter: Vasily Zakharov
> Assigned To: Alexey Petrenko
> Priority: Minor
>
> Consider the following test:
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String args[]) throws Exception {
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> try {
> JEditorPane.registerEditorKitForContentType("testContentType1", "MyEditorKit", null);
> } catch (Exception e) {
> e.printStackTrace();
> }
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType1"));
> JEditorPane.registerEditorKitForContentType("testContentType2", "MyEditorKit");
> System.out.println(JEditorPane.createEditorKitForContentType("testContentType2"));
> }
> }
> public class MyEditorKit extends javax.swing.text.DefaultEditorKit {
> }
> Output on RI:
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at javax.swing.JEditorPane.registerEditorKitForContentType(Unknown Source)
> at TestNPE.main(TestNPE.java:8)
> MyEditorKit@1a46e30
> MyEditorKit@3e25a5
> Output on Harmony:
> null
> null
> null
> The specification says nothing about passing null classloader.
> The NPE occurs on RI, and doesn't occur on Harmony, it seems that RI uses Hashtable (that doesn't permit null keys/vaues) to store registered classloaders, and Harmony uses ArrayList.
> Also, as one may see, RI, besides throwing NPE, also registers the specified content type anyway (compare createEditorKitForContentType results before and after registration attempt). In my opinion, this behaviour is clearly a bug in RI. So my suggestion is to consider this issue a non-bug difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.