Bug 549025 - [1.8][spec] equivalence of "?" vs. "? extends Object"
Summary: [1.8][spec] equivalence of "?" vs. "? extends Object"
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.12   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 399975 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-07-06 12:45 EDT by Stephan Herrmann CLA
Modified: 2022-09-02 12:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2019-07-06 12:45:35 EDT
We had discussed the significance of "extends Object" in a wildcard before.
Only today I found https://bugs.openjdk.java.net/browse/JDK-6480391 which had been resolved for 8.

Note that it says "? extends Object" is an unbounded wildcard ...
Comment 1 Stephan Herrmann CLA 2019-07-06 12:46:30 EDT
BTW, found this via the 'excuse' of GenericTypeTest.test1142()
Comment 2 Stephan Herrmann CLA 2019-12-04 10:55:00 EST
*** Bug 399975 has been marked as a duplicate of this bug. ***
Comment 3 Stephan Herrmann CLA 2019-12-04 10:57:16 EST
The following sentence can indeed by found in JLS ยง4.5.1 since version 8:

   The wildcard ?extendsObject is equivalent to the unbounded wildcard ?.
Comment 4 Eclipse Genie CLA 2022-09-02 12:54:18 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.