SBG generating conflicting class definitions
@vmutafov 已經在處理了。
開始於 2020年2月6日。
評估
這個 Issue 還沒有評估資料。
描述
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 6.3
- Cross-platform modules:6.3
- Android Runtime:6.3
- Plugin(s): Creating/Updating SciChart plugin
Describe the bug
SBG throws the following error:
/home/nathanael/projects/NativeScript/repos/nativescript-scichart/demo/platforms/android/app/src/main/java/com/tns/gen/com/scichart/charting/visuals/renderableSeries/tooltips/XySeriesTooltip_bundle_25_108_.java:27: error: name clash: internalUpdate(XySeriesInfo) and internalUpdate(XySeriesInfo<? extends Object>) have the same erasure
protected void internalUpdate(
^
/home/nathanael/projects/NativeScript/repos/nativescript-scichart/demo/platforms/android/app/src/main/java/com/tns/gen/com/scichart/charting/visuals/renderableSeries/tooltips/XySeriesTooltip_bundle_25_108_.java:18: error: name clash: internalUpdate(XySeriesInfo<? extends Object>) in XySeriesTooltip_bundle_25_108_ and internalUpdate(XySeriesInfo) in XySeriesTooltip have the same erasure, yet neither overrides the other
protected void internalUpdate(
To Reproduce
Gradle:
repositories {
maven { url 'https://www.myget.org/F/abtsoftware/maven' }
}
dependencies {
// Declare SciChart libraries as module dependencies
implementation (group: 'com.scichart.library', name: 'core', version: '3.+', ext: 'aar')
implementation (group: 'com.scichart.library', name: 'data', version: '3.+', ext: 'aar')
implementation (group: 'com.scichart.library', name: 'drawing', version: '3.+', ext: 'aar')
implementation (group: 'com.scichart.library', name: 'charting3d', version: '3.+', ext: 'aar')
implementation (group: 'com.scichart.library', name: 'charting', version: '3.+', ext: 'aar')
implementation (group: 'com.scichart.library', name: 'extensions', version: '3.+', ext: 'aar')
implementation (group: 'com.scichart.library', name: 'extensions3d', version: '3.+', ext: 'aar')
}
JavaScript
const FirstCustomXySeriesTooltip = com.scichart.charting.visuals.renderableSeries.tooltips.XySeriesTooltip.extend( {
internalUpdate: function(seriesInfo) {
console.log("Hi");
}});
const tooltip = new FirstCustomXySeriesTooltip();
Expected behavior
It works
Sample project
- contact me, I can send it privately....
Additional context
It is complaining about the internalUpdate this function ends up with two of them
Class Generated:
* AUTO-GENERATED FILE. DO NOT MODIFY.
* This class was automatically generated by the
* static binding generator from the resources it found.
* Please do not modify by hand.
*/
package com.tns.gen.com.scichart.charting.visuals.renderableSeries.tooltips;
public class XySeriesTooltip_bundle_25_108_
extends com.scichart.charting.visuals.renderableSeries.tooltips.XySeriesTooltip
implements com.tns.NativeScriptHashCodeProvider {
public XySeriesTooltip_bundle_25_108_(
android.content.Context param_0,
com.scichart.charting.visuals.renderableSeries.hitTest.XySeriesInfo param_1) {
super(param_0, param_1);
com.tns.Runtime.initInstance(this);
}
protected void internalUpdate(
com.scichart.charting.visuals.renderableSeries.hitTest.XySeriesInfo<
? extends java.lang.Object>
param_0) {
java.lang.Object[] args = new java.lang.Object[1];
args[0] = param_0;
com.tns.Runtime.callJSMethod(this, "internalUpdate", void.class, args);
}
protected void internalUpdate(
com.scichart.charting.visuals.renderableSeries.hitTest.XySeriesInfo param_0) {
java.lang.Object[] args = new java.lang.Object[1];
args[0] = param_0;
com.tns.Runtime.callJSMethod(this, "internalUpdate", void.class, args);
}
public int hashCode__super() {
return super.hashCode();
}
public boolean equals__super(java.lang.Object other) {
return super.equals(other);
}
}
- 主要語言
- C++
- 星號
- 563
- 分支
- 144
- 平均合併
- 10 小時 46 分鐘
- 30 天內合併 PR
- 14
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NativeScript/android 的其他 Issue
-
難度 5/5 一週以上 新手友好度 38/100
NativeScript/android#2039 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 48/100
NativeScript/android#2024 ·
-
難度 5/5 一週以上 新手友好度 20/100
NativeScript/android#2020 ·
-
難度 5/5 一週以上 新手友好度 42/100
NativeScript/android#2019 ·
-
難度 4/5 3-5 天 新手友好度 55/100
NativeScript/android#1986 ·
查看 NativeScript/android 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 65/100
duckdb/duckdb-wasm#2258 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
objectionary/eo-graphs#75 ·
-
Coarray integration tests carry no LABELS, so run_tests.py silently skips them under every backend 未關閉coarray
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 75/100
FISCO-BCOS/FISCO-BCOS#5642 ·