Comments (4)
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 withAbstractProcessor
which reads the source version stored in that annotation. This pairing of the@SupportedSourceVersion
withAbstractProcessor
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 andRELEASE_7
when running on JDK 7 without using reflection. Something likeif (SourceVersion.latest > RELEASE_6) return (SourceVersion.values())[RELEASE_6.ordinal()+1]; else return RELEASE_6
from orb.
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.
Does it have a major impact changing @SupportedSourceVersion(SourceVersion.RELEASE_8)
to @SupportedSourceVersion(SourceVersion.RELEASE_11)
?
from orb.
from orb.
Related Issues (20)
- Conflicting license information in NOTICE.md file HOT 3
- ArrayIndexOutOfBoundsException thrown from org.glassfish.rmic.tools.java.ClassPath HOT 2
- Work with ASM8.0 AsmClassFactory.getLatestVersion() return an deprecated value ASM9_EXPERIMENTAL
- idlj generates read/write union helper methods that throw wrong exception in some cases HOT 1
- (Automatic-)Module Name support
- unable to set encoding for idlj generated files
- Deadlock during ORB shutdown HOT 4
- Maven dependencies not able to download in Eclipse HOT 1
- 4.2.4 version doesn't work with Java 17 HOT 2
- Concurent ByteBuffer access issues in java 11 HOT 1
- De/serialization of ConcurrentHashMap fails HOT 1
- Bot's email used to create commits in release jobs is not in sync with Eclipse infra data HOT 1
- `putFields` field gets overwritten for every field HOT 1
- Usage of traceMethodCalls - deprecated since Java 9, removed in 13
- Utility.loadStub() returns null in OSGi environment HOT 1
- dynamic port range doesn't support
- Support for PFL 5.0.0 HOT 2
- ThreadPoolImplTest uses methods which will be removed from Java
- AnyEqualityTest fails on JDK17+ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orb.