简体   繁体   English

Eclipse JCOP Tools错误-“标签标签未定义:15659979,,块230,def null”

[英]Eclipse JCOP Tools Error - “no definition for label Label: 15659979, , block 230, def null”

I am working on JavaCard applet and I am facing a strange error in my NXP JCOP Tools Eclipse plugin: 我正在使用JavaCard applet,并且在NXP JCOP Tools Eclipse插件中遇到一个奇怪的错误:

在此处输入图片说明

It says: "no definition for label Label: XXXXXXXX, , block XXX, def null". 它说:“标签Label:XXXXXXXX,,block XXX,def null没有定义”。

Do you have any idea what it could mean? 你知道这意味着什么吗? Eclipse underlines the package name, but I am absolutely sure that the package name is correct and that the class is in the correct package. Eclipse在软件包名称下划线,但是我绝对确定软件包名称正确并且该类位于正确的软件包中。 There is no other error in the whole project (From 11 errors above there are 2 of type "no definition for label Label: ..." and other 9 directly caused by these 2). 整个项目中没有其他错误(从上面的11个错误中,有2个类型为“标签Label:...没有定义”,其他9个是由这2个直接引起的)。 I tried cleaning and refreshing the project and deleting all binaries, but it does not help. 我尝试清理和刷新项目并删除所有二进制文件,但这无济于事。

In the "Type" column there is: "com.ibm.bluez.jcop.eclipse.jcopmarker". 在“类型”列中有:“ com.ibm.bluez.jcop.eclipse.jcopmarker”。

My Eclipse version: Version: 4.2.2 Build id: M20130204-1200 我的Eclipse版本:版本:4.2.2 Build ID:M20130204-1200

I solved the issue, I hope it might help someone. 我解决了这个问题,希望对您有所帮助。 I changed my method code from 我更改了我的方法代码

public boolean processAPDU(APDU apdu) {
    final byte[] apduBuf = apdu.getBuffer();

    switch(apduBuf[ISO7816.OFFSET_INS]) {
...

to

public boolean processAPDU(APDU apdu) {
    final byte[] apduBuf = apdu.getBuffer();

    final byte ins = apduBuf[ISO7816.OFFSET_INS];

    switch(ins) {
...

and the error is gone. 错误消失了。 Possibly a bug in NXP JCOP Tools? 可能是NXP JCOP Tools中的错误?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM