LEGAL enabling of @Override when restricting to JC Classic APIs?

I like to precisely control the classpath used by javac, in order to catch at compilation time any accidental reference to a class that is not built into the Java Card (Classic) API of a particular target.
Something on the tune of
<tt> javac -bootclasspath C:\JCDK3.0.4_ClassicEdition\lib\api_classic.jar </tt>
does that for an hypothetical Java Card Classic 3.0.4 platform, with one problem: annotations such as<tt> @Override </tt>no longer work, and cause a syntax error.
I had hopped
<tt>javac -bootclasspath C:\JCDK3.0.4_ClassicEdition\lib\api_classic.jar;C:\JCDK3.0.4_ClassicEdition\lib\api_classic_annotations.jar</tt>
would fix it; but not: my guess is that at least<tt> java.lang.Override </tt>was forgotten in the build of<tt> api_classic_annotations.jar</tt>
The following allows<tt> @Override</tt>
<tt>javac -bootclasspath C:\JCDK3.0.4_ClassicEdition\lib\api_classic.jar;C:\JCDK3.0.4_ClassicEdition\lib\api_classic_annotations.jar;C:\JCDK3.0.4_ClassicEdition\lib\api_connected.jar</tt>
but then an accidental use of some connected API is not caught. It is also possible to add in the bootclasspath a<tt> rt.jar </tt>from a JRE/JDK, but that similarly adds a lot of classes not actually usable in a Java Card Classic context.
It would be technically feasible to extract from<tt> api_connected.jar </tt>or<tt> rt.jar </tt>the bare minimum needed to restore annotation functionality; but that seems to be a violation of the licensing terms, which do not allow any modification of the licensed software, with no exemption for the deletion of unwanted sections from packaged jar files. Is there a legal solution?
Does that also apply to the similar problem that
<tt>javac -bootclasspath C:\java_card_kit-2_2_1\lib\api.jar</tt>
is not usable, although it would be potentially useful for Java Card platforms still very much used in the field? (Note: my guess is that at least<tt> java.lang.Error </tt>was forgotten in the build of<tt> api.jar</tt>, and that one was fixed in<tt> api_classic.jar </tt>of the JCDK3).

One solution would be to get the source from OpenJDK for the annotations etc you need and add them to a small JAR file and put this JAR file on your classpath as well. This way you are not modifying the JCDK at all.
- Shane

Similar Messages

  • Even after enabling "Warn me when closing multiple tabs", firefox closes without any warning even if multiple tabs are open.

    I recently installed Firefox 4.0 and in the options, under the section "Tabs", I have enabled "Warn me when closing multiple tabs". But if I have multiple tabs opened with websites loaded in them, and then try to close the browser, it simply closes. No warnings are shown (which was there in previous versions). Couple of times I clicked on the close button of browser and then realized that I had some important sites opened in different tabs, which I lost as it didn't warn me. Can you please let me know whether this is a bug or a mistake from my side?

    I'm sure you are using Private Browsing mode in Firefox 4. I have also the same problem and I tried to uncheck this option after many times accessing about:config\browser.warnOnquit. And it's wonderful, the warning cameback. I think it's a bug about Private Browsing mode. Hope Mozilla's Developers will fix it.

  • Can free apps be downloaded when restrictions are on?

    Can my grandson order free applications when restriction are on?  I want him to be able to play but not to be able to order expensive apps  (he is 6 years old).

    Just to confirm this, if you set the restriction for Installing Apps to the Off position, then App Store icon will dissapear from the Home screen entirely. so no not even Free Apps can be downloaded.
    Setting it to On, is the equivalent of doing nothing, so it becomes pointelsss to set restrictions if they are not enforced shall we say.
    The only way to prevent purchases of payed apps but still allow free Apps, is to remove the Payment option form the associated apple ID.  That way there is no way to pay so no way to download paid apps.
    Go to  Settings->iTunes and App Stores->Apple ID->View Apple ID->Payment Information-> Set it to None.

  • How to enable a ipod  when you forgot the icloud you used to set it up ?

    I had my friend charge my ipod because my charger broke and when I got it back she said that her cusin disabled my ipod on "accident" . So I was like okay cool like whatever I thought it was going to be easy to enable it but when I connected it to itunes it said to type in the icloud you use as well as the password to reciver your ipod and I dont remember it. If I go to the apple store they wont believe that this ataully happened and I have no idea where the recipt is please help this my first time ever having a device linked to apple please please help me !!!!

    Hey ther Jadabigs11,
    It sounds like you either need to find the Apple ID email address that you registered the iPod Touch with, or need to reset the password associated with that email address. If you need to find the email outright, this article will help you do that:
    Apple ID: How to find your Apple ID - Apple Support
    if you need to reset the password, use this article instead:
    Apple ID: Changing your password - Apple Support
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Cannot enable "open itunes when this ipod is connected" with brand new nano

    I just purchased a new 16GB 4G nano, and iTunes will not enable the check box for "open itunes when this ipod is connected". It is not greyed-out, but when I select it (check the box), iTunes un-checks the box upon the next sync.
    Why won't iTunes allow me to enable "open itunes when this ipod is connected"? I have tried all combinations of check boxes, but to no avail.
    Please help!

    I found my answer whenever the question was posted and started checking the "More Like This" items.  I swear I tried to search and find an answer before posting my question but got back some non-sensical results.  However, the answer was found in an archived thread "
    When I connect my iPod Touch, why won't iTunes 9.2 open automatically?
    and the answer was to unclick the auto open option, shut down iTunes and restart, then click the option back on. The iTunes Help message window appears asking if I was sure I wanted to do this (Of Course!) and it seems to have addressed the problem!!

  • I have enabled dictation but when I press fn twice 3 dots appear and wiggle then disappear.  Do not see 'Microphone'

    I have enabled dictation but when I press fn twice 3 dots appear and wiggle then disappear.  Do not see 'Microphone'

    First you have to be in an App that can use dictation, which app where you using? Also Dictation does not work in Snow Leopard 10.6.7, you probably just need to update your profile if you bought Mountain Lion, please click Profile Update for instruction on how to do this.

  • Trying to install Lion. says this disk is not enabled (journaled) - but when I look at the drive it actually is os extended journaled - Stuck! Have tried repair disk permissions and still no luck

    trying to install Lion. says this disk is not enabled (journaled) - but when I look at the drive it actually is os extended journaled - Stuck! Have tried repair disk permissions and still no luck - any thoughts? Have spent two weeks trying to get apple support and itunes to help me get lion after a hard drive fail and now they are closed and I really just want to get moving!

    Are you installing OS X Lion over an existing installation of Snow Leopard, or are you reinstalling?
    First be sure you have everything on your system backed up. Then reboot with the Command-R keys held to get to the OS X Lion recovery volume. In here, select Disk Utility and use the First Aid tab in here to run a verification on your boot drive. If there are any errors, fix them and then try the installation again.
    The next step would be to format the drive, so with your backup secured, use Disk Utility's Erase tab to re-format the drive to Mac OS X Extended (journaled), and then quit Disk Utilty and attempt the installation again.

  • How can we enable tick icon when user click any button

    how can we enable tick icon when user click any button in captivate 6@

    hi first of all thanks for imitate action.
    actually i want to make a menu (TOC) with tick icons, on starting all ticks are disabled but when i click on any button from my menu i want to enable tick for that particular button so that user can know easily the visited button.

  • EliteBook 8460p "factorycontrolcommand set: 5 "Pxe boot enabled, wwan override mode""

    A message appears on screen during post "factorycontrolcommand set: 5 "Pxe boot enabled, wwan override mode"".
    What does it mean, how can I fix it, please help! I disabled pxe boot option in bios, but it doesn't help!
    This question was solved.
    View Solution.

    Bios update solved the problem. Thanks to hp instant support!!!!

  • [svn] 3921: Fix for - @inheritDoc tag not working for get/ set overrides when you only override the setter of a base class

    Revision: 3921
    Author: [email protected]
    Date: 2008-10-28 06:23:00 -0700 (Tue, 28 Oct 2008)
    Log Message:
    Fix for - @inheritDoc tag not working for get/set overrides when you only override the setter of a base class
    QE Notes: Baselines for framework test will need to be updated.
    Doc Notes: None
    Reviewer: Paul
    Bugs: SDK-17304
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17304
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java

    Revision: 3921
    Author: [email protected]
    Date: 2008-10-28 06:23:00 -0700 (Tue, 28 Oct 2008)
    Log Message:
    Fix for - @inheritDoc tag not working for get/set overrides when you only override the setter of a base class
    QE Notes: Baselines for framework test will need to be updated.
    Doc Notes: None
    Reviewer: Paul
    Bugs: SDK-17304
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17304
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java

  • HT201077 I have Photo Stream enabled with Automatic downloads enabled. Yet when I try to join a Photo stream I get referred to The I Cloud start support page - this happens for both my Mac and my IPad. What can I do?

    I have Photo Stream enabled with Automatic downloads enabled. Yet when I try to join a Photo stream I get referred to The I Cloud start support page - this happens for both my Mac and my IPad. What can I do?

    The following is from this Apple Document: iCloud: Photo Stream FAQ
    What do I need to use Photo Stream?
    To use Photo Stream, including Shared Photo Streams, you need an iCloud account, compatible devices, and up-to-date software:
    iPhone, iPad, or iPod touch with iOS 6.0 or later
    Mac with OS X Mountain Lion v10.8.2 or later and iPhoto 9.4 or Aperture 3.4 or later
    PC with Windows 8, Windows 7, or Windows Vista (Service Pack 2) and the iCloud Control Panel 2.1 or later for Windows
    Apple TV (2nd generation) with Software Update 5.1 or later
    You can still use Photo Stream without Shared Photo Streams if your devices meet these requirements:
    iPhone, iPad, or iPod touch with iOS 5.1 or later
    Mac with OS X Lion v10.7.5 or later and iPhoto 9.2.2 or Aperture 3.2.3 or later
    PC with Windows 7 or Windows Vista (Service Pack 2) and the iCloud Control Panel v2.0 or later for Windows
    Apple TV (2nd generation) with Software Update 5.0 or later
    For complete iCloud setup instructions, visit How to set up iCloud.
    You need Mt. Lion in order to use Shared Photo Streams.
    OT

  • How enable USB charging when PC switched off?

    I would like to enable USB charging when the computer is switched off (I want to charge a DAC with battery).
    The computer is a dual boot ASrock 3D Vison with Asrock App charger installed (in Windows)
    I have already disabled S5 in Bios.
    However if I shut down from Linux my DAC is not charging.
    Some suggestions?

    I have tried to use the little script in the link to find the address of my usb device. The result is this:
    Bus 003 Device 003: ID 20b1:3008 XMOS Ltd
    [FOUND] 3-1.1
    So, if I understand right the directory is "/sys/bus/usb/devices/3-1.1/power/"
    Inside this directory there is "level" with value "on" and autosuspend with value "2"
    I don't have any idea how this (or other files) should be changed...if this is the right path...

  • Why does my font/text change when I switch from Classic 3D to Ray traced 3D in After Effects?

    My font/text changes when I switch from Classic 3D to Ray traced 3D. Why is it doing this? Also, I cant get the font/txt to look the same after I switch from Classic to Ray traced. How can I get it to look the same?

    I am pretty new to After Effects so I hope it's not my inexperience that's causing the problem. (It probably is)
    I just updated to the most current version of AE.
    I am on a mac pro late 2013 12GB 6 core. Running OSX 10.9.4
    Okay so after looking at it a little closer, I think the color is what mostly changes. The first screenshot is the what the text look like with Classic 3D and the second screenshot is what it looks like after I change it to Ray traced 3D. Also under the "Mode" section..the pull down that says "Normal" disappears. I'm wondering why the font color is changing?

  • Runtime error OBJECTS_OBJREF_NOT_ASSIGNED when calling any standard GRC API's

    Hello colleagues,
    I always get the runtime error OBJECTS_OBJREF_NOT_ASSIGNED when calling any standard GRC API's
    For instance, lets take Function Modules:
    I tried almost any of them but in particular:
    GRPC_API_CONTROL_QUERY Load the list of controls
    GRPC_API_ISSUE_QUERY Retrieve issues of the case
    GRPC_API_ORGUNIT_QUERY Load list of Organizations
    GRPC_API_RMPLAN_QUERY Retrieve remediation plans of case
    GRPC_API_RISK_CONTROLS Retrieve the controls of the risk
    and etc.
    All of them return the runtime error OBJECTS_OBJREF_NOT_ASSIGNED, however I've provided Object ID's in the right format,
    The same is for corresponding classes,
    Does anyone have such problem before?
    Appreciate your responses,
    Thank you,
    Best Regards,
    Anton

    Hi Anton,
    We need to pass value for I_SESSION_ID. Because, when i execute FM: GRPC_API_RMPLAN_QUERY by giving correct I_OBJECT_ID as shown below, i'm also getting the same error.
    On executing..
    Getting following dump.
    And attached is the dump analysis .
    Thanks
    KH

  • When i make a classic tween in flash all the object does is appear at the start of its course then suddenly appear at the end of its course

    so i am trying to create the usual basic balll bounce and for it to follow a motion path; i have followed everything the tutorial does exactly but when i click play the ball appears at the start of the guide then in the nothing until the last frame where it appears at the end of the guide

    Without seeing anything of what you did there is not much to go on except to say that when you create a classic tween you use a library-based object and it has to exist at both ends of the tween.  When motion guides come into play you usually have to fiddle around when making the link between the object and the motion guide to get the object to lock to it.

Maybe you are looking for

  • Undefined error updating Adobe AIR on Windows Server 2008

    I am trying to upgrade from Adobe AIR version 2.7.1.1961 to version version 3.1.0.4880. The operating system is Windows Server 2008 Standard  - SP1 I am logged on as the administrator and shortly in the upgrade process, I receive a Window stating: So

  • FOC Testing using ONS15454

    A new FOC is setup to connect our ONS to a far-end optical system (unknown)belonging to another carrier. I want to test the FOC connection for errors, is ONS intelligent to do that?

  • In Max, click Test Panel - Get Executable version (7.1.1) doesn't match resource file (7.1)

    Hi, I haven't used LabVIEW for a while. I plugged in a USB-6251 and ran Measurment and Automation explorer and saw that the USB-6251 was in the NI-DAQmx Device and was green. I clicked on the Test Panels button and got a window with the message: Get

  • Regarding views selection

    hi experts,                i m developing a bdc for valuation class and type using tc 'mm01' here i m facing one problem for some particulars materials the sequence of accounting views getting change automatically while executing the program , cud u

  • License enabled in Meeting Place 7

    Hi, I have apply the license to meetingplace 7,  the licese info show  300 port license has installed. but it is still only 6 enabled. Is this normal beheavior ? and how i can enable all  300 port license. Natta