Apparent bug in evict

Hi,
Table 2 (the state transitions table) in the spec says that evict on a persistent-dirty instance
leaves its state unchanged. It does not say that an exception should be thrown as Kodo does. The
spec in section 12.5.1 implies that eviction may be delayed. In other words, the behavior that I
would expect, if I am correctly interpreting the murky depths of the spec here, is that evicting a
persistent-dirty instance has no immediate effect, but after the transaction completes, the instance
is then evicted. Evict marks it for eviction and this mark overrides the behavior indicated by the
transaction's RetainValues property.
If I were deciding implementation behavior, I would make all evictions inside a transaction put a
mark, even if they immediately evict the object, so that when the transaction completes, all evicted
objects are, in fact, evicted at transaction completion. So a PNT or PC object that is evicted and
reused within a transaction would get evicted again when the transaction completed. At transaction
completion, the eviction mark would be removed. As you can tell, I kind of like expected behavior
to be simply described and uniformly implemented. It makes an application programmer's life a lot
easier.
David Ezzio

David-
I believe you are correct. I have made a bug report about this:
http://bugzilla.solarmetric.com:8080/show_bug.cgi?id=124
David Ezzio <[email protected]> wrote:
Hi,
Table 2 (the state transitions table) in the spec says that evict on a persistent-dirty instance
leaves its state unchanged. It does not say that an exception should be thrown as Kodo does. The
spec in section 12.5.1 implies that eviction may be delayed. In other words, the behavior that I
would expect, if I am correctly interpreting the murky depths of the spec here, is that evicting a
persistent-dirty instance has no immediate effect, but after the transaction completes, the instance
is then evicted. Evict marks it for eviction and this mark overrides the behavior indicated by the
transaction's RetainValues property.
If I were deciding implementation behavior, I would make all evictions inside a transaction put a
mark, even if they immediately evict the object, so that when the transaction completes, all evicted
objects are, in fact, evicted at transaction completion. So a PNT or PC object that is evicted and
reused within a transaction would get evicted again when the transaction completed. At transaction
completion, the eviction mark would be removed. As you can tell, I kind of like expected behavior
to be simply described and uniformly implemented. It makes an application programmer's life a lot
easier.
David Ezzio--
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Kodo Java Data Objects Full featured JDO: eliminate the SQL from your code

Similar Messages

  • Apparent Bug:  Adding photo to Contacts

    I was editing a contact and noticed an apparent bug:
    Go to Contacts --> Select a Contact (one without an assigned picture) --> Click "edit" --> Click add photo --> Select the option "Take photo" --> Take a photo.
    Even after selecting use photo, it will not be added to your contacts. The contact will still show no photo. Additionally, the photo will not be added to your photos album or anything. New bug?

    I have noticed this issue and and off throughout the history of my various iPhones. In iOS 4 it is certainly there, but I am honestly unsure if this is a bug with the OS, or something that is in my backups that just continues to manifest as I update/transfer my iPhone to new ones each year.
    While I applaud that I have been able to do that and the relative stability, it would be GREAT if I could carry forward application data, yet delete other settings. I'd really like to start my iPhone over (as in, set it up as new and just transfer my apps and their data back to the phone,) but it is really an all or nothing proposition.
    Have any of you had this issue after a reset of the iPhone? Are we all people who have carried our phone images forward? Would be curious to know...

  • Apparent bug in refresh

    Hi,
    For Kodo, if an optimistic transaction is active, and a JDO instance is persistent-dirty, passing
    the instance to refresh causes the state to be reloaded from the datastore, but it also changes the
    JDO state to persistent-clean. The spec calls for persistent-nontransactional. I don't know why,
    since there is no apparent reason why refresh should change an instance from transactional to
    nontransactional.
    David

    Hi Marc,
    Actually, I am referring to section 5.8, table 2, first page. A refresh on a persistent-dirty
    object will either make it PC or PNT depending on whether the transaction is datastore or
    optimistic. These two entries in the table are the same for all three versions of the PFD.
    I got an answer back from Craig Russell on my question, "why draw a distinction" between the
    two. The motivation is this: For optimistic transactions, PC objects are compared (in the case of
    Kodo SHOULD be compared, this is another bug that I reported) with the persistent state in the
    datastore to make sure that cached persistent state is up-to-date. Since the object has just been
    refreshed, it makes sense to assume that the application no longer feels the need to verify its
    freshness against the datastore, so it is made PNT.
    David
    Marc Prud'hommeaux wrote:
    >
    David-
    For Kodo, if an optimistic transaction is active,
    and a JDO instance is persistent-dirty, passing
    the instance to refresh causes the state to be
    reloaded from the datastore, but it also changes the
    JDO state to persistent-clean. The spec calls for
    persistent-nontransactional.I believe you are referring to section 12.5.1 of the JDO PFD #2. Note
    that the corresponding section in JDO PFD #1 does not state that
    this should be the case, and Kodo currently only supports JDO PFD #1.
    Otherwise, you are correct.
    I don't know why, since there is no apparent reason why
    refresh should change an instance from transactional to
    nontransactional.That is a very good question -- I can't figure it out either.
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com
    Kodo Java Data Objects Full featured JDO: eliminate the SQL from your code

  • Apparent bug in 3.1's handling of color labels

    This ties is with [Applescipt manipulating color label|http://discussions.apple.com/thread.jspa?threadID=2645193&tstart=15] posted earlier today.
    If you set the color label of an image to have no color label via the pulldown in the metadata tab of the inspector (select the first circle which will display the text *No Label* when selected) the images color label is set to the string "No Label". Confirm this by looking at the browser in column view, the third column in the default view is Label. You'll see that for colors you'll get a circle of the color and the string name of the color. You'll also notice that other images that do not have a color label simply have --
    The problem arises if you select *No Label* in the search field or Filter HUD. The images labeled as *No Label* rather then the empty string will not show up in the search.
    The *No Label* string can be cleared out by setting the images label to No Label via the +Command 0+ keystroke.
    The Applescript command to set color labels also exhibits this behavior.

    Working with events can sometimes be interesting.  I concentrated my efforts more on fixing the issue than trying to determine if this is a bug or not.  I modified your code slightly to filter events based on click type and I think it is working the way you intended.  Let me know it is not quite right.
    Attachments:
    Double-click-click[2].vi ‏62 KB

  • Apparent bug in ojdbc14-10.2.0.2.0

    Hi,
    I believe I have discovered a bug in the current Type 4 JDBC driver for Oracle 10g. I have isolated the problem into a small program that demonstrates it. Who should I send it to or where should I post it? Would it be OK to describe the issue here, perhaps including listings?
    Thx,
    jh

    Use your CSI to create a Service Request in Metalink with all the details.
    BTW you can also share the details here. It might not be a Bug

  • Apparent Bug in Saving ACR Presets

    I was experimenting with some Camera Raw presets for a new camera and discovered that when I saved a preset for the Detail panel, some of the values were omitted.  Specifically, the preset did not save the values for Luminous Detail, Luminous Contrast, and Color Detail from the Noise Reduction section of the Detail Panel.  Shown below is a preset I saved with dummy values to illustrate this problem.  You can see that the three values I mentioned above are missing from the preset.  Would someone please try this on their computer to see if this is indeed a bug or if I have something else going on?
    I’m using Camera Raw 6.3 on a 64-bit Windows 7 computer.  Photoshop version is 12.0.3x64, and Bridge is version 4.0.4.2.  If this is an actual bug, maybe someone who has ACR 6.4RC could check to see if it’s still a problem in this newer version.
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.2-c004 1.136881, 2010/06/10-18:11:35        ">
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
        xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
       <crs:Version>6.3</crs:Version>
       <crs:Sharpness>37</crs:Sharpness>
       <crs:LuminanceSmoothing>56</crs:LuminanceSmoothing>
       <crs:ColorNoiseReduction>37</crs:ColorNoiseReduction>
       <crs:SharpenRadius>+1.3</crs:SharpenRadius>
       <crs:SharpenDetail>27</crs:SharpenDetail>
       <crs:SharpenEdgeMasking>48</crs:SharpenEdgeMasking>
       <crs:HasSettings>True</crs:HasSettings>
      </rdf:Description>
    </rdf:RDF>
    </x:xmpmeta>
    Thanks,
    Chuck

    I got a lot more - including I think the ones you're saying you're missing - when I tried it with 6.3, as shown below.
    Did you check all the boxes in the dialog asking you what you wanted to save?
    -Noel
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.2-c004 1.136881, 2010/06/10-18:11:35        ">
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
        xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
       <crs:Version>6.3</crs:Version>
       <crs:ProcessVersion>5.7</crs:ProcessVersion>
       <crs:WhiteBalance>As Shot</crs:WhiteBalance>
       <crs:Exposure>-0.25</crs:Exposure>
       <crs:Shadows>0</crs:Shadows>
       <crs:Brightness>+50</crs:Brightness>
       <crs:Contrast>+25</crs:Contrast>
       <crs:Saturation>-8</crs:Saturation>
       <crs:Sharpness>15</crs:Sharpness>
       <crs:LuminanceSmoothing>40</crs:LuminanceSmoothing>
       <crs:ColorNoiseReduction>0</crs:ColorNoiseReduction>
       <crs:ChromaticAberrationR>0</crs:ChromaticAberrationR>
       <crs:ChromaticAberrationB>0</crs:ChromaticAberrationB>
       <crs:VignetteAmount>0</crs:VignetteAmount>
       <crs:ShadowTint>0</crs:ShadowTint>
       <crs:RedHue>0</crs:RedHue>
       <crs:RedSaturation>0</crs:RedSaturation>
       <crs:GreenHue>0</crs:GreenHue>
       <crs:GreenSaturation>0</crs:GreenSaturation>
       <crs:BlueHue>0</crs:BlueHue>
       <crs:BlueSaturation>0</crs:BlueSaturation>
       <crs:FillLight>0</crs:FillLight>
       <crs:Vibrance>0</crs:Vibrance>
       <crs:HighlightRecovery>0</crs:HighlightRecovery>
       <crs:Clarity>0</crs:Clarity>
       <crs:Defringe>2</crs:Defringe>
       <crs:HueAdjustmentRed>+1</crs:HueAdjustmentRed>
       <crs:HueAdjustmentOrange>+3</crs:HueAdjustmentOrange>
       <crs:HueAdjustmentYellow>+5</crs:HueAdjustmentYellow>
       <crs:HueAdjustmentGreen>-5</crs:HueAdjustmentGreen>
       <crs:HueAdjustmentAqua>-25</crs:HueAdjustmentAqua>
       <crs:HueAdjustmentBlue>0</crs:HueAdjustmentBlue>
       <crs:HueAdjustmentPurple>0</crs:HueAdjustmentPurple>
       <crs:HueAdjustmentMagenta>-3</crs:HueAdjustmentMagenta>
       <crs:SaturationAdjustmentRed>-5</crs:SaturationAdjustmentRed>
       <crs:SaturationAdjustmentOrange>-4</crs:SaturationAdjustmentOrange>
       <crs:SaturationAdjustmentYellow>+1</crs:SaturationAdjustmentYellow>
       <crs:SaturationAdjustmentGreen>+8</crs:SaturationAdjustmentGreen>
       <crs:SaturationAdjustmentAqua>-2</crs:SaturationAdjustmentAqua>
       <crs:SaturationAdjustmentBlue>-13</crs:SaturationAdjustmentBlue>
       <crs:SaturationAdjustmentPurple>-2</crs:SaturationAdjustmentPurple>
       <crs:SaturationAdjustmentMagenta>-2</crs:SaturationAdjustmentMagenta>
       <crs:LuminanceAdjustmentRed>-5</crs:LuminanceAdjustmentRed>
       <crs:LuminanceAdjustmentOrange>-3</crs:LuminanceAdjustmentOrange>
       <crs:LuminanceAdjustmentYellow>0</crs:LuminanceAdjustmentYellow>
       <crs:LuminanceAdjustmentGreen>+8</crs:LuminanceAdjustmentGreen>
       <crs:LuminanceAdjustmentAqua>+12</crs:LuminanceAdjustmentAqua>
       <crs:LuminanceAdjustmentBlue>0</crs:LuminanceAdjustmentBlue>
       <crs:LuminanceAdjustmentPurple>0</crs:LuminanceAdjustmentPurple>
       <crs:LuminanceAdjustmentMagenta>0</crs:LuminanceAdjustmentMagenta>
       <crs:SplitToningShadowHue>0</crs:SplitToningShadowHue>
       <crs:SplitToningShadowSaturation>0</crs:SplitToningShadowSaturation>
       <crs:SplitToningHighlightHue>0</crs:SplitToningHighlightHue>
       <crs:SplitToningHighlightSaturation>0</crs:SplitToningHighlightSaturation>
       <crs:SplitToningBalance>0</crs:SplitToningBalance>
       <crs:ParametricShadows>0</crs:ParametricShadows>
       <crs:ParametricDarks>0</crs:ParametricDarks>
       <crs:ParametricLights>0</crs:ParametricLights>
       <crs:ParametricHighlights>0</crs:ParametricHighlights>
       <crs:ParametricShadowSplit>25</crs:ParametricShadowSplit>
       <crs:ParametricMidtoneSplit>50</crs:ParametricMidtoneSplit>
       <crs:ParametricHighlightSplit>75</crs:ParametricHighlightSplit>
       <crs:SharpenRadius>+0.5</crs:SharpenRadius>
       <crs:SharpenDetail>100</crs:SharpenDetail>
       <crs:SharpenEdgeMasking>0</crs:SharpenEdgeMasking>
       <crs:PostCropVignetteAmount>0</crs:PostCropVignetteAmount>
       <crs:GrainAmount>0</crs:GrainAmount>
       <crs:LuminanceNoiseReductionDetail>100</crs:LuminanceNoiseReductionDetail>
       <crs:LuminanceNoiseReductionContrast>0</crs:LuminanceNoiseReductionContrast>
       <crs:LensProfileEnable>1</crs:LensProfileEnable>
       <crs:LensManualDistortionAmount>0</crs:LensManualDistortionAmount>
       <crs:PerspectiveVertical>0</crs:PerspectiveVertical>
       <crs:PerspectiveHorizontal>0</crs:PerspectiveHorizontal>
       <crs:PerspectiveRotate>0.0</crs:PerspectiveRotate>
       <crs:PerspectiveScale>100</crs:PerspectiveScale>
       <crs:ConvertToGrayscale>False</crs:ConvertToGrayscale>
       <crs:ToneCurveName>Custom</crs:ToneCurveName>
       <crs:ToneCurve>
        <rdf:Seq>
         <rdf:li>0, 0</rdf:li>
         <rdf:li>34, 22</rdf:li>
         <rdf:li>67, 60</rdf:li>
         <rdf:li>138, 144</rdf:li>
         <rdf:li>193, 204</rdf:li>
         <rdf:li>255, 255</rdf:li>
        </rdf:Seq>
       </crs:ToneCurve>
       <crs:CameraProfile>Camera Standard</crs:CameraProfile>
       <crs:CameraProfileDigest>F0D06C559756F7BD7331A9DB44BF84DD</crs:CameraProfileDigest>
       <crs:LensProfileSetup>LensDefaults</crs:LensProfileSetup>
       <crs:HasSettings>True</crs:HasSettings>
      </rdf:Description>
    </rdf:RDF>
    </x:xmpmeta>

  • Custom Printer Presets apparent bug?

    I've been using a Canon i9900 for years with Adobe products without trouble, but since about the time of my Leopard upgrade, a small annoying shift keeps occuring when trying to print without Canon or Colorsync management of color (as one normally does when Photoshop manages color). My presets are saved (and always were saved) with "Color Option" -> "Color Management" set to "None". Now, every time I reprint, the presets are overridden with "Color Management" set to "BJ Standard". Leaving the dialog and returning instantly causes this override every time. New presets also. The file "com.apple.print.custompresets.plist" seems to be replaced just fine. Deleting this file and starting from scratch is no help. The "Color Management" portion of the presets, simply isn't recalled correctly...ever.

    I am seeing problems with the com.apple.print.custompresets.plist too. The presets are ignored. The plist file seems to have the right settings but the print dialog box doesn't show them.
    In fact, as an example, choosing to save a new preset after turning on the duplex option for printer (from the Layout panel of the print dialog) simply undoes the duplex setting (turns it off).
    Deleting the com.apple.print.custompresets.plist file does nothing. The error is occurring elsewhere presumably.

  • Apparent bug with ComboBox/TextFormat/Disable-Enable

    Anyone experience, or possible have a way to get around this
    issue? Apply a TextFormat with an embedded font to a combo box,
    disable it, then enable it, and the text in the label field stays
    "disabled" looking. It doesn't recover its color. Ask if you'd like
    a sample file. Thanks.

    Here you go.
    Combo Box Test.
    Test SWF

  • Apparent bug in UITextField?

    If you have a button where the text is too wide the button
    text used to truncate and have an ellipse ( ... ) tacked on the
    end. These days it truncates the text and puts the word "null" on
    the end.

    Domtar,
    What code are you using?
    I tried the following but wasnt able to see the issue:
    <mx:Button label="The quick brown fox jumped over the lazy
    dog" width="100" />
    Peter

  • Apparent BUG in CF8 Ajax

    I've been trying to find a solution for that problem. I've
    searched the web and found a few mention of it but no solutions are
    provided. It's even mentionned in Ben Forta's blog in a comment but
    Ben didn't respond to the comment.
    When using an autosuggest value in a CFINPUT with a numerical
    value, I get the following error:
    "widget: Bind failed for autosuggest PRO, bind value is not a
    1D array of strings"
    The autosuggest works perfectly well with any value starting
    with a letter but any value starting with a number (and having a
    query result) will give this error message.
    The Ajax debug panel is helpful in validating that
    autosuggest results are indeed found but somehow, the numerical
    values are returned as '1500.0' instead of '1500' for example,
    indicating that they are translated in the process. Even forcing a
    hard coded return string of "2" in the CFC will return "2.0" to the
    widget wich will in turn complain about the error message. When
    translating the query to an array for the returned autosuggest, I
    even sneaked in a ToString() for good measure without any luck.
    error:widget: Bind failed for autosuggest PRO, bind value is
    not a 1D array of strings
    info:http: CFC invocation response:
    [1001.0,1002.0,1040.0,1041.0,1042.0,1050.0,1053.0,1099.0,1501.0,1502.0,1553.0,1554.0,1599 .0]
    Thanks for any help you can provide.

    Thanks for your reply.
    You mean the 'returntype' in the cffunction definition? If I
    do that, it breaks to whole autosuggest and it doesn't work anymore
    even for alphabetical autosuggests.
    If you meant something else, please explain it to me because
    this is a real problem.
    I read in a blog a comment by someone who appeared to be
    working for adobe and he said that they were going to put it in
    their bugtracker.
    Here's the blog's URL that talks about this problem.
    http://www.coldfusionjedi.com/index.cfm/2008/3/17/Interesting-ColdFusion-8-AutoSuggest-iss ue-to-watch-for
    This problem seems so important and at the same time, almost
    nobody seems to be talking about it.

  • Convert Regions to New Sampler Track - new bug in 9.1?

    I've tried creating new EXS instruments using the Audio>Convert Regions to New Sampler Track command and all I get is empty audio files, or files containing bursts of white noise.
    Same thing happens in both 64 and 32-bit versions of 9.1.
    The same regions create a working sampler instrument when the operation is tried in v9.02.
    Can anybody confirm this apparent bug?

    Bee Jay wrote:
    Ok, I set my audio format to CAF, bounced some audio to a CAF, then did the convert to sampler instrument on that CAF, and it still worked fine for me.
    The created slices in the EXS editor were all CAF format too.
    This is at 44KHz, 24-bit. What is your sample rate etc set to?
    The same - 44.1/24
    Oh well, I'll report it anyway. Maybe it's hardware specific.
    Thanks for your time, Bee Jay.
    Michael

  • Possible bug: Clicking on Constrain Crop does not constrain crop

    Anybody else experiencing this bug? I saw it a few times, rarely, in LR 4.1 and earlier. I am seeing it more often in LR 4.2 (but nowhere near 100% of the time, this is an intermittent bug)
    In the Lens Corrections panel, I make a set of corrections, check on Constrain Crop, and it does nothing. If I then uncheck Constrain Crop, the crop is constrained. This is backwards from the way it should work.
    Also, if I have a photo where it appears that the crop is properly applied, sometimes if I move on to edit the next photo, and then move back to the original photo, the crop is not shown visually anymore (Even though it was shown visually a few seconds ago), and the check mark is gone in the Lens Correction panel, even though the History panel says that the most recent entry is: Crop Constrain To Warp says "yes".
    Does anyone know a solution?

    Wow... I'm using Photoshop CS5 for Windows and have just encountered this very same problem. The print preview shows the corner crop marks in the correct location as designated by the Bleed... setting (.1"); but when I print, the bleed setting gets ignored and the corner crop marks revert to the outer edges of the image.
    This happens when I print to my Epson color laser or to my Brother b/w laser. It occurred to me to try one other test - and interestingly enough, when I printed to a PDF, the corner marks appeared correctly in the output!
    So far, I haven't found any other information on this apparent bug besides this ancient thread.
    Anyone willing to test this out and give their results? Thanks!
    Archer

  • BUG - BATTERY (STL100-1?)

    Hi,
    To make long story short - there is an apparent bug in 10.1 software (e.g. .273, .2354) that messes up battery percentage counter - sometimes phones shut off at e.g. 15-20-30% indicated and do not charge fully (till eg. 85% - 90%).
    Battery health and life seems ok, so this is software issue that needs to be taken care of.
    More on the subject here:
    http://forums.crackberry.com/blackberry-z10-f254/blackberry-z10-shuts-down-30-battery-807279/

    It's actually a discrpency between the actual calcualated battery remaining power and the on-device battery meter.
    It's happened on the legacy BBOS device and other Z10 OS releases.
    Usually, this can be reset when your device is down to 15-20% charge, by leaving your Z10 to charge with the OEM wall charger, and with the charger STILL connected, remove the battery, reinsert, reboot, etc. You can also try this with a simple top edge power button Restart.
    It may take a time or three of doing over the 2-3 days, but it normally works to correct the "reading" of the on-device battery meter.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Is this a bug in Swing?

    If anyone could provide help on this ASAP it would be greatly appreciated. I was hoping to use my Swing application in an experiment on Tuesday morning, but I seem to have run into a bug in Swing. I'm hoping I have made a mistake or there is some workaround. Here is a minimal program that demonstrates the apparent bug:
    [http://gist.github.com/113083|http://gist.github.com/113083]
    The bug is this:
    I have a Swing container (in the demo program the contentPane) and I have a list of Swing components (some JLabels in the demo).
    At first the container is showing the first component in my list of components. When I press the JButton "next" the first component is removed from the container, the second component is added to the container, and the container is refreshed (calling validate() and then doLayout() is enough).
    When I press next again the third component is put onto the container. So far so good.
    Now press next again and it cycles back to the first component, which is put onto the container. But the GUI does not refresh, it continues to show the previous component.
    From now on whenever you press Next it will not refresh.
    Resizing or minimising then maximising the window will cause it to refresh to the component that it should be showing.
    The pattern seems to be this: if a component that has previously been shown in a container (but is no longer in it) is placed back into that same container then refreshing the GUI fails.
    Edited by: tchomby on May 17, 2009 11:33 AM

    I wasn't assuming this was a bug in Swing, I was asking whether it was. I had used validate, doLayout etc. to dynamically change a Swing GUI before, and so thought that was how it was done. After constructing a minimal demo it appeared to me that there was something wrong. Yes I am a swing newbie.
    There are so many refresh methods, validate, revalidate, doLayout, repaint, pack, it's pretty confusing. I think that because the new component I was putting in place had exactly the same shape and size as the one it was replacing, then perhaps any calls to the various methods that redo the layout if necessary would have no effect. repaint() does sound like it would have been the right thing. That might explain why calling pack after removing the component, when the container is empty, and then calling it again after adding the component seemed to work.
    Anyway, CardLayout works in my demo, I will use it. Thanks :)
    Edited by: tchomby on May 17, 2009 12:03 PM

  • Two bugs in Acrobat 9?

    I'm trying out a Document in Acrobat 9. I found two apparent bugs.
    On my PowerBook 17" I have installed correct Driver for my Printer a HP DJ 990cse. However when I go to set as default printer inside Page Setup within Acrobat 9 the is no indication of a printer. Yet when I go elsewhere such PDF Optimizer> advanced it shows the printer. Note I use printer Plugged into my Airport Express. Acrobat 8 has no problem with this setup.
    Problem two: In the document I noticed a defect in one line with the letter "g" and attempted to use touch up text to retype it to see if I could repair the defect. well when I did the text drop a point or so below the line and completely messed up anything in the box.
    My PowerBook 17 uses a display of 1400x900
    IN suggestions?

    Nemuri13 wrote:
     Gentlemen - the workaround is to open Acrobat first. Then do a file > Open to open the file in Acrobat. If you do this then you should see your printers in the Page Setup. If you double-click on the PDF to open it in Acrobat then you will NOT see your printers. This seems to affect only 10.4.11 and not any version of 10.5. Good Luck!
    For some reason this thread just showed up on new Forum System.
    Anyway I tried your work around. Had no affect.

Maybe you are looking for