Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding of source files unclear #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/jas/src/jas/InvokeDynamicCP.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class InvokeDynamicCP extends CP implements RuntimeConstants
public InvokeDynamicCP(String bsmClassName, String bsmName, String bsmSig, String methodName, String methodSig, int bsmTableIndex)
{
this.bsmTableIndex = bsmTableIndex;
uniq = (bsmClassName + "fv0" + bsmName + "&%$91&" + bsmSig+ "*(012$" + methodName + "dfg8932" + methodSig).intern();
uniq = (bsmClassName + "fv0\u20ac" + bsmName + "&%$91&" + bsmSig+ "*(012$" + methodName + "dfg8932" + methodSig).intern();
bsm = new MethodHandleCP(
MethodHandleCP.STATIC_METHOD_KIND, //bootstrap methods are always static methods
bsmClassName,
Expand Down
2 changes: 1 addition & 1 deletion lib/jas/src/jas/MethodHandleCP.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class MethodHandleCP extends CP implements RuntimeConstants
*/
public MethodHandleCP(int kind, String ownerName, String fieldOrMethodName, String sig)
{
uniq = kind + "$gfd" + ownerName + "&%$91&" + fieldOrMethodName + "*(012$" + sig;
uniq = kind + "$gfd\u20ac" + ownerName + "&%$91&" + fieldOrMethodName + "*(012$" + sig;
if(kind<5) { //first for kinds refer to fields
fieldOrMethod = new FieldCP(ownerName, fieldOrMethodName, sig);
} else {
Expand Down