Is there any change in the constant pool entires with JDK1.4?

Hi,
Here is my simple java class,
class Base
String manuf = "MRF";
class Derived extends Base
Derived() {
manuf = "ABC";
After compiling this class with JDK 1.3 and JDK1.4, i could see the difference in constant pool entries
so please let me know more about these cahnges.
P.S. : written a java program TClass.java to browse the constant pool entries.
i.e if compiled with JDK1.3 , constant pool entries looks as follows,
E:\bugs\jdk1.4\pramila>java TClass E:\bugs\jdk1.4\pramila\Derived.class
There are 21 + 1 entries in the Constant Pool:
Index Tag Reference(s)/Value(s)
1 10 5 15
2 8 16
3 9 5 17
4 7 18
5 7 19
6 1 <init>
7 1 ()V
8 1 Code
9 1 LineNumberTable
10 1 LocalVariableTable
11 1 this
12 1 LDerived;
13 1 SourceFile
14 1 Test.java
15 12 6 7
16 1 ABC
17 12 20 21
18 1 Derived
19 1 Base
20 1 manuf
21 1 Ljava/lang/String;
There are 1 methods:
Code array in method <init> of length 11 starting at byte 231.
If compiled with JDK1.4 constant pool entries looks as follows,
E:\bugs\jdk1.4\pramila>java TClass E:\bugs\jdk1.4\pramila\Derived.class
There are 21 + 1 entries in the Constant Pool:
Index Tag Reference(s)/Value(s)
1 10 5 15
2 8 16
3 9 4 17
4 7 18
5 7 19
6 1 <init>
7 1 ()V
8 1 Code
9 1 LineNumberTable
10 1 LocalVariableTable
11 1 this
12 1 LDerived;
13 1 SourceFile
14 1 Test.java
15 12 6 7
16 1 ABC
17 12 20 21
18 1 Derived
19 1 Base
20 1 manuf
21 1 Ljava/lang/String;
There are 1 methods:
Code array in method <init> of length 11 starting at byte 231.
There is a change in the index 3 can be noticed.
i.e
with JDK1.3 it is "3 9 5 17"
with JDK1.4 it is "3 9 4 17"
Thanks in advance.
Pramila

javac v1.4 emits by default Java 1.2 compatible .class files while all javac implementations since between 1.1.0 and 1.3.1 emit byte default Java 1.1 .class files.
Check to see what effect using the -target option in javac to get the two versions to produce Java 1.1, 1.2, or 1.3 .class files.
Chuck

Similar Messages

  • HT6058 Is there any change in the MODERN FIRMWARE??

    Is there any change in the MODERN FIRMWARE with the new ios update of 7.0.4?

    The entire point of an update is to make changes in the current firmware.
    So, yes there are changes.  That is what an update is.

  • Is there any changes in the DIAdem script between DIAdem 9.x and DIAdem 10.x ?

    Hello,
    I have got a question about DIAdem Script.
    I saw the compatibility problem described in KB.
    'Why do my DIAdem 9.1 Scripts not work in DIAdem 10?'
    Many problems were solved, but some case were not.
    So I guess there is some changes in the DIAdem script between DIAdem 9.x and DIAdem 10.x
    Thanks for your help.

    Hi supportko...
    Yes, there were a lot of new features introduced in DIAdem 10.0, and 10.1.  These are described in detail in each product's ReadMe file, and also in the Online Help under  the "Index" tab at the node "DIAdem>>New Features>>New Commands and Variables"-- you will see 2 sections there:  "Version 10.1", and "Version 10.0", showing you exactly what has changed.  In most cases there is a compatability switch whenever a new feature creates a compatability issue for scripts developed in a previous DIAdem version.  R&D works very hard to minimize the impact of new features on existing VBScript applications.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Message Edited by Support on 05-02-2007 03:56 PM

  • Is there any difference between the 2 different USB cords when syncing???

    I know this may be a paranoid question to ask but I just wanted to make sure.
    Is there any difference between the newer USB cords with the shorter plug (the end that goes into the iPhone) and the older ones with the bigger, square-shaped plugs that you can pinch on the sides to retract?
    Is there a difference in transfer speed, syncing speed, or reliability, or build quality?
    Just asking cuz the newer USB cord that came with my iPhone 3GS is getting frayed and so I'm using the older one instead.
    Thanks to whoever helps.

    No difference except, as you noted, you have to squeeze the older one to remove it. It's important that you do that so you don't damage it or the iPod.

  • Hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    nishaadp wrote:
    ... it stucks with the apple logo ,  nothing works. Is anything i can do?
    See Here for
    Frozen or unresponsive iPhone

  • Is  there any parameter in the XI messgae in the IE that remains constant

    i m trying to trace an error in the sxmb_moni, for a JDBC-XI-Proxy scenario,
    in the XI message that i can see in the SXMB_moni of XI, is there any parameter that reamins constant or that i can relate with the message when the message reaches receiver R/3 side,
    means when i look for the XI message in the sxmb_moni of the Receiver R/3 side(for server proxy) , how can i realte it to the XI message in the XI...
    plssssssssss   help

    Well if you solved it by yourself you click on Solved by my own.But here if i am correct it was me who solved the problem
    Anyways the point I want to make here is that please do award points for appropriate answers. You do not want to discourgae people from answering the questions you post.
    It is not about points, but about saying
    <i>"Thanks this answer helped , someone who faces this issue again can surely be helped by this answer"</i>
    Regards
    Bhavesh

  • For one Urgent Change during performing the Approval(chnging the status to 'To be Tested') system does not recognize any changes using the CTS WBS BOM in the development system. The transaction is therefore incorrect or the status was reset by the system.

    For one Urgent Change while performing the one of the Approval before changing the status to 'To Be Tested'
    We are getting below error.
    The system does not recognize any changes using the CTS WBS BOM in the development system. The transaction is therefore incorrect or the status was reset by the system.
    COuld anyone please help us to know, How it can be resolved?
    We also have this below error.
    System Response
    If the PPF action is a condition check, the condition is initially considered as not met, and leads to another warning, an error message, or status reset, depending on the configuration.
    If the PPF action is the execution of a task in the task list, and the exception is critical, there is another error message in the document.
    Procedure
    The condition cannot be met until the cause is removed. Analyze all messages in the transaction application log.
    Procedure for System Administration
    Analyze any other messages in the task list application log, and the entries for the object /TMWFLOW/CMSCV
    Additional Information:
    System cancel RFC destination SM_UK4CLNT005_TRUSTED, Call TR_READ_COMM:
    No authorization to log on as a trusted system (Tr usted RC=0).
    /TMWFLOW/TU_GET_REQUEST_REMOTE:E:/TMWFLOW/TRACK_N:107
    For above error Table /TMWFLOW/REP_DATA_FLOWwas refreshed as well but still the same error.

    If you are in Test System, you can use function module AA_AFABER_DELETE to totally delete the depreciation area (tcode SE37, specify chart of depreciation and depreciation area), After that recreate your depreciation area and run AFBN. But before you do that, have you created a retirement transaction type that limits the posting on your new depreciation area? If not create one.
    Hope this helps.
    Thanks!
    Jhero

  • Any changes  in the condition value then system should trigger a mail.

    Hello Experts,
    I have below requirement
    If user does any changes (increase the price /decrease the price) in the condition value then system should trigger a mail and goes for approval.
    How i can achieve this ?
    Thanks

    Hi
    In that case again you can use MV45AFZZ program and USEREXIT_PRICING_PREPARE_TKOMP. If this exit didnt work you can try in other save or prepare to save exits in this same program. For order statuses and authorization you can use status profile and control authorization through an authorization object. For email use email sending function and users will receive an email whenever some specific condition value is changed.
    This will be ABAP coding in above mentioned program using implicit enhancement. There is no standard solution for this and you have to go for customization.
    Thank$

  • Is there any solution to the colon translation bug?

    Mac OS X has reserved characters that cannot be used in file or folder names. One of them is the colon: It is used by the operating system in paths to designated separate directories and files, exactly as Microsoft uses the backslash character for the same purposed.
    However, Mac OS X is 'supposed' to translate colons to another character when saving files from within an application or the Mac OS X Save dialog. The typical translation is to forward slash or dash. For example, "Bug: Colon Translation" becomes "Bug- Colon Translation". Of if I am saving a web page to a PDF, the source name of an article with this title would change to "Bug/ Colon Translation".
    The bug: The above colon translation process does NOT work reliably in the Mac OS X Save Dialog with reliability. I guestimate that 95% of the time the translation of colons in source titles does NOT work. Using the example of translating a web article title to a PDF saved file, the results are typically the following: "Untitled.pdf". This forces the user to copy then paste in the actual title of the article. THEN, 100% of the time, the colon translation actually works. For example, if I have a web article titled "Bug: Colon Translation", it is extremely rare for that title to be anything but BLOCKED, resulting in 'Untitled.PDF' as the resulting title in the dialog box. When I then copy and paste the source title into the title area, replacing 'Untitled', I get: "Bug- Colon Translation".
    What will happen perhaps 5% of the time: The colon translation of the source title will actually work. When this occurs, using my example above, the OS provides the following translation: "Bug/ Colon Translation". Note that when it works in this situation I get a forward slash, not a dash.
    I research, read and save web articles all day long. A lot of articles use colons. I have to contend with this bug all day long every day. This bug is many years old. I can't recall when it started. But it certainly has been consistent in Mac OS X 10.5 Leopard, 10.6 Snow Leopard and now 10.7 Lion. Three versions of Lion are enough for me to realize that Apple is either oblivious to this bug or they don't care.
    Clearly, the colon translation CAN work. It is MEANT to work. No one can dispute that. The user is NOT supposed to be messed over with 'Untitled.PDF' files. They are MEANT to have actual PDF file titles, as seen in our example above.
    Therefore the question:
    Is there any solution to the colon translation bug?
    It is incredibly annoying.

    My guess is they don't care. Most likely they're illiterate and don't know what a colon is for. They probably think it's a little-used character. Remember: these are the people who don't know the difference between "deprecate" and "depreciate".
    I have the same colon problem as you do. But it's not the biggest problem I have encountered in Lion. If it was only that I'd be Mr. Delighted with Lion. There's worse than having a colon - uh -  that won't cooperate. A lot worse, in Lion.

  • Why should I recompile report for any changes in the database ?

    Hi All
    I call a report (.rep) from a form using RUN_REPORT_OBJECT, and everything is OK
    For any change in the database, for example :
    1- Export Dump file for the schema.
    2- Drop the schema
    3- Re-create the schema again
    4-Import the taken dump to the schema
    When i call the report again, the report doesn't run. If i recompile the report again it will work.
    I read too much posts about this issue, most of them are taLking about the command line parameter RECURSIVE_LOAD=NO ,
    v_url :=' COMPANY_NO='||:global.company_no|| ' RECURSIVE_LOAD=NO';
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,v_url);
    But , Still the problem not solved
    Notes :
    1- The report type is .REP
    2- if I used the .JSP report, it is working fine , But i can't copy the source code for the report at the customer side.
    Please Help

    Well, first of all this would not be the correct forum. There is a dedicated reports forum for reports related questions. And secondly this most certainly depends on your report. If you have a query like
    select * from my_tableor e.g. are using %rowtype records in your report then you most certainly will have to recompile it after you do an exp/imp.
    cheers

  • Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. WHat do you suggest.

    Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. What do you suggest.
    I am using Mozilla Beta 4. I volunteered to try it out. It's lightning fast. I really love using it. I see there is a new version of Firefox should I download it??

    I HAVE NOW SOLVED THE PROBLEM BY RUNNING WINDOWS REGISTRY REPAIR TOOL WHICH HAS OBVIOUSLY REPAIRED CORRUPT REGISTRY FILES.

  • Time Machine - is there any way to allow it to work with the MacBook Air 2011 lid closed?

    When the Air sleeps, Time Machine stops (although it does pick up immediately after the machine wakes).  I had been leaving it on overnight, but Applecare techs tell me there's no need for that, as there are no utilities running at night, contrary to what I'd seen elsewhere.
    The risk is that I'll miss the last backup. Is there any way around the problem, other than calling a manual backup and waiting for it?
    This is Lion.

    Sorry, I guess I wasn't precise enough. I'm concerned about this (remotely likely) situation:
    10:15 p.m., TM backs up, next backup scheduled for 11:15 p.m.
    11:10, I put the machine to sleep for the night. Previous backup 55 minutes ago, numerous files changed or added during that time.
    7:30 a.m. next day, SSD crashes during wakeup. The last 55 minutes of operation have not been saved to the USB hard drive.
    Is there an automatic way to avoid that gap in the backup?

  • Hi since sunday,my imessages are not working..i cannot even send normal sms to iphone users..is there any problems in the software ? pls advice

    Hi since sunday,my imessages are not working..i cannot even send normal sms to iphone users..is there any problems in the software ? pls advice

    Found the rootcause. The battery was damaged and unable to have enough power to keep the device alive. After changing the device problem is solved.

  • Is there any restriction on the length of all Primary keys in a table

    Hi all,
    Is there any restriction on the length of all Primary keys in a data base table?
    i have some 10 fields as primary key in a DB table and length exceeds 120 and getting a warning.
    Please let me know will there be any problems in future with respect to the same?
    With regards,
    Sumanth

    Well actually there are constraints like
    Total of internal lengths of all primary key columns        1024 Bytes
    Number of primary key columns per table                     512
    For other information about SAP database please refer to http://sapdb.org/sap_db_features.htm  
    Thanks & Regards,
    Vivek Gaur
    Alwayz in high spirits

  • Reset Release Strategy for any change in the Purchase Order

    Hi,
    Is it possible in SAP standards to reset release strategy for even minor changes in the Purchase Order irrespective of whether it is value change or any change in the text or Purchasing group change or whatever it is?
    If so, where do we need to make the configurations.
    I have seen in some thread about resetting the release strategy for decrease in Purchase Order value.Even that was possible through some BAPI.
    Thanks in Advance.
    S.Raghavan

    hi sandesh,
    sorry, i know it's too late.
    i tried your suggestion, it works blocking the purchase order after release strategies are setted.
    sandesh, raghavan:
    i need to reset the strategies after to make any change in the po. i'll appreciate your help if you can give it.
    regards
    f

Maybe you are looking for

  • Configuring Mail 3.2 and Exchange

    I have searched the discussions here but have not been able to solve my problem: I am trying to set up Mail so that it syncs with a new Exchange mailbox I have. But, I can't find detailed information on how to set up the account in Mail given the inf

  • Availability in Rego Park

    Does anyone know when FIOS will be available in REGO PARK, NY????

  • IMac (Mid 2007) - Black / Purple dots on display

    Hello, I am having a problem with my Intel iMac display. I don't want to write a long story, so I'll try to keep it short: 1) October 2008 - My iMac Super Drive started making a funny noise when playing DVD movies (It was a Pioneer one), I took it in

  • Large iCloud Photo Library on iOS

    I started to use iCloud Photo Library without any problem on my iMac. Now my library is approx 100GB in size and i was able to sync everything into iCloud. And it synced perfect to my MacBook Air where it now has only 26GB in size. Perfect! Now my qu

  • Function to allow only printable ASCII in data

    Hi, In my CSV upload utility, I've implemented various error checking functions (not a number, not a valid date, not null... etc.), but today I found some strange characters in customer's DB, which was uploaded previously by someone else using sqlldr