Issue Details (XML | Word | Printable)

Key: JNAG-2
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: le-moulin-studio
Reporter: Mumrah
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
jnag

Type erasure compilation error in JnagSession.createProxy(Class<T>)

Created: 02/Aug/10 01:51 PM   Updated: 02/Aug/10 06:35 PM  Due: 07/Aug/10
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment:

Windows 7 - Eclipse 3.6 build 20100617-1415 - Java 1.6.0_13


Tags: type erasure compilation compiler generics


 Description  « Hide

Hello,

I've just upgraded to a new version of eclipse (Helios) and now i get a compilation error in jnag-jse project in JnagSession interface and JnagSessionImpl

[code]
public <T extends Singleton & Remote> T createProxy(Class<T> remoteInterface);
public <T extends BindToLocalId & Remote> T createProxy(Class<T> remoteInterface);
[/code]

Error: Method createProxy(Class<T>) has the same erasure createProxy(Class<T>) as another method in type JnagSession

From what i've read the signature is the same cause return type is not part of the signature. The fact that it compiles well is known by sun and seems to be fixed in version java 7 b55 compiler. The eclipse team anticipated this change in Helios

Jnag rds is not impacted cause it uses different method names for binding

[url]http://bugs.sun.com/view_bug.do?bug_id=6182950[/url]
[url]http://forums.sun.com/thread.jspa?threadID=5416081[/url]



le-moulin-studio added a comment - 02/Aug/10 06:33 PM

@#$%@#$: This "bug" was pretty useful to me. If a bug is useful, why do they fix it ?

I will change the names of the 2 methods.