Bug 113236

Summary: [1.5] [compiler] Another difference between javac and Eclipse
Product: [Eclipse Project] JDT Reporter: Sergey Vladimirov <vlsergey>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
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 10:54:12 EDT
Today is good day for bugs in generics :)

Buildfile: C:\Documents and Settings\Vladimirov\workspace\GenericsTest2
\build.xml
build:
    [javac] Compiling 3 source files to C:\Documents and 
Settings\Vladimirov\workspace\GenericsTest2\target
    [javac] C:\Documents and Settings\Vladimirov\workspace\GenericsTest2
\src\Test.java:6: Field cannot be dereferenced
    [javac] String result = form.getField().toString();
    [javac] ^
    [javac] 1 error

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

Total time: 6 seconds
Comment 1 Sergey Vladimirov CLA 2005-10-20 10:55:38 EDT
Created attachment 28521 [details]
Test case
Comment 2 Philipe Mulet CLA 2005-10-20 11:18:41 EDT
Suspecting another javac bug.
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5003431
Comment 3 Philipe Mulet CLA 2005-10-20 11:29:53 EDT
Olivier: pls figure a reduced test case for adding to regression suite.

Re: Today is good day for bugs in generics :)
Sergey - it doesn't look bad so far... <g>
Comment 4 Olivier Thomann CLA 2005-10-20 11:41:15 EDT
Added regression test in
org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test854.