Skip to content

Commit

Permalink
AbstractTransformer: deal with constructor types showing up after cey…
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Jan 21, 2015
1 parent 0ebd1e8 commit 198e9eb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4629,6 +4629,10 @@ public JCExpression makeReifiedTypeArgument(ProducedType pt) {

private JCExpression makeReifiedTypeArgumentResolved(ProducedType pt, boolean qualified) {
TypeDeclaration declaration = pt.getDeclaration();
if(declaration instanceof Constructor){
pt = pt.getExtendedType();
declaration = pt.getDeclaration();
}
if(declaration instanceof ClassOrInterface){
if(declaration.isJavaEnum()){
pt = pt.getExtendedType();
Expand Down

0 comments on commit 198e9eb

Please sign in to comment.