Community
Participate
Working Groups
3.1M4 package p; import java.util.Vector; public class NestedVectors0 { void k() { Vector v2 = new Vector(); Vector v3 = new Vector(); v3.add("fff"); v2.add(v3); } } Consider the ClassInstanceCreation nodes for Vector. (AST is JLS3 level) When you ask the binding (which is a RawTypeBinding) isFromSource() it returns true which is incorrect.
the workaround that I used is: //XXX workaround for 84181 boolean isFromSource= tb.isRawType() ? tb.getErasure().isFromSource() : tb.isFromSource();
Fixed and released in HEAD. Regression test added in ASTConverter15Test.test0133.
a quickie, I see. thx Olivier
I released a new version. I also missed the case for a parameterized type. Regression test added in ASTConverter15Test.test0134.
Verified in I20050215-2300