Bug 113236 - [1.5] [compiler] Another difference between javac and Eclipse
Summary: [1.5] [compiler] Another difference between javac and Eclipse
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.2 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 10:54 EDT by Sergey Vladimirov CLA
Modified: 2005-10-21 04:40 EDT (History)
0 users

See Also:


Attachments
Test case (6.41 KB, application/x-zip-compressed)
2005-10-20 10:55 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 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.