Comparator API mistake ???

Dear All
whilst revising for my scjp1.4, which incidetally is taking place tomorrow 06/10/03, I stumbled across what I might define a mistake ( bug is too pretentious ) in the Comparator API specs.
I'd like to quote:
"For example, if one adds two keys a and b such that (a.equals((Object)b) && c.compare((Object)a, (Object)b) != 0) to a sorted set with comparator c, the second add operation will return false (and the size of the sorted set will not increase) because a and b are equivalent from the sorted set's perspective. "
Nothing could be more false than such a statement. I'd invite you to belie my words.
Following is a program that should demonstrate my reasoning:
import java.util.*;
public class OrderingTest {
   public static void main(String[] args) {
      if(args.length != 4) {
         usage();
         System.exit(1);
      int arg1, arg2, arg3, arg4;
      arg1 = Integer.parseInt(args[0]);
      arg2 = Integer.parseInt(args[1]);
      arg3 = Integer.parseInt(args[2]);
      arg4 = Integer.parseInt(args[3]);
      Element e1 = new Element(arg1, arg2);
      Element e2 = new Element(arg3, arg4);
      ElementComp ec = new ElementComp();
      System.out.println("e1: " + e1);
      System.out.println("e2: " + e2);
      Set set1 = new HashSet();
      Set set2 = new TreeSet(); // natural order through the comparable nature of Element
      Set set3 = new TreeSet(ec); // total order by passing a comparator
      set1.add(e1);
      set1.add(e2);
      System.out.println("HashSet: " + set1);
      set2.add(e1);
      set2.add(e2);
      System.out.println("TreeSet: " + set2);
      set3.add(e1);
      set3.add(e2);
      System.out.println("TreeSet: " + set3);
   public static void usage() {
      System.out.println("You need to provide 4 arguments: the first two will passed to e1 constructor, the last two will passed to e2 constructor");
class Element implements Comparable {
   public int i;
   public int j;
   public Element(int i, int j) {
      this.i = i;
      this.j = j;
   public boolean equals(Object o) {
      if(o == null) return false;
      Element e = (Element) o;
      boolean result = i == e.i;
      System.out.println(this + ".equals(" + o + "): " + result);
      return result ;
   public int hashCode() {
      System.out.println( this + ".hashCode() called !");
      return 31 * i;
   public String toString() {
      return "Element@" + super.hashCode() + ": " + i + " " + j;
   public int compareTo(Object o) {
      Element e = (Element) o;
      int result = j == e.j ? 0: j - e.j;
      System.out.println(this + ".compareTo(" + o + "): " + result);
      return result;
class ElementComp implements Comparator {
   public int compare(Object o1, Object o2) {
      Element e1 = (Element) o1;
      Element e2 = (Element) o2;
      int result = e1.j == e2.j ? 0: e1.j - e2.j;
      System.out.println("Comparator.compare(" + o1 + ", " + o2 + "): " + result);
      return result;
}You will find 3 sets: a HashSet, a TreeSet, which uses the comparable nature of Element, and another TreeSet, which avails itself of a comparator in order to sort its elements.
What I would like to prove by this is the following:
HashSet makes use of hashCode() and where necessary of equals(Object o) to make store and to check upon the equality of object.
TreeSet with Comparable does not make use of hashCode() and equals(Object o), but only compareTo(Object o) to store object and and check for their equality.
TreeSet with Comparator does not make use of hashCode() and equals(Object o), bu only compare(Object o1, Object o2) to store object and and check for their equality.
The output of the program demonstrates the last 3 statements.
Now to go back to what the Comparator specs says, if you add two object such that (a.equals((Object)b) && c.compare((Object)a, (Object)b) != 0) you will notice that the second element is indeed added to the Set. I have made sure that hashCode() has been redefined to be consistent with equals(Object o) and that compareTo(Object o) and compare(Object o1, Object o2) to be inconsistent with equals.
Now I am eager to hear from you, all the more since tommorrow I am sitting the scjp 1.4.
thanks for your help in advance
luca iacono

I wouldn't call it an issue of the contract not being fulfilled. The slight inaccuracy ("will not" instead o "may not") occurs in an example of what can go wrong if the user of the class doesn't fulfill his side of the contract. That wording is correct for the current implementation of HashSet, but not for all cases.
The quote you gave was just an example of this statement: "If the ordering imposed by c on S is inconsistent with equals, the sorted set (or sorted map) will behave 'strangely.' In particular the sorted set (or sorted map) will violate the general contract for set (or map), which is defined in terms of equals."
Basically this statement says, "If your Comparator is not consistent with equals, don't expect the sorted set or sorted map to behave like it should." I'm not going to concern myself too much with the fact that it may not always behave badly if I break the rules.

Similar Messages

  • Comparator API specs lies...

    Dear All
    whilst revising for my scjp1.4, which incidetally is taking place tomorrow 06/10/03, I stumbled across what I might define a mistake ( bug is too pretentious ) in the Comparator API specs.
    I'd like to quote:
    "For example, if one adds two keys a and b such that (a.equals((Object)b) && c.compare((Object)a, (Object)b) != 0) to a sorted set with comparator c, the second add operation will return false (and the size of the sorted set will not increase) because a and b are equivalent from the sorted set's perspective. "
    Nothing could be more false than such a statement. I'd invite you to belie my words.
    Following is a program that should demonstrate my reasoning:
    import java.util.*;
    public class OrderingTest {
       public static void main(String[] args) {
          if(args.length != 4) {
             usage();
             System.exit(1);
          int arg1, arg2, arg3, arg4;
          arg1 = Integer.parseInt(args[0]);
          arg2 = Integer.parseInt(args[1]);
          arg3 = Integer.parseInt(args[2]);
          arg4 = Integer.parseInt(args[3]);
          Element e1 = new Element(arg1, arg2);
          Element e2 = new Element(arg3, arg4);
          ElementComp ec = new ElementComp();
          System.out.println("e1: " + e1);
          System.out.println("e2: " + e2);
          Set set1 = new HashSet();
          Set set2 = new TreeSet(); // natural order through the comparable nature of Element
          Set set3 = new TreeSet(ec); // total order by passing a comparator
          set1.add(e1);
          set1.add(e2);
          System.out.println("HashSet: " + set1);
          set2.add(e1);
          set2.add(e2);
          System.out.println("TreeSet: " + set2);
          set3.add(e1);
          set3.add(e2);
          System.out.println("TreeSet: " + set3);
       public static void usage() {
          System.out.println("You need to provide 4 arguments: the first two will passed to e1 constructor, the last two will passed to e2 constructor");
    class Element implements Comparable {
       public int i;
       public int j;
       public Element(int i, int j) {
          this.i = i;
          this.j = j;
       public boolean equals(Object o) {
          if(o == null) return false;
          Element e = (Element) o;
          boolean result = i == e.i;
          System.out.println(this + ".equals(" + o + "): " + result);
          return result ;
       public int hashCode() {
          System.out.println( this + ".hashCode() called !");
          return 31 * i;
       public String toString() {
          return "Element@" + super.hashCode() + ": " + i + " " + j;
       public int compareTo(Object o) {
          Element e = (Element) o;
          int result = j == e.j ? 0: j - e.j;
          System.out.println(this + ".compareTo(" + o + "): " + result);
          return result;
    class ElementComp implements Comparator {
       public int compare(Object o1, Object o2) {
          Element e1 = (Element) o1;
          Element e2 = (Element) o2;
          int result = e1.j == e2.j ? 0: e1.j - e2.j;
          System.out.println("Comparator.compare(" + o1 + ", " + o2 + "): " + result);
          return result;
    }You will find 3 sets: a HashSet, a TreeSet, which uses the comparable nature of Element, and another TreeSet, which avails itself of a comparator in order to sort its elements.
    What I would like to prove by this is the following:
    HashSet makes use of hashCode() and where necessary of equals(Object o) to make store and to check upon the equality of object.
    TreeSet with Comparable does not make use of hashCode() and equals(Object o), but only compareTo(Object o) to store object and and check for their equality.
    TreeSet with Comparator does not make use of hashCode() and equals(Object o), bu only compare(Object o1, Object o2) to store object and and check for their equality.
    The output of the program demonstrates the last 3 statements.
    Now to go back to what the Comparator specs says, if you add two object such that (a.equals((Object)b) && c.compare((Object)a, (Object)b) != 0) you will notice that the second element is indeed added to the Set. I have made sure that hashCode() has been redefined to be consistent with equals(Object o) and that compareTo(Object o) and compare(Object o1, Object o2) to be inconsistent with equals.
    Furthermore, have a look at the Comparator API 's counterpart, Comparable; you will find a similar statement, but this time it's correct!
    Now I am eager to hear from you, all the more since tommorrow I am sitting the scjp 1.4.
    thanks for your help in advance
    luca iacono

    I answered in the other forum.
    Please do not crosspost.

  • How to Enable Compare.api in Acrobat X

    I have purchased and installed Acrobat X ver 10.1.1 and would like to use the compare feature.  When I select the View dropdown menu where this feature should be listed I do not see it there.  I then went to Help -> About Adobe Plugins and saw that the Compare.api plugin is not installed.  I inserted my CD to reinstall and do not see this as an option to install from the CD.  Can somebody please let me know how I can get this plugin installed?  I've looked on the Adobe website without finding any answer.
    Thaks in advance for your help!

    Do you use Acrobat X Pro or Acrobat X Suite?

  • Acrobat Visual Compare Bug

    Dear all,
    We have created visual compare API using Adobe Acrobat sdk 8.
    On that we have found one issue in the output report as follows
    When i compare two pdf files (compare A and compare B), pages of document has been duplicated in the output report without text labeling as document B. We have marked those pages as extra pages in the inserted screenshot.
    Can anyone please help me on this.
    Regards,
    Jayakrishnan

    Hi mnav2015,
    According to your description, when you add a new parameter in dataset query, the parameter doesn’t generate automatically in report parameters.
    In Reporting Service, when we define a dataset query that contains a query variable, the query command is parsed. For each query variable, a corresponding dataset parameter and report parameter are created automatically. As we tested in Visual Studio 2008,
    the query designer contains the query, after refreshing the fields, the corresponding report parameter will display automatically.
    So in your scenario, I would like to know how about your query with the parameter. If possible, please provide some screenshots of results before and after you add a new parameter in dataset query.
    Reference:
    How to: Associate a Query Parameter with a Report Parameter
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Invoking Acrobat PDF compare from Java code

    Need to invoke the Adobe Acrobat XI's PDF compare feature using Java code.
    Description:
    ========
    We are exploring the possibilities of passing 2 PDF's from Java to Adobe Acrobat XI SDK to get the compared results in new PDF.
    If anyone has explored with this feature... please share your thoughts.

    You would need to write a custom plugin to Acrobat that calls the compare APIs (as they are only accessible from C/C++).  Your plugin can then expose whatever from of IAC/IPC that it wishes to communicate with your Java code.
    Of course, this is all DESKTOP code since Acrobat can't be used on a server.

  • How to get the values of the fields inside pageFragment

    Hi All,
    I am working on Jdeveloper 11.1.1.5.
    I have a fragment "home.jsff", in that fragment i have two textboxes(txt1,txt2);
    Then i have created a bounded taskflow "myTF"and dragged the home.jsff inside it and used as a default activity.
    Now finally i have "final.jspx" , in which i have dragged and dropped the bounded taskflow "myTF" as a region.
    Scenario : - I have a button on final.jspx , and on click of that button i need to get the value of those two textboxes using bindings which is present in fragment .
    On Click of button,I am using this method of pageDef and i am able to get the values :-
    jsfUtils.resolveExpression("#{data.abc_homePageDef.txt1.inputValue}");
    but somehow it gives me null in some conditions.I don't know why it sometimes gives the value and why it doesn't.
    I have seen this video in which Frank has told about the API Mistakes : -
    http://download.oracle.com/otn_hosted_doc/classic_api_mistakes_part1/classic_api_mistakes_part1.html
    and i did the same mistake but what is the another approach .
    If i need to get the current value of txt1, then how can i get it??
    What is the best approach to get the values of the pageFragment attributes and how to use it ?
    Please suggest!!!
    Regards,
    Shah

    Hi Tulasi,
    As i have said that i am trying to get the values on the click of button(*not on page load*) situated on final.jspx page.
    On click of button i am using this code to get the values :-
    public String getValueTextBox()
    Object valueTXT= getBoundAttributeValue("txt1");
    logger.info("value is"+ valueTXT); *// It shows the value as null.*
    return null;
    public Object getBoundAttributeValue( String attributeName) {
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindingContainer = bctx.findBindingContainer("abc_homePageDef");
    if (bindingContainer != null) {
    ControlBinding ctrlBinding = bindingContainer.getControlBinding(attributeName);
    if (ctrlBinding instanceof AttributeBinding) {
    return (AttributeBinding)ctrlBinding;
    return null;
    Please suggest!!!
    Regards,
    Shah

  • Bug - Error when installing Oracle Rdb Extension (7.3)

    Hi, hope I come to he right place to fill a bug report.
    I'm getting an error message when trying to install the Oracle Rdb Extension (7.3).
    Steps:
    1. Download sqldeveloper 4
    2. Unpack/Start sqldeveloper
    3. Select from menu Help
         -> Check for updates...
         -> mark Oracle Extensions
         -> click next button
         ->  mark Oracle Rdb Extension
         -> click next button
         -> click finish button.
              -> At this point the error occures.
    Error message details:
    An error has occurred. Click Details for information that may be useful when diagnosing or reporting this problem.
    java.lang.StringIndexOutOfBoundsException: String index out of range: 82
      at java.lang.String.charAt(String.java:658)
      at java.util.regex.Matcher.appendReplacement(Matcher.java:762)
      at java.util.regex.Matcher.replaceAll(Matcher.java:906)
      at java.lang.String.replaceAll(String.java:2162)
      at oracle.ideimpl.webupdate.commandline.PreInstaller.replaceBundleInstallLocation(PreInstaller.java:239)
      at oracle.ideimpl.webupdate.commandline.PreInstaller.getDesitinationDirIDE(PreInstaller.java:281)
      at oracle.ideimpl.webupdate.commandline.PreInstaller.getDestinationDir(PreInstaller.java:250)
      at oracle.ideimpl.webupdate.commandline.PreInstaller.seedInstaller(PreInstaller.java:180)
      at oracle.ideimpl.webupdate.commandline.PreInstaller.commit(PreInstaller.java:120)
      at oracle.ideimpl.webupdate.wizard.UpdateWizard.commit(UpdateWizard.java:296)
      at oracle.ideimpl.webupdate.wizard.UpdateWizard.access$000(UpdateWizard.java:55)
      at oracle.ideimpl.webupdate.wizard.UpdateWizard$1.commit(UpdateWizard.java:245)
      at oracle.ide.wizard.FSMWizard.finishImpl(FSMWizard.java:902)
      at oracle.ide.wizard.FSMWizard._validateFSMState(FSMWizard.java:643)
      at oracle.ide.wizard.FSMWizard.doFinish(FSMWizard.java:351)
      at oracle.bali.ewt.wizard.BaseWizard$Action$1.run(BaseWizard.java:4029)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:694)
      at java.awt.EventQueue$3.run(EventQueue.java:692)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
      at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
      at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
      at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
      at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
      at java.awt.Dialog.show(Dialog.java:1082)
      at java.awt.Component.show(Component.java:1651)
      at java.awt.Component.setVisible(Component.java:1603)
      at java.awt.Window.setVisible(Window.java:1014)
      at java.awt.Dialog.setVisible(Dialog.java:1005)
      at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
      at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
      at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:51)
      at oracle.ideimpl.webupdate.wizard.UpdateWizard.runWizard(UpdateWizard.java:261)
      at oracle.ideimpl.webupdate.WebUpdateController.checkForUpdates(WebUpdateController.java:24)
      at oracle.ideimpl.webupdate.WebUpdateController.handleEvent(WebUpdateController.java:31)
      at oracle.ideimpl.controller.MetaClassController.handleEvent(MetaClassController.java:53)
      at oracle.ide.controller.IdeAction$ControllerDelegatingController.handleEvent(IdeAction.java:1482)
      at oracle.ide.controller.IdeAction.performAction(IdeAction.java:663)
      at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:1153)
      at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:618)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
      at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
      at java.awt.Component.processMouseEvent(Component.java:6505)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
      at java.awt.Component.processEvent(Component.java:6270)
      at java.awt.Container.processEvent(Container.java:2229)
      at java.awt.Component.dispatchEventImpl(Component.java:4861)
      at java.awt.Container.dispatchEventImpl(Container.java:2287)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      at java.awt.Container.dispatchEventImpl(Container.java:2273)
      at java.awt.Window.dispatchEventImpl(Window.java:2719)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:694)
      at java.awt.EventQueue$3.run(EventQueue.java:692)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:708)
      at java.awt.EventQueue$4.run(EventQueue.java:706)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
      at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
      at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    From Help->About
    About
    Oracle SQL Developer 4.0.0.13
    Version 4.0.0.13
    Build MAIN-13.80
    IDE Version: 12.1.3.0.41.131202.1730
    Product ID: oracle.sqldeveloper
    Product Version: 12.2.0.13.80
    Version
    Component Version
    ========= =======
    Oracle IDE 4.0.0.13.80
    Java(TM) Platform 1.7.0_45
    Extensions
    Name Identifier Version Status Registration Time Initialization Time Total Time
    ==== ========== ======= ====== ================= =================== ==========
    Integrated Development Environment (IDE) Platform Core oracle.ide 12.1.3.0.41.131202.1730 Fully Loaded 112ms 139ms 251ms
    Peek oracle.ideimpl.peek 12.1.3.0.41.131202.1730 Fully Loaded 3ms 49ms 52ms
    Code Editor oracle.ide.ceditor 12.1.3.0.41.131202.1730 Fully Loaded 19ms 57ms 76ms
    Persistent Storage oracle.ide.persistence 12.1.3.0.41.131202.1730 Fully Loaded 0ms 4ms 4ms
    File Change Monitor oracle.ide.file 12.1.3.0.41.131202.1730 Fully Loaded 0ms 5ms 5ms
    Web Browser and Proxy oracle.ide.webbrowser 12.1.3.0.41.131202.1730 Fully Loaded 2ms 14ms 16ms
    Indexing Service oracle.ide.indexing 12.1.3.0.41.131202.1730 Fully Loaded 1ms 2ms 3ms
    Property Inspector oracle.ide.inspector 12.1.3.0.41.131202.1730 Fully Loaded 10ms 14ms 24ms
    Markers oracle.ide.markers 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
    Audit Core Framework oracle.ide.audit 12.1.3.0.41.131202.1730 Fully Loaded 3ms 14ms 17ms
    Status and Background Audit oracle.ide.status 12.1.3.0.41.131202.1730 Fully Loaded 3ms 13ms 16ms
    IDE macros oracle.ide.macros 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
    Libraries oracle.ide.library 12.1.3.0.41.131202.1730 Fully Loaded 30ms 16ms 46ms
    Virtual File System oracle.ide.vfs 12.1.3.0.41.131202.1730 Fully Loaded 1ms 2ms 3ms
    Navigator oracle.ide.navigator 12.1.3.0.41.131202.1730 Fully Loaded 2ms 9ms 11ms
    Runner oracle.ide.runner 12.1.3.0.41.131202.1730 Fully Loaded 6ms 9ms 15ms
    External Tools oracle.ide.externaltools 12.1.3.0.41.131202.1730 Fully Loaded 3ms 3ms 6ms
    File Support oracle.ide.files 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
    Palette 2 oracle.ide.palette2 12.1.3.0.41.131202.1730 Fully Loaded 7ms 1ms 8ms
    Insight oracle.ide.insight 12.1.3.0.41.131202.1730 Fully Loaded 6ms 3ms 9ms
    Object Gallery oracle.ide.gallery 12.1.3.0.41.131202.1730 Fully Loaded 11ms 5ms 16ms
    Import/Export Support oracle.ide.importexport 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
    Technology oracle.jdeveloper.technology 12.1.3.0.41.131202.1730 Fully Loaded 5ms 2ms 7ms
    Extended IDE Platform oracle.jdeveloper.common 12.1.3.0.41.131202.1730 Fully Loaded 19ms 22ms 41ms
    JDeveloper Runner Core oracle.jdeveloper.runner.core 12.1.3.0.41.131202.1730 Fully Loaded 0ms 21ms 21ms
    JavaCore oracle.jdeveloper.java.core 12.1.3.0.41.131202.1730 Fully Loaded 18ms 29ms 47ms
    JDeveloper Runner oracle.jdeveloper.runner 12.1.3.0.41.131202.1730 Fully Loaded 12ms 115ms 127ms
    Code Editor Save Actions oracle.ide.ceditor-saveactions 12.1.3.0.41.131202.1730 Fully Loaded 2ms 3ms 5ms
    Oracle Deployment Core Module oracle.deploy.core 12.1.3.0.41.131202.1730 Fully Loaded 4ms 14ms 18ms
    Make and Rebuild oracle.jdeveloper.build 12.1.3.0.41.131202.1730 Fully Loaded 12ms 7ms 19ms
    PL/SQL Probe Debugger oracle.jdeveloper.db.debug.probe 12.1.3.0.41.131202.1730 Fully Loaded 0ms 0ms 0ms
    Database UI oracle.ide.db 12.1.3.0.41.131202.1730 Fully Loaded 18ms 53ms 71ms
    Database Connections oracle.jdeveloper.db.connection 12.1.3.0.41.131202.1730 Fully Loaded 5ms 28ms 33ms
    Database Object Explorers oracle.ide.db.explorer 12.1.3.0.41.131202.1730 Fully Loaded 0ms 12ms 12ms
    Compare API oracle.ide.compareapi 12.1.3.0.41.131202.1730 Fully Loaded 3ms 0ms 3ms
    Help System oracle.ide.help 12.1.3.0.41.131202.1730 Fully Loaded 8ms 4ms 12ms
    Local History oracle.ide.localhistory 12.1.3.0.41.131202.1730 Fully Loaded 0ms 133ms 133ms
    History Support oracle.jdeveloper.history 12.1.3.0.41.131202.1730 Fully Loaded 8ms 21ms 29ms
    Check For Updates oracle.ide.webupdate 12.1.3.0.41.131202.1730 Fully Loaded 3ms 2ms 5ms
    Core Database Development oracle.sqldeveloper 12.2.0.13.80 Fully Loaded 45ms 437ms 482ms
    SQL Worksheet oracle.sqldeveloper.worksheet 12.2.0.13.80 Fully Loaded 10ms 24ms 34ms
    Database Reports oracle.sqldeveloper.report 12.2.0.13.80 Fully Loaded 3ms 12ms 15ms
    Oracle SQL Developer Data Modeler - Reports oracle.sqldeveloper.datamodeler_reports 12.2.0.13.80 Fully Loaded 0ms 0ms 0ms
    Replace With oracle.ide.replace 12.1.3.0.41.131202.1730 Triggers Loaded 1ms 0ms 1ms
    JViews Registration Addin oracle.diagram.registration 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
    Log Window oracle.ide.log 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
    Oracle SQL Developer - File Navigator oracle.sqldeveloper.filenavigator 12.2.0.13.80 Triggers Loaded 4ms 0ms 4ms
    Oracle SQL Developer - Migrations T-SQL Translator oracle.sqldeveloper.migration.translation.core 12.2.0.13.80 Fully Loaded 0ms 0ms 0ms
    Oracle SQL Developer - Extras oracle.sqldeveloper.extras 12.2.0.13.80 Fully Loaded 2ms 65ms 67ms
    Third Party Database Development oracle.sqldeveloper.thirdparty.browsers 12.2.0.13.80 Fully Loaded 0ms 8ms 8ms
    Oracle SQL Developer - Migrations Core oracle.sqldeveloper.migration 12.2.0.13.80 Fully Loaded 8ms 67ms 75ms
    Oracle SQL Developer - Migrations MySQL oracle.sqldeveloper.migration.mysql 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    TimesTen Integration oracle.ide.db.timesten 12.1.3.0.41.131202.1730 Fully Loaded 0ms 0ms 0ms
    Help Oracle Start Page oracle.ide.helpstartpage 12.1.3.0.41.131202.1730 Fully Loaded 3ms 0ms 3ms
    Versioning Support oracle.ide.vcscore 12.1.3.0.41.131202.1730 Triggers Loaded 2ms 0ms 2ms
    Patch Support oracle.jdeveloper.patch 12.1.3.0.41.131202.1730 Triggers Loaded 3ms 0ms 3ms
    IDE Thumbnail oracle.ide.thumbnail 12.1.3.0.41.131202.1730 Triggers Loaded 1ms 0ms 1ms
    VHV oracle.ide.vhv 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
    QuickDiff oracle.ide.quickdiff 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
    Versioning Support oracle.jdeveloper.vcs 12.1.3.0.41.131202.1730 Triggers Loaded 1ms 0ms 1ms
    Oracle SQL Developer - Migrations MySQL SQL Translator oracle.sqldeveloper.migration.translation.mysql_translator 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    Oracle SQL Developer - Security oracle.sqldeveloper.security 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    Component Palette oracle.ide.palette1 12.1.3.0.41.131202.1730 Fully Loaded 7ms 0ms 7ms
    Oracle SQL Developer - Unit Test oracle.sqldeveloper.unit_test 12.2.0.13.80 Triggers Loaded 4ms 0ms 4ms
    Oracle SQL Developer - Migrations Application Migration oracle.sqldeveloper.migration.application 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
    Oracle SQL Developer - Migrations PostgreSQL oracle.sqldeveloper.migration.postgresql 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    Code Editor Find oracle.ide.ceditor-find 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
    Oracle SQL Developer - RESTful Services Administration oracle.sqldeveloper.rest 12.2.0.13.80 Triggers Loaded 2ms 0ms 2ms
    Oracle SQL Developer - Change Mangement oracle.sqldeveloper.em_cm 12.2.0.13.80 Fully Loaded 2ms 5ms 7ms
    Versioning Support for Subversion oracle.jdeveloper.subversion 12.1.3.0.41.131202.1730 Triggers Loaded 4ms 0ms 4ms
    Oracle SQL Developer - Migrations Translation UI oracle.sqldeveloper.migration.translation.gui 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
    Oracle SQL Developer Data Modeler oracle.datamodeler 4.0.0.833 Triggers Loaded 29ms 0ms 29ms
    Oracle SQL Developer - Migrations DB2 Translator oracle.sqldeveloper.migration.translation.db2 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    Oracle SQL Developer - Migrations Microsoft SQL Server oracle.sqldeveloper.migration.sqlserver 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    Oracle SQL Developer - Migrations Teradata SQL Translator oracle.sqldeveloper.migration.translation.teradata 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    Oracle SQL Developer - Real Time SQL Monitoring oracle.sqldeveloper.sqlmonitor 12.2.0.13.80 Triggers Loaded 3ms 0ms 3ms
    Oracle SQL Developer - Database Cart oracle.sqldeveloper.dbcart 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
    Bookmarks oracle.ide.bookmarks 12.1.3.0.41.131202.1730 Fully Loaded 6ms 4ms 10ms
    Code Editor Tint oracle.ide.ceditor-tint 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
    Oracle SQL Developer - DBA Navigator oracle.sqldeveloper.dbanavigator 12.2.0.13.80 Fully Loaded 3ms 108ms 111ms
    Oracle SQL Developer - TimesTen oracle.sqldeveloper.timesten 12.2.0.13.80 Fully Loaded 1ms 38ms 39ms
    Protocol Handler Classpath oracle.jdeveloper.classpath 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
    BM Share oracle.bm.jdukshare 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
    MOF XMI oracle.mof.xmi 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
    Database Snippets oracle.sqldeveloper.snippet 12.2.0.13.80 Fully Loaded 0ms 7ms 7ms
    Usage Tracking oracle.ide.usages-tracking 12.1.3.0.41.131202.1730 Fully Loaded 0ms 1ms 1ms
    ToDo Tasks Markers oracle.jdeveloper.markers.todo 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
    Versioning Support for Git oracle.jdeveloper.git 12.1.3.0.41.131202.1730 Triggers Loaded 4ms 0ms 4ms
    Oracle SQL Developer - Migrations Teradata oracle.sqldeveloper.migration.teradata 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
    Searchbar oracle.ide.searchbar 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
    (Name Unavailable) oracle.sqldeveloper.tuning 12.2.0.13.80 Triggers Loaded 3ms 0ms 3ms
    Dependency Tracking oracle.ide.dependency 12.1.3.0.41.131202.1730 Fully Loaded 0ms 0ms 0ms
    Code Style oracle.jdeveloper.style 12.1.3.0.41.131202.1730 Fully Loaded 3ms 12ms 15ms
    XML Editing Framework oracle.ide.xmlef 12.1.3.0.41.131202.1730 Fully Loaded 18ms 55ms 73ms
    Mac OS X Adapter oracle.ideimpl.apple 12.1.3.0.41.131202.1730 Fully Loaded 0ms 0ms 0ms
    Diagram Framework oracle.diagram 12.1.3.0.41.131202.1730 Triggers Loaded 4ms 0ms 4ms
    OLAP oracle.olap 12.2.0.13.80 Fully Loaded 10ms 324ms 334ms
    Database UI Extras oracle.jdeveloper.db.extras 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
    Oracle SQL Developer - Migrations Sybase Adaptive Server oracle.sqldeveloper.migration.sybase 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    Oracle SQL Developer - Migrations Microsoft Access oracle.sqldeveloper.migration.msaccess 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    Database XML Schema oracle.sqldeveloper.xmlschema 12.2.0.13.80 Fully Loaded 0ms 0ms 0ms
    Oracle SQL Developer - APEX Listener Administration oracle.sqldeveloper.listener 12.2.0.13.80 Triggers Loaded 3ms 0ms 3ms
    Oracle SQL Developer - Scheduler oracle.sqldeveloper.scheduler 12.2.0.13.80 Fully Loaded 0ms 134ms 134ms
    Oracle SQL Developer - Spatial oracle.sqldeveloper.spatial 12.2.0.13.80 Triggers Loaded 2ms 0ms 2ms
    Oracle SQL Developer - Schema Browser oracle.sqldeveloper.schemabrowser 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
    Code Editor Bookmarks oracle.ide.ceditor-bookmarks 12.1.3.0.41.131202.1730 Fully Loaded 0ms 7ms 7ms
    Oracle SQL Developer - Migrations DB2 oracle.sqldeveloper.migration.db2 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
    Data Miner oracle.dmt.dataminer 12.2.0.13.80 Triggers Loaded 12ms 0ms 12ms
    Print System oracle.ide.print 12.1.3.0.41.131202.1730 Triggers Loaded 2ms 0ms 2ms

    I'm getting an error message when trying to install the Oracle Rdb Extension (7.3).
    I'm not sure if that extension has been upgraded for sql developer 4. Extensions written for previous versions won't work in sql developer 4 - they need to be modified to support the OSGI framework.
    Leave the thread open until one of the sql developer team members can answer this.
    Here is the note from the sql developer exchange home page
    http://www.oracle.com/technetwork/developer-tools/sql-developer/extensions-083825.html
    Special Note Regarding Extensions Developed Prior to SQL Developer
    v4.0:
    With the new release of SQL
    Developer 4.0, an extension that was written for a previous version of SQL
    Developer will no longer work. SQL Developer is built on the JDeveloper
    Framework. We have updated the framework to be current with the JDeveloper 12c
    release. With JDeveloper 11gR2, they switched to an OSGI framework. The JDeveloper team has published instructions for updating your extensions to be compatible with
    the new framework and SQL Developer v4.0.
    The Check for Updates interface
    has been updated to hide any 3rd party extensions to avoid confusion with
    extensions not loading. Once you have updated your extension for version 4 and
    beyond, let us know, and we'll update the system to make it available again. For
    questions regarding the process of going from the old to new framework, we have
    started a dedicated
    thread on the Forums. You can also email the Product Manager, Jeff Smith, to
    setup a call with one of our developers for additional assistance.
    As that note says if that extension is NOT for version 4 it shouldn't show up on the list of updates.

  • Binary File comparaison GUI

    Hi,
    I looking for an implementation of a binary file comparaison with a GUI.
    A component that looks like Eclipse compare API UI.
    A split pane that displays differences between two files with differents colors and automatic scrolling.
    Can you help me
    Thanks in advance

    Resolved..
    Issue is in the code
      do.
        write sy-index to lv_index no-zero.
        concatenate 'CTXT_' lv_index into lv_heading.
        condense lv_heading no-gaps.
        concatenate lv_string lv_heading c_tab into lv_string.
        concatenate 'CVAL_' lv_index into lv_heading.
        condense lv_heading no-gaps.
        concatenate lv_string lv_heading c_tab into lv_string.
        if sy-index eq gv_no_col.
          " concatenate c_cret c_tab lv_string into lv_string. "<< to be commented
          exit.
        endif.
      enddo.
    and
      loop at lt_textab into ls_textab.
        wa_out-text = ls_textab.
        lv_string1 = wa_out-text.
        concatenate lv_string c_cret lv_string1 into lv_string. " This line tab is removed
      endloop.

  • Binary search in List of Lists

    Hi,
    I have List of Lists (i.e an List of ArrayList within ArrayList), now i have being trying to do use binarySeach using the comparator api in Collections framework .. but no luck . Can someone help me out
    thanx
    sharad

    Yes i have the listed sorted using the sort api on collections framework... following is the piece of code which sorts the String numbers stored in List of Lists. (please note the following code has been modified from its original source, so that i can post it across forums). Now using the binarysearch api in Collection framework .. i need to search for string say 5401880000 .. can i do it.
    import java.util.*;
    public class MySort
         public static void main(String args[])
              List innerList = new ArrayList();
              List outerList = new ArrayList();
              innerList.add(new String("5889319999"));
              innerList.add(new String("5889310000"));
              outerList.add(innerList);
              innerList = new ArrayList();
              innerList.add(new String("5401880000"));
              innerList.add(new String("5401889999"));
              outerList.add(innerList);
              innerList = new ArrayList();
              innerList.add(new String("5425550999"));
              innerList.add(new String("5425550000"));
              outerList.add(innerList);
              System.out.println ("unsorted list ---> "+outerList);
    // sorting the collections ...
              Collections.sort(outerList, new Comparator()
              public int compare(Object o1, Object o2)
              List list1 = (List) o1;
              List list2 = (List) o2;
              String d1 = (String) list1.get(0);
              String d2 = (String) list2.get(0);
              return d1.compareTo(d2);
              System.out.println("Sorted: " + outerList);

  • Need info on DDL and Data propagation

    Greetings Guys,
         I have a requirement for moving data and DDL from lower environment to production, this would be done on some frequency say weekly for deploying the latest code for the application, I would like to know what are the possible techniques
    and tools available in SQL Server. I am not sure if I can set up replication for all the tables in the database because in case of restoring the database from backup I suspect fixing the replication problem itself will become a big thing. Currently we use
    merge statements for moving data between the environments and redgate sql compare API for moving DDLs. Let me know if there are any other ways to do this. 
    Environment:
    SQL SERVER 2008 R2
    WINDOWS 2008 R2
    With regards,
    Gopinath.
    With regards, Gopinath.

    You can also create a SSDT database project and publish the changes using it
    see
    http://www.techrepublic.com/blog/data-center/auto-deploy-and-version-your-sql-server-database-with-ssdt/
    http://blogs.msdn.com/b/ssdt/archive/2013/08/12/optimizing-scripts-for-faster-incremental-deployment.aspx
    http://schottsql.blogspot.in/2012/11/ssdt-publishing-your-project.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to implement Three Level Sort ?

    I am performing a complex search and get a List of Object. Now, the problem is I have to sort this list in three levels. That is,
    If I have Object like this
    public class A {
    private String id ; // unique for every record
    private String attr1;
    private String attr2;
    private String attr3;
    private String attr4;
    then I have to Sort the List of above type of objects
    First level -attr1 as Asc
    Second level -attr2 as Asc
    third level - attr3 as desc
    Could u suggest some way to implement this.

    I would suggest using the built in Collections framework for sorting.
    have class A implement the Comparable interface then implement the compareTo method as follows:
    public int compareTo(Object o) {
        A a = (A)o;  // <-- may cause ClassCastException if (o instanceof A) != true, but that should not be a problem.
        int value = attr1.compareTo(a.attr1);
        if (value != 0) return value;
        value = attr2.compareTo(a.attr2);
        if (value != 0) return value;
        value = a.attr3.compareTo(attr3);  //Notice I switched a.attr3 and attr3 for desc
        return value;
    }That should do it for you.
    Now put everything into an instance of java.util.List and pass that to java.util.Collections.sort(java.util.List);
    If you didn't create class A, and therefore can't add a method to it, then implement a Comparator. The idea is the same, just look at the java.util.Comparator API and use java.util.Collection.sort(java.util.List, java.util.Comparator) method to sort;

  • How to implement column header sort

    Hi all,
    Does anyone know how to configure Oracle 9i AS Portal Release 2 column header sort.
    In Portal, Oracle has setup the IDE to sort your columns using arrow keys in the
    column headers. I would like to do the same thing without using the Custom Form.
    TIA,
    Daniel N

    I would suggest using the built in Collections framework for sorting.
    have class A implement the Comparable interface then implement the compareTo method as follows:
    public int compareTo(Object o) {
        A a = (A)o;  // <-- may cause ClassCastException if (o instanceof A) != true, but that should not be a problem.
        int value = attr1.compareTo(a.attr1);
        if (value != 0) return value;
        value = attr2.compareTo(a.attr2);
        if (value != 0) return value;
        value = a.attr3.compareTo(attr3);  //Notice I switched a.attr3 and attr3 for desc
        return value;
    }That should do it for you.
    Now put everything into an instance of java.util.List and pass that to java.util.Collections.sort(java.util.List);
    If you didn't create class A, and therefore can't add a method to it, then implement a Comparator. The idea is the same, just look at the java.util.Comparator API and use java.util.Collection.sort(java.util.List, java.util.Comparator) method to sort;

  • Compare PDF functionality API

    Hi All,
    Do you know how we call Adobe compare PDF utility in Java program.
    I have n no of files to compare. Is there option to call Adobe compare PDF in my java program. So that I can write a looping for all files.
    Appreciate your answer...

    Thanks Test Screen Name..No. I do not want in server. in my desk top. I have installed Adobe acrobat pro X in my desktop. What I want to do is i have 50 PDF to be compared with a single original PDF. I want to compare those 50 PDF without comparing one by one. I want to compare in a single time. So if any API is there, I can write a code by looping through 50 PDF's. Hope you got it..please let me know if you need more information..

  • BW IP: API's comparably methods in IP

    Hello together,
    in BPS is the function group UPC_API. With these functions, read and written plan data can be planning-variable read and set.
    API_SEMBPS_ADHOCPACKAGE_SET
    API_SEMBPS_AREA_GETDETAIL
    API_SEMBPS_CHA_VALUES_GET
    API_SEMBPS_CHA_VALUES_UPDATE
    API_SEMBPS_FUNCTION_EXECUTE
    API_SEMBPS_GETDATA
    API_SEMBPS_GLSEQUENCE_EXECUTE
    API_SEMBPS_HIERARCHY_GET
    API_SEMBPS_LAYOUT_GETDETAIL
    API_SEMBPS_PACKAGE_GETDETAIL
    API_SEMBPS_PLANSTRUCTURE_GET
    API_SEMBPS_PLEVEL_GETDETAIL
    API_SEMBPS_POST API_SEMBPS_REFRESH
    API_SEMBPS_SEQUENCE_EXECUTE
    API_SEMBPS_SETDATA
    API_SEMBPS_VARIABLE_GETDETAIL
    API_SEMBPS_VARIABLE_SET
    Question:
    Is there in the integrated planning comparably methods and can someone send me examples?
    Many greetings
    Christian

    Dear Gregor,
    this is an interesting question which I am confronted with myself.  U indicated that there is not much need for these API's, but how do you retrieve the value of a variable within the logic of an exit function (implemented in rsplf1) in IP?
    I cannot see that the normal BEx exit variable logic (I_STEP = 2 in include ZXRSRU01) would be applicable.
    This used to be possible with API_SEMBPS_CHA_VALUES_GET.
    Greetings,
    Martin

  • Jdev  Java Editor: API for 'compare with' option

    Hi,
    For a plug-in that I am working on, I would want to display the diff between two specified files. This is an existing feature in Jdev (10.1.3.3.0.3). Here is the navigation path for the existing feature.
    a. Open an java source
    b. Right click -> Compare with -> Other file
    c. After choosing the file to compare with, the diff is shown in a different editor
    Can you point api(if exists) to the diff editor to which I can specify the two files to compare in some sort of custom plugin.
    Thanks in much anticipation.
    With regards,
    Veerendra S.

    Awaiting inputs. Thanks in anticipation.
    With regards,
    Veerendra S.

Maybe you are looking for

  • How do you access the BT speedtester utility?

    Hello! Just got activated this morning. It's all very exciting. Here's a speedtest result from speedtest.net: I noticed that some people are using the BT speedtester utility to find their speed profile and do a more reliable speedtest. However, when

  • VA01 Error - COMPUTE_BCD_OVERFLOW

    Hi All,           When trying to create a SALE ORDER (VA01) the program dumps stating "Overflow during the arithmetical operation (type P) in program "SAPLATP3". The error is happening inside the FORM PEEK_ATP_STACK4REQ_02. Description of the error:

  • Can anyone explain how they made this Jar file

    Hi all, I have searched the forum without luck. Lots of people asked questions about protecting their jar files but almost everyone said to either use exe file or use obfuscators. But how can I make my jar so it is not possible to open it or when you

  • MP3 Issue

    I am trying build a simple audio player in Edge Animate. I have added seven .MP3 files and created 7 buttons to trigger the .mp3s to play. For whatever reason, if I add more than 6 audio files to the document, the 7th will not play. (Sometimes it's t

  • ORA-00603

    while starting pfile the below error comes can anyone help me ORA-00603: ORACLE server session terminated by fatal error