Comments (6)
I think we can close this issue for now. We use com.sun.source
to access certain necessary APIs like com.sun.tools.javac.code.Symbol
and com.sun.tools.javac.tree.JCTree
. We can revisit this issue when we add support for more Java versions.
from scip-java.
Reopening issue as this is the reason for semanticdb-javac failing with java projects JDK9+ 😅 com.sun.tools.javac.code.Kinds
is no longer an enum in JDK9+, with the enum being moved to being an inner class of it. These may further change down the line, so its best we move to supported APIs while we're here 🙂
As part of #90 I will migrate to supported public APIs.
@olafurpg I dont think this will conflict with anything youre working on currently, given youre doing build tool related work, but in the chance that it does, please do go ahead with whats there currently, and I will handle those changes if they arise
from scip-java.
Would it make sense to close this issue as a duplicate of #90? It's an implementation detail IMO if we migrate off com.sun.tools
or if we refactor the code to handle the breaking changes. Judging by the compile errors, I suspect we can work around them with fairly minimal diffs.
from scip-java.
Ill take some time today to gather how we might approach this. Im leaving out multi-release JARs for now (the one sbt plugin only supports jdk9 😔 )
Having another look at this, theres at least one non-obvious change, here being one, where Scope.Entry has become private. Worst case we make it public with reflection (but I'd really rather not have to introduce that kinda workaround).
The aforementioned enum changing is perhaps a trickier one, we cant guard that with a runtime flag as it will fail compile time regardless of the jdk we use to compile.
Im personally leaning towards following through with the issue title, I feel itd be the least awkward (Id rather spend time cross-referencing the replacements than messing around with build tooling or version-specific magic), unless you feel strongly about this
from scip-java.
It would be great if we can implement the plugin with public APIs. That would be the best outcome so it's worth exploring.
leaving out multi-release JARs for now (the one sbt plugin only supports jdk9 😔 )
We can ignore multi-release jars for now, it's a future concern.
Worst case we make it public with reflection (but I'd really rather not have to introduce that kinda workaround).
Using setAccessible(true)
via reflection would be a fine solution IMO, if it works. I recall that Java 11 is more restrictive with runtime reflection.
from scip-java.
Fixed in #91 🔥
from scip-java.
Related Issues (20)
- "Find implementations" is not working for Scala classes and traits
- Auto-indexing: support relative paths HOT 1
- Auto-indexing: directly support multi-root projects
- Amend docs to support Bazel 6 HOT 5
- BazelBuildTool exits with 0 even if no files are found
- Gradle dependency verification conflicts with using semanticdb plugin HOT 1
- Gradle centralised repo management causes problems HOT 6
- Issues indexing kotlin gradle project HOT 10
- `Failed to query the value of property 'freeCompilerArgs'` in buildSrc task
- `Task with name 'compileKotlinJvm' not found in project ':icons'`
- trailing arguments doesn't work for sbt projects HOT 1
- Gradle plugin - don't log the full stack trace for missing publication
- Implement new scip `SymbolInformation` fields HOT 1
- Publish Docker image for linux/arm64 platform
- Kotlin find references shows refs for wrong symbol HOT 6
- Test issue HOT 3
- ABC testing HOT 2
- semanticdb-javac terminates in error "silently", due to a NullPointerException HOT 3
- execute com.sourcegraph.scip_java.ScipJava.main() fail HOT 1
- Support for is_type_definition relationship field for SymbolInformation 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 scip-java.