問題タブ [ecj]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
54 参照

java - What are the reference infos when using Eclipse Batch Compiler

When reading through the Eclipse Batch Compiler Documentation for Java, I came accross the flag -referenceInfo whichs description is as follows:

Compute reference info. This is useful only if connected to the builder. The reference infos are useless otherwise.

What are does reference infos? Are those infos about object references? Is there any documentation available?

0 投票する
0 に答える
313 参照

android - Termux のデバイスで appcompat ライブラリを使用して android.jar を再構築します。

このプロジェクトhttps://github.com/BuildAPKs/buildAPKsは、Android の Termux のデバイスで APK をビルドします。アーティファクトなしでコンパイルすると、appcompat に関連するエラーが頻繁に発生します。つまり、Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

ライブラリを有効にしてビルドすると、APK ファイルのサイズははるかに大きくなります。つまり、スマートフォンの BuildAPK でライブラリを有効にしないと、35.4K にcom.google.android.divideandconquer.apkビルドされます。ライブラリを有効にしてビルドすると、約500K になります。デバイスで aapt、dx、ecj パッケージを再構築して、jar ファイルに appcompat ライブラリを含めると、このファイル出力サイズの問題が解決する場合があります。

jar ファイルに appcompat を含めるパッケージ aapt、dx、および/または ecj を構築するには、スマートフォンの Termux でどのように行うことができますか? ハンドヘルドの Termux および Termux PRoot でこれらのパッケージをビルドできない場合、従来の Linux ボックスでこれを行うにはどうすればよいですか?

0 投票する
0 に答える
46 参照

java - Eclipse Java ASTParser ArrayIndexOutOfBoundsException エラー

私はEclipseでJavaコードのASTを作ろうとしています。

私はhttps://help.eclipse.org/2019-12/index.jsp?topic=%2Forg.eclipse.jdt.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fjdt%2Fcore%2Fdomの例に従っています%2FASTParser.html

リンクの例として、サンプルASTを作成するコードを記述します

しかし、コードを実行した後、ArrayIndexOutOfBoundsException エラーが発生しました。

完全なコードとエラーメッセージは以下に添付されています

このエラーが発生した理由を知っている人はいますか?

私のコード

エラーメッセージ

エラーメッセージで、問題の行 (ASTtest.java:78) はこれです