Modify

Ticket #229 (assigned defect)

Opened 8 years ago

Last modified 3 years ago

Support wildcard type parameters in GJ.

Reported by: moschny Owned by: moschny
Priority: normal Milestone: JPlater
Component: gjc Version: 1.07i
Severity: normal Keywords: Java5
Cc:

Description

GJ doesn't support bound and unbound wildcard type parameters such as <? extends Tree>, <? super Tree> and <?> at all. This inhibits the usage of GJ and thus of JavaParty in a Java5 environment, because some of the library classes make use of those wildcard type params.

Attachments

Change History

comment:1 Changed 8 years ago by moschny

  • Version changed from 1.00 to 1.07i

The bugfix release 1.07i contains a hackish quick-fix: While reading class and method signatures from classfiles, wildcard type parameters are replaced in the following way:

<? super C>    => <C>
<? extends C>  => <C>
<?>            => <Object>

Note: Maybe <? super A> should instead be replaced by <Object> ?

comment:2 Changed 7 years ago by moschny

  • Status changed from new to assigned
  • Milestone set to JPlater

comment:3 Changed 7 years ago by moschny

  • Keywords Java5 added
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as assigned
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from moschny. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.