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

Freeman Yue Fang commented on CAMEL-16966:
------------------------------------------

It's only the test code PrinterPrintTest tries to access the sun.awt.AppContext 
to hack/mock/restore print service
sun.awt.AppContext.getAppContext().put(printServiceLookupServicesClass, 
printServiceLookup);

and I can't find a replacement public API can do the same, so a profile to 
configure maven-surefire-plugin(--add-opens) with JDK17 should be sufficient 
for now IMO

> tests in camel-printer failed with JDK17
> ----------------------------------------
>
>                 Key: CAMEL-16966
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16966
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-printer
>            Reporter: Freeman Yue Fang
>            Assignee: Freeman Yue Fang
>            Priority: Major
>
> caused by
> {code}
> [ERROR] WARNING: Illegal reflective access by 
> org.apache.camel.component.printer.PrinterPrintTest 
> (file:/Users/ffang/projects/camel/components/camel-printer/target/test-classes/)
>  to method javax.print.PrintServiceLookup.initListOfLookupServices()
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to