| Summary: | [JUnit] DBCS4.1: JUnit can not import URL with CJK Extension B from clipboard | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Masaihko Maedera <maedera> | ||||||||
| Component: | UI | Assignee: | Dani Megert <daniel_megert> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | daniel_megert, emoffatt, pwebster, remy.suen | ||||||||
| Version: | 3.7 | ||||||||||
| Target Milestone: | 3.7 M7 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Masaihko Maedera
Created attachment 193552 [details]
U20B9F_\ud842\udf9f.xml, a JUnit log file
Created attachment 193553 [details] Bug342345.zip Sorry, I failed to attach the first file, named U20B9F_\ud842\udf9f.xml, with a raw CJK Extension B, since Bugzilla cgi can not accept it. I attached it containing Bug342345.zip again. Can you please attach the complete .log? Thanks.
>Eclipse hangs up.
What do you mean by that exactly?
What is the encoding of your OS and what is the default workspace encoding in your workspace?
I cannot reproduce it on my Windows machine as it doesn't support such file names.
(In reply to comment #0) > 5.Eclipse hangs up and it outputs the following error log. If Eclipse is frozen then perhaps a thread dump would be helpful for diagnostic purposes. I wasn't able to unzip the zip correctly. I got the XML and used a java app to copy it into a file via:
File home = new File("/opt/users/pwebster/");
String filename = "U20B9F_\ud842\udf9f.xml";
File outFile = new File(home, filename);
In eclipse, that shows up as
URL: file:///opt/users/pwebster/U20B9F_
Created attachment 193593 [details]
My filename appears with 2 characters
(In reply to comment #5) > In eclipse, that shows up as > URL: file:///opt/users/pwebster/U20B9F_ The rest of my comment was killed :-) If I copy the URL (as seen in the image) from the console and paste it into JUnit it works. If I copy it into firefox it opens the XML file. If I copy it out of the firefox location bar, I get: file:///opt/users/pwebster/U20B9F_%F0%A0%AE%9F.xml If I paste that into JUnit, it just sits there, working, until you cancel the import. I'll attach an image of my console just in case my pasts don't mean anything. PW I can reproduce the problem now by importing the ZIP directly into Eclipse. There are 3 bugs here:
1. The NPE which I think is unrelated and which I'll ignore for now as we can't reproduce it:
java.lang.NullPointerException
at
org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon.restore(MinMaxAddon.java:345)
2. IllegalArgumentException when trying to read the contents via URL:
java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:185)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:77)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:67)
at java.net.URL.openConnection(URL.java:946)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.jdt.internal.junit.model.JUnitModel$2.run(JUnitModel.java:430)
3. the dialog which never ends after the IAE until cancel is pressed.
The second problem (IAE) is a bug in the JRE and not in Eclipse. This bug has been fixed in newer JREs (e.g. Oracle Java 7 JRE). Added error handling for the IAE so that the dialog closes when the IAE occurs. Fixed in HEAD (JUnitModel.java, rev. 1.22). Available in builds >= N20110420-2000. |