Bug 113218 - [1.5][compiler] Javac disagrees with Eclipse compiler
Summary: [1.5][compiler] Javac disagrees with Eclipse compiler
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 3.2 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 07:28 EDT by Sergey Vladimirov CLA
Modified: 2005-10-20 12:11 EDT (History)
0 users

See Also:


Attachments
Test case (9.04 KB, application/x-zip-compressed)
2005-10-20 07:28 EDT, Sergey Vladimirov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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