Bug 113218

Summary: [1.5][compiler] Javac disagrees with Eclipse compiler
Product: [Eclipse Project] JDT Reporter: Sergey Vladimirov <vlsergey>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Test case none

Description Sergey Vladimirov CLA 2005-10-20 07:28:13 EDT
No errors in Eclipse, but build with javac failed

Buildfile: C:\Documents and Settings\Vladimirov\workspace\GenericsTest\build.xml
build:
    [javac] Compiling 2 source files to C:\Documents and 
Settings\Vladimirov\workspace\GenericsTest\target
    [javac] C:\Documents and 
Settings\Vladimirov\workspace\GenericsTest\src\Test.java:9: unexpected type
    [javac] found   : FieldManager<capture of ? extends Field>
    [javac] required: reference
    [javac] if (meta2.getFieldManager() instanceof ExtFieldManager) {
    [javac] ^
    [javac] 1 error

BUILD FAILED
C:\Documents and Settings\Vladimirov\workspace\GenericsTest\build.xml:4: 
Compile failed; see the compiler error output for details.

Total time: 2 seconds
Comment 1 Sergey Vladimirov CLA 2005-10-20 07:28:58 EDT
Created attachment 28511 [details]
Test case
Comment 2 Philipe Mulet CLA 2005-10-20 11:13:25 EDT
This feels like a bug in javac. You should report it to them.
Comment 3 Philipe Mulet CLA 2005-10-20 11:14:41 EDT
Olivier: pls extract a regression test out of it; then close as invalid.
Comment 4 Olivier Thomann CLA 2005-10-20 12:11:03 EDT
Added regression test in
org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test855