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

Jacques Le Roux commented on OFBIZ-13189:
-----------------------------------------

After OFBIZ-12989 (mostly migration to Jakarta) things have changed. Here is 
the new situation:

{noformat}
> Task :compileJava
Z:\Gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.24.2\daf49ee71f2664c3ff57412e4b43061e61a28596\log4j-api-2.24.2.jar(/org/apache/logging/log4j/Level.class):
 warning: Cannot find annotation method 'value()' in type
 'BaselineIgnore': class file for aQute.bnd.annotation.baseline.BaselineIgnore 
not found
C:\projectsASF\Git\ofbiz-framework\framework\base\src\main\java\org\apache\ofbiz\base\log4j\OFBizDynamicThresholdFilter.java:153:
 warning: [deprecation] rawContextData() in ContextDataInjector has been 
deprecated
        return injector.rawContextData();
                       ^
C:\projectsASF\Git\ofbiz-framework\framework\base\src\main\java\org\apache\ofbiz\base\util\string\NodeELResolver.java:67:
 warning: [removal] getFeatureDescriptors(ELContext,Object) in ELResolver has 
been deprecated and marked for removal

    public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, 
Object base) {
                                       ^
C:\projectsASF\Git\ofbiz-framework\framework\base\src\main\java\org\apache\ofbiz\base\util\string\UelUtil.java:229:
 warning: [unchecked] getValue(ELContext) in ReadOnlyExpression overrides 
<T>getValue(ELContext) in ValueExpression
        public Object getValue(ELContext context) {
                      ^
  return type requires unchecked conversion from Object to T
  where T is a type-variable:
    T extends Object declared in method <T>getValue(ELContext)
C:\projectsASF\Git\ofbiz-framework\framework\base\src\main\java\org\apache\ofbiz\base\util\string\UelUtil.java:296:
 warning: [unchecked] getValue(ELContext) in BasicValueExpression overrides 
<T>getValue(ELContext) in ValueExpression
        public Object getValue(ELContext context) {
                      ^
  return type requires unchecked conversion from Object to T
  where T is a type-variable:
    T extends Object declared in method <T>getValue(ELContext)
C:\projectsASF\Git\ofbiz-framework\framework\common\src\main\java\org\apache\ofbiz\common\authentication\AuthHelper.java:132:
 warning: [removal] AccessController in java.security has been deprecated and 
marked for removal
        return AccessController.doPrivileged(
               ^
C:\projectsASF\Git\ofbiz-framework\framework\catalina\src\main\java\org\apache\ofbiz\catalina\container\CrossSubdomainSessionValve.java:106:
 warning: [removal] getVersion() in Cookie has been deprecated and marked for 
removal
            newCookie.setVersion(cookie.getVersion());
                                       ^
C:\projectsASF\Git\ofbiz-framework\framework\catalina\src\main\java\org\apache\ofbiz\catalina\container\CrossSubdomainSessionValve.java:106:
 warning: [removal] setVersion(int) in Cookie has been deprecated and marked 
for removal
            newCookie.setVersion(cookie.getVersion());
                     ^
C:\projectsASF\Git\ofbiz-framework\framework\catalina\src\main\java\org\apache\ofbiz\catalina\container\CrossSubdomainSessionValve.java:107:
 warning: [removal] getComment() in Cookie has been deprecated and marked for 
removal
            if (cookie.getComment() != null) {
                      ^
C:\projectsASF\Git\ofbiz-framework\framework\catalina\src\main\java\org\apache\ofbiz\catalina\container\CrossSubdomainSessionValve.java:108:
 warning: [removal] getComment() in Cookie has been deprecated and marked for 
removal
                newCookie.setComment(cookie.getComment());
                                           ^
C:\projectsASF\Git\ofbiz-framework\framework\catalina\src\main\java\org\apache\ofbiz\catalina\container\CrossSubdomainSessionValve.java:108:
 warning: [removal] setComment(String) in Cookie has been deprecated and marked 
for removal
                newCookie.setComment(cookie.getComment());
                         ^
C:\projectsASF\Git\ofbiz-framework\framework\catalina\src\main\java\org\apache\ofbiz\catalina\container\OFBizRealm.java:54:
 warning: [deprecation] GenericPrincipal(String,String,List<String>) in 
GenericPrincipal has been deprecated
        return new GenericPrincipal(username,
               ^
12 warnings

{noformat}


> Fix Java 17 warning issues
> --------------------------
>
>                 Key: OFBIZ-13189
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13189
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/base, framework/security
>    Affects Versions: Upcoming Branch
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> Gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.24.2\daf49ee71f2664c3ff57412e4b43061e61a28596\log4j-api-2.24.2.jar(/org/apache/logging/log4j/Level.class):
>  warning: Cannot find annotation method 'value()' in type
>  'BaselineIgnore': class file for 
> aQute.bnd.annotation.baseline.BaselineIgnore not found
> C:\projectsASF\Git\ofbiz-framework\framework\base\src\main\java\org\apache\ofbiz\base\log4j\OFBizDynamicThresholdFilter.java:153:
>  warning: [deprecation] rawContextData() in ContextDataInjector has been 
> deprecated
>         return injector.rawContextData();
>                        ^
> C:\projectsASF\Git\ofbiz-framework\framework\common\src\main\java\org\apache\ofbiz\common\authentication\AuthHelper.java:132:
>  warning: [removal] AccessController in java.security has been deprecated and 
> marked for removal
>         return AccessController.doPrivileged(



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

Reply via email to