Bug 360253

Summary: GenericSignatureFormatError with ITD and Java 7
Product: [Tools] AspectJ Reporter: Max Meier <afins_2004>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: critical    
Priority: P3 CC: aclement, andrew.eisenberg, archie
Version: 1.6.12   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
test project none

Description Max Meier CLA 2011-10-07 12:08:45 EDT
Created attachment 204759 [details]
test project

Hallo, 

the following test example throws java.lang.reflect.GenericSignatureFormatError

import java.util.*;

public aspect A {

  public interface I {}
  
  public List<?> I.test(Enum<?> ...  values) {
    return null;
  }
  
}

import java.beans.*;

public class T implements A.I {

  public static void main(String[] args) throws IntrospectionException {
    System.out.println(Introspector.getBeanInfo(T.class).getBeanDescriptor());
  }
  
}

This seams only appear in this combination with a generic vararg parameter (not only Enum<?> also List<?> or Map<?,?>) and a complex return type. No problems with 

public String I.test(Enum<?> ...  values) : simple return type
public List<?> I.test(Enum<?> values) : no vararg
public List<?> I.test(Enum ... values) : raw parameter type

Environment:

Eclipse IDE for Java Developers
Version: Indigo Service Release 1
Build id: 20110916-0149

java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

Eclipse AspectJ Development Tools
Version: 2.2.0.e37x-20111004-0800
AspectJ version: 1.6.12.20111003171000

Any idea?
Thanks!
max
Comment 1 Andrew Eisenberg CLA 2011-10-07 12:46:50 EDT
This looks more like an AspectJ bug.  Note that Java 7 is not yet supported by AspectJ.
Comment 2 Andrew Clement CLA 2011-10-07 12:49:15 EDT
With Java6 this project compiles and runs fine for me.

Looks related to use of Java7.
Comment 3 Max Meier CLA 2011-10-08 06:06:05 EDT
Is there any roadmap for java 7 support available ?
Comment 4 Andrew Clement CLA 2011-10-08 11:20:55 EDT
Hopefully before year end we will have full Java 7 support.

However, I don't imagine this bug necessarily requires a fully upgrade to Java7 - it is likely something straightforward.
Comment 5 Archie Cobbs CLA 2012-11-18 10:56:30 EST
May be related to Bug #394535 (which occurs on JDK 1.6).