You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...which makes sense, because even JCA 3.0 predates the introduction of generics in Java 1.5. But generics were implemented in a backwards-compatible manner. There should be nothing stopping us from specifying the type of the returned enumeration:
Per the JCA,
CommPortIdentifier.getPortIdentifiers()
is declared as:...which makes sense, because even JCA 3.0 predates the introduction of generics in Java 1.5. But generics were implemented in a backwards-compatible manner. There should be nothing stopping us from specifying the type of the returned enumeration:
This would make the API considerably easier to consume at no binary compatibility cost.
The text was updated successfully, but these errors were encountered: