JDK-7166990 : Inherited interfaces using generics sometimes looses the generic type
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux
  • CPU: x86
  • Submitted: 2012-05-07
  • Updated: 2012-09-06
  • Resolved: 2012-05-09
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Linux dilbert.dankulp.com 3.2.2 #1 SMP Thu Feb 2 15:12:55 EST 2012 x86_64 Intel(R) Core(TM) i7 CPU Q 820 @ 1.73GHz GenuineIntel GNU/Linux


A DESCRIPTION OF THE PROBLEM :

In some cases, the generic parts from an inherited interface are lost.



REGRESSION.  Last worked in version 6u31

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :

Download the bug from:

http://dankulp.com/bug.tar.gz

unpack, follow the steps in the README.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -

It should sucessfully compile.
ACTUAL -

Compile fails with errors that should compile fine.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Download the bug from:

http://dankulp.com/bug.tar.gz

unpack, follow the steps in the README.
---------- END SOURCE ----------

Comments
EVALUATION The submitted jarfile contains classfile that contain generic signaure attribute but have a classfile version of 48.0 (JDK 1.4). The compiler is now stricter about processing classfile attributes and it will report an error when it finds a generic attribute in a supposedly non-generic classfile version. If the test is compiled with the -Xlint:classfile option, an informative warning is generated: [...] ignoring Signature from 48.0 class files
09-05-2012