[ 
https://issues.apache.org/jira/browse/MRESOLVER-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tamas Cservenak updated MRESOLVER-220:
--------------------------------------
    Description: 
Lock upgrading is not supported, it is the caller that must be aware of this.

Currently the code for all implementations returns {{false}} in case of lock 
upgrade attempted, same way as locking failed. IMHO, we should change this to 
some exception maybe?

In short: code attempting unsupported "lock upgrade" should fail fast and with 
a clear reason ("illegal op").

  was:
Lock upgrading is not supported, it is the caller that must be aware of this.

Currently the code for all implementations returns {{false}} in case of lock 
upgrade attempted, same way as locking failed. IMHO, we should change this to 
some exception maybe?


> Modify signaling for unsupported operations
> -------------------------------------------
>
>                 Key: MRESOLVER-220
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-220
>             Project: Maven Resolver
>          Issue Type: Improvement
>            Reporter: Tamas Cservenak
>            Priority: Major
>             Fix For: 1.9.13
>
>
> Lock upgrading is not supported, it is the caller that must be aware of this.
> Currently the code for all implementations returns {{false}} in case of lock 
> upgrade attempted, same way as locking failed. IMHO, we should change this to 
> some exception maybe?
> In short: code attempting unsupported "lock upgrade" should fail fast and 
> with a clear reason ("illegal op").



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to