This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | IllegalArgumentException: Illegal replacement | ||
---|---|---|---|
Product: | platform | Reporter: | hindermath |
Component: | -- Other -- | Assignee: | issues@platform <issues> |
Status: | NEW --- | ||
Severity: | normal | CC: | sdedic, tzezula, zmirc |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 200346 |
Attachments: | stacktrace |
Description
hindermath
2013-05-02 13:31:55 UTC
Created attachment 134039 [details]
stacktrace
adding tzezula and sdedic on CC, I'm fairly clueless what the error means. You seem to have participated in the affected code in FileEncodingQuery.ProxyEncoder thanks for any hints. The problem seems to be that the delagate encoder does not support given replacement. In the time the replaceWith([B)V was called the delegate was not yet known, the replacement was stored for future when the delegate will be known. When the delegate was found the ProxyEncoder tries to set the replacement but it fails as the delegate does not support given replacement. The issue belongs to Platform/other (queries). There are two possibilities how this may happen: 1st) The caller of the replaceWith([B)V does not checked isLegalReplacement([B)Z. 2nd) The isLegalReplacement([B)Z ended with different CharsetEncoder. It may be probably safe to ignore the replacement in some cases, I will need to check if this is the case. This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=200346 |