Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_15-b03
OS: Mac OS X
GUEST: Attempt to save all files and build.
hindermath: Want to rename the project name.
java.lang.IllegalArgumentException: Illegal replacement
Created attachment 134039 [details]
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.