Current Position:Home > Class component of cap file

Class component of cap file

Update:11-30Source: network consolidation
Advertisement
My class.cap structure is 06 00 0C 00 80 03 .....
tag and size values are understood from the above format.. I am not using any remote classes in my code. How to interpret the 00 80 values. Do they provide
the interfaces[] or classes[] structure. Please help me out in understanding class.cap

The Best Answer

Advertisement
Well, I tried different ways and nothing can reach my expectation :| --> I almost harbour the idea that there's no SuperMethodref for external class as well
However, things written in spec seems to be subtle to me. Let me quote it for you (JC 2.2.1, chap 6.7.2)
The class referenced in the CONSTANT_SuperMethodref_info structure must be the class that defines the method that contains the Java language-level super invocation.
The token item of the CONSTANT_SuperMethodref_info structure represents the virtual method token (Section 4.3.7.6, “Virtual Methods” on page 4-9) of the referenced method. Unlike in the CONSTANT_VirtualMethodref_info structure, the virtual method token is defined within the scope of the hierarchy of the superclass of the class indicated by the class item. If the referenced method is public or protected the high bit of the token item is zero. If the referenced method is package-visible the high bit of the token item is one. In the latter case the class item must represent a reference to a class defined in this package and at least one superclass of the class that contains a definition of the virtual method must also be defined in this package.
Perhaps I'm not good at English (I'm not a native speaker), but would you mind to bold the line which tells us about the absence of SuperMethodref for external class in the whole definition above
  • Class component of cap file Update:11-30

    My class.cap structure is 06 00 0C 00 80 03 ..... tag and size values are understood from the above format.. I am not using any remote classes in my code. How to interpret the 00 80 values. Do they provide the interfaces[] or classes[] structure. Ple

  • CONSTANT_SuperMethodref in CAP file Update:11-30

    Hi guys I'm investigating the cap file now. And I do not know how to create the CONSTANT_SuperMethodref of external class (Constant Pool Component) in CAP file. I only can create the CONSTANT_SuperMethodref of internal class This is how I did package

  • Wrong CAP file version error message Update:11-30

    I'm trying to write a loader application that will send a CAP file into JavaCard, and then install it automatically. I have developed my JavaCard Applet by using Eclipse3.1.0 and JCOP30. After running my JavaCard Applet by Eclipse, I got its CAP file

  • Cap file Components size limit ( ? ) Update:11-30

    Hello, I'm wondering if there is a limitation on the Cap file internal components size. as specified in the JVM Spec from SUN, a cap file consists on several elements (byte sequences) : Header.cap , Class.cap, StaticField.cap, etc. Does a component h

  • Upload external  cap file: jcshell: Error code: 6a80 (Wrong data)? Update:11-30

    Hi, i use eclipse + NXP JCOP Plugins_Generic3.2.8_Target ,the card is jcop31v232. if the cap file is generated by eclipse project , when i upload exteral cap file ,no error but if the cap file is generated by converter command ,there is  error what e

  • How to debug byteCode? Can cap file convert to java source file? Update:11-30

    Are there tools can debug byteCode? Are there tools can convert cap file to java source file? Are there tools can convert jca file to java soure file?I think it's little bit difficult to give you a correct answer. Frankly speaking, cap file debugging

  • Convert ijc file to cap file Update:11-30

    Dear All, I want to create script to load and install a package into smartcard. I have a ijc file. I want to convert it to cap file so my tool only create script from cap file. Please support to help me! Kelvin NguyenIt's not only 'package/applet ASC

  • CAP file error Update:11-30

    Hello !! I'm using the command verifycap verify the integrity of a CAP file and export files. the problem is that the command returns the following error: Error: In class descriptor Descriptor[1]: Field number 1: Inconsistency on class reference in i

  • Manually upload .cap file on a java card Update:11-30

    Hi I wonder how to manually upload a .cap file on a java card. I do know that it must be an or more APDUs that contain the file and so on. What I wonder is how to convert a .cap file into a byte array (byte array that on-card installer can read and u

  • Tokens are diffirent between CAP file and Export File Update:11-30

    hi Safamer, hi all guys. firstly, thanks all for concerning my issue. As i know, java card technology link components base on TOKEN. But the question is: the token in Export file and in the CAP file are different. So, how can off-card installer can l