-
Bug
-
Resolution: Fixed
-
P2
-
6u34
-
b77
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8010051 | 7u40 | David Buck | P2 | Resolved | Fixed | team |
JDK-8007952 | 7u21 | David Buck | P2 | Closed | Fixed | b02 |
JDK-8017346 | 6u65 | David Buck | P2 | Closed | Fixed | b01 |
JDK-8017251 | 6u60 | David Buck | P2 | Closed | Fixed | b01 |
SHORT SUMMARY:
RemoveCommentReader will not parse "/** ... **/" comments correctly.
INDICATORS:
proxy.pac files that contain "/** ... **/" comments correctly may not
function as expected.
COUNTER INDICATORS:
none
TRIGGERS:
none
KNOWN WORKAROUND:
Replace all instances of "**/" with "*/" in proxy.pac file
PRESENT SINCE:
6u34
HOW TO VERIFY:
Testcase:
=== CommentParseFail.java
// compile and run with <JRE_HOME>/lib/deploy.jar in CLASSPATH
import java.io.BufferedReader;
import java.io.FileReader;
import com.sun.deploy.net.proxy.RemoveCommentReader;
public class CommentParseFail {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new RemoveCommentReader(new
FileReader("CommentParseFail.java")));
String line, lastLine = null;
while ((line = in.readLine()) != null) {
lastLine = line;
}
if (lastLine.indexOf(Dummy.token) == -1) {
throw new Exception("Dummy class missing after comments
removed");
}
in.close();
}
}
/** this is a comment **/
class Dummy { static String token = "TokenString"; }
===
NOTES FOR SE:
None
REGRESSION:
Yes
}
- backported by
-
JDK-8010051 Jre 1.6.0_34 or higher can not read proxy.pac normally
-
- Resolved
-
-
JDK-8007952 Jre 1.6.0_34 or higher can not read proxy.pac normally
-
- Closed
-
-
JDK-8017251 Jre 1.6.0_34 or higher can not read proxy.pac normally
-
- Closed
-
-
JDK-8017346 Jre 1.6.0_34 or higher can not read proxy.pac normally
-
- Closed
-