Coder Social home page Coder Social logo

[WARNING] Supported source version 'RELEASE_8' from annotation processor 'org.glassfish.corba.annotation.processing.ExceptionWrapperProcessor' less than -source '11' about orb HOT 4 OPEN

tdferreira avatar tdferreira commented on August 18, 2024
[WARNING] Supported source version 'RELEASE_8' from annotation processor 'org.glassfish.corba.annotation.processing.ExceptionWrapperProcessor' less than -source '11'

from orb.

Comments (4)

pzygielo avatar pzygielo commented on August 18, 2024 1

With current target (8) - SourceVersion.RELEASE_11 is unknown I think.

In next step one could ask Do you plan to fully support Java 17? or Do you plan to fully support Java 21? Using SourceVersion.RELEASE_11 would not prevent the warnings from javac.

But perhaps the comment (for issue resolved as Not an Issue) https://bugs.openjdk.org/browse/JDK-8037955?focusedId=13475725&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13475725 could be of help here. I take the liberty to quote it here:

This request stems from a mis-use of the API. The usage model in question is using the @SupportedSourceVersion annotation together with AbstractProcessor which reads the source version stored in that annotation. This pairing of the @SupportedSourceVersion with AbstractProcessor works well in the common case of a processor supporting a single source value independent of which version of the platform the processor is run on.

If the processor author needs a more nuanced behavior to compute the supported source version, then the getSupportedSourceVersion() method should be overridden to implement the logic in question.

It is possible to return, say, RELEASE_6 when running on JDK 6 and RELEASE_7 when running on JDK 7 without using reflection. Something like

if (SourceVersion.latest > RELEASE_6)
 return (SourceVersion.values())[RELEASE_6.ordinal()+1];
else
 return RELEASE_6

from orb.

arjantijms avatar arjantijms commented on August 18, 2024

Java 11+ is supported, but that warning is indeed annoying. If I'm not mistaken it's a little bit difficult to get rid of though.

from orb.

tdferreira avatar tdferreira commented on August 18, 2024

https://github.com/eclipse-ee4j/orb/blob/master/exception-annotation-processor/src/main/java/org/glassfish/corba/annotation/processing/ExceptionWrapperProcessor.java#L37

Does it have a major impact changing @SupportedSourceVersion(SourceVersion.RELEASE_8) to @SupportedSourceVersion(SourceVersion.RELEASE_11)?

from orb.

russgold avatar russgold commented on August 18, 2024

from orb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.