karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Quarendon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5364) org.apache.karaf.scheduler.Scheduler.schedule declares throws org.quartz.SchedulerException, but that's not API
Date Tue, 12 Sep 2017 09:26:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16162722#comment-16162722
] 

Tom Quarendon commented on KARAF-5364:
--------------------------------------

Oh, OK. apologies. I didn't check master, sorry.
You're right. There's now a "SchedulerError" exception.


> org.apache.karaf.scheduler.Scheduler.schedule declares throws org.quartz.SchedulerException,
but that's not API
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-5364
>                 URL: https://issues.apache.org/jira/browse/KARAF-5364
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-scheduler
>            Reporter: Tom Quarendon
>            Assignee: Jean-Baptiste Onofré
>
> The org.apache.karaf.scheduler.Scheduler.schedule methods are declared as throwing org.quartz.SchedulerException.

> This leaks the implementation, but also SchedulerException is not exported from the bundle,
so you get a "Discouraged access" whinge if you try and catch it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message