On Wed, Dec 13, 2017 at 9:52 PM, William L. Thomson Jr. <wlt...@o-sinc.com> wrote:
> Sorry to jump in here. May not be clear on the following, so please > excuse if I am off topic, etc. > > On Tue, 12 Dec 2017 19:20:41 +0100 > Jan Lahoda <lah...@gmail.com> wrote: > > > Hello, > > > > Today, we were talking with Jarda (jtulach) and Geertjan about what > > do we do with the Java support for the beta release. > > > > I think the proposal is roughly like this: > > -the jdk-javac branch will be updated to > > --allow the IDE to start on JDK 8, with javac based Java features > > disabled (as best as we can, some exceptions might still happen, > > which we will resolve as we find them). > > Not sure I am clear with what your saying. I think I am at that point > with my Netbeans 9 from source on Java/jDK 9, not using ant, etc. I > have mostly working IDE less javac features. Which basically cripples > most function, no syntax highlighting for any language, etc. > Not having (a suitable) javac should not affect other non-Java based languages, but for Java, most features are missing indeed. But, if the (hopefully) upcoming change, NetBeans should be able to use javac from the JDK on JDK 9 or later, so at least some support for these features. > > --when running on JDK 8, there will be a notification/popup/dialog > > that the Java features are disabled and that the IDE either needs to > > run on JDK 9 or later, or the additional nb-javac module must be > > installed (the latter being preferred, a "link" to perform the action > > included) --when running on JDK 9, show (once?) a notification/popup > > that the IDE's behavior may improve by installing the additional > > nb-javac module. -critical problems with the jdk-javac branch that we > > find should be fixed -a pull request to merge the jdk-javac branch > > into master will be sent > > Not sure what you mean here. The nb-javac presently has build and > likely run issues with Java 9. As does its dependent lib.nbjavac. Which > is where I ran into my first Java 9 issue. With a class being private > now that was public, causing access issues. That is not resolved with > using --release 8. Not sure if built under 8 if it would run under 9 or > not. I may need to test that out. > > Specifically > LazyDocCommentTable.Entry is private now > https://github.com/apache/incubator-netbeans/blob/ > master/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/ > PartialReparser.java#L78 > https://github.com/dmlloyd/openjdk/blob/jdk10/master/src/ > jdk.compiler/share/classes/com/sun/tools/javac/parser/ > LazyDocCommentTable.java#L46 > > That is the only error with lib.nbjavac under JDK 9. However nbjavac > itself has a number of similar issues. I am not sure how many of those > can be addressed yet till I get lib.nbjavac packaged. Since its a > dependency of nbjavac. Seems like nbjavac has similar access issues. > Building nb-javac on JDK 9 may be challenging. Easiest may be to use simply "-source 8" (not "--release 8", as --release only has a public API and javac depends on sun.reflect.annotation). For compilation with -source 9, one might need to play with --patch-module and --add-exports, etc. Please note that lib.nbjavac depends on (nb-)javac, not vice versa. The exact details are changed in the jdk-javac branch, so the lib.nbjavac and other modules (except for the upcoming java.source.nbjavac) should hopefully compile against JDK 9's javac on that branch, but some --add-exports may be needed. (The ant build compiles on JDK 8, using JDK9's javac as a library (jar) and prepends it to the bootclasspath using -Xbootclasspath/p:<path>, so that's the other option, but requires -source 8.) Jan > > Thus far without those. Seems you have no syntax highlight support for > any language. No project UI from main menu. Many other things are > missing, No Java platforms, and other stuff. I could be missing other > modules, but seems those are core for a lot of functionality. I have > packaged a fair amount of stuff not showing up yet. > > Not sure what will and will not work without nbjavac. Seems like its > pretty crippled as an IDE but works for platform. I can provide > screenshots if needed. I have packaged most project and other missing > UIs. Thus I can only assume they do not appear because of the lack of > lib.nbjavac and nbjavac. Maybe other editor stuff relating to those, > java.source.base, etc. I do have a working editor, and all editor > packages. But no syntax for other things like Cmake. I installed a > plugin for such. I open cmake files and no syntax support. > > http://www.enlightenment.org/ss/e-5a319216b938f9.23966260.jpg > > Seems the java stuff is core to projects of any type and syntax support > for any language. Though I could be wrong, hopefully I am, otherwise > must resolve java 9 issues before I can proceed any further. > > -- > William L. Thomson Jr. >