Skip to content

Commit

Permalink
javac-plugin fix for index oo & autoboxing. #10: Problems with autobo…
Browse files Browse the repository at this point in the history
…xing
  • Loading branch information
amelentev committed Jan 4, 2014
1 parent a51ce68 commit 0b6c684
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ public void visitIndexed(JCTree.JCArrayAccess tree) {
}
if (m.kind == Kinds.MTH) {
JCTree.JCMethodInvocation mi = make.Apply(null, make.Select(tree.indexed, m), List.of(tree.index, ass.rhs));
mi.type = attribExpr(mi, env);
owntype = mi.type = attribExpr(mi, env);
translateMap.put(ass, mi);
owntype = rhstype;
ok = true;
}
} else {
Expand Down
3 changes: 3 additions & 0 deletions javac-oo-plugin/src/test/java/JCPOOTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class JCPOOTest {
@Test public void testVecMat() throws Exception {
compile("VecMat", "../tests");
}
@Test public void testBoxing() throws Exception {
compile("Boxing", "../tests");
}
void compile(String clas) throws Exception {
compile(clas, "../examples/");
}
Expand Down

0 comments on commit 0b6c684

Please sign in to comment.