Default visibility interface inheritance problem

I have these constructs:
package bar;
public interface A {
void Foo()
package bar;
public class B extends C implements A {
void Foo() {
This produces following compile error:
Cannot reduce the visibility of the inherited method from A. The error does not occur if I make B::Foo() public.
Why does the error occur?
Thanks in advance,
-Lev

the default visability for interfaces are public for methods and public static final for variables. The
default modifier for classes are packager-scope and variables are non-static, non-final by default.
For this reason and others I prefer to state explicitly what modifiers I expect the methods and variables to have.... and believe me, you're not the only one ;-)
lazyness is often leading to omitting modifiers, wiseness always recommends to be as explicit as possible.

Similar Messages

  • Multiple Inheritance problem persists in Interfaces

    Hi,
    I tentatively made a program and found that multiple inheritance problem of C++ persists even with interfaces. Although this is definetely a special case but I want to know what is this problem known as( i know that this is perhaps known as diamond problem in C++). And is there a way out of this thing.
    interface one
         int i=10;
    interface two
         int i=20;
    interface z extends one,two
    public class xyz implements z
         public static void main(String [] a)
         System.out.println(i);
    }O/P
    D:\Education\Java\JavaStudyRoom\Applets>javac xyz.java
    xyz.java:16: reference to i is ambiguous, both variable i in one and variable i
    in two match
    System.out.println(i);
    *^*
    *1 error*
    Thanks for replying

    suvojit168 wrote:
    I tentatively made a program and found that multiple inheritance problem of C++ persists even with interfaces. Although this is definetely a special case but I want to know what is this problem known as( i know that this is perhaps known as diamond problem in C++). And is there a way out of this thing. This is not the so called diamond inheritance problem. What you have here is an ordinary name clash. And as has been noted you can resolve it by qualifying which constant you're referring to, like
    System.out.println(one.i);
    For the diamond inheritance problem to apply both the one and the two interfaces would need to inherit a common ancestor (that's how the diamond is formed). Furthermore the common anscestor would need to carry implementation which would then be inherited two ways, once via one and once via two. This is the diamond inheritance problem Java is avoiding by allowing single inheritance of implementation only.
    P.S. My previous post was posted my mistake.

  • SWIG - C++/Java and multiple interface inheritance - SWIG typemaps

    In C++ I have the following. Can someone explain how to use SWIG typemaps to accomplish multiple interface inheritance in Java? I understand there is a javainterfaces typemap built into SWIG however I am such a newb with SWIG I really don't know where to start.
    class IRemoteSyncIO
    public:
      virtual ~IRemoteSyncIO () {}
    protected:
      IRemoteSyncIO () {}
    private:
      IRemoteSyncIO (const IRemoteSyncIO&);
      IRemoteSyncIO& operator= (const IRemoteSyncIO&);
    class IRemoteAsyncIO
    public:
      virtual ~IRemoteAsyncIO () {}
    protected:
      IRemoteAsyncIO () {}
    private:
      IRemoteAsyncIO (const IRemoteAsyncIO&);
      IRemoteAsyncIO& operator= (const IRemoteAsyncIO&);
    class RemoteMpe : public IRemoteSyncIO, public IRemoteAsyncIO
    }Thanks!

    Actually now I understand what you mean.... Ok, now I am going to modify the problem slightly and add Interface2 into the picture. The new code is:
    interface Interface1<SelfType extends Interface1<SelfType>>
    interface Interface2
    class Superclass implements Interface1<Superclass>
    class Dependant<Type extends Interface1<Type>>
       public static <Type extends Interface1<Type> & Interface2> Dependant<Type> getInstance(Class<Type> c)
         return new Dependant<Type>();
    class Subclass extends Superclass implements Interface2
      public Subclass()
        Dependant<Subclass> dependant = Dependant.getInstance(Subclass.class);
    }Now, previously I could replace:
    Dependant<Subclass> dependant = Dependant.getInstance(Subclass.class);
    with
    Dependant<Superclass> dependant = Dependant.getInstance(Superclass.class);
    and it solved the problem, but now that Type must implement Interface2 I cannot.
    The reason I added this requirement is that this is actually what is going on in my applicationI had made mistakely omited this detail from the original use-case.
    Can you think up of a possible solution to this new use-case?
    Thanks,
    Gili

  • Ivette manzur : Interface errors problems on cisco 3560

    Hello,
    I have a problem on one of the interfaces on a cisco 3560 switch. In fact, I set up a monitoring network recently (cacti), and I have a significant number of errors on the interfaces. the problem is that when I do a sh interface I see no errors, and even by making a clear counters it does not solve my problem .. I also changed the wiring with cat 6 cables but nothing has changed ..
    What are the main causes of errors on an interface of a switch? what should I do in this case?
    Thank you for your help in advance
    ivette manzur

    Hello,
    I've a e61i and I experience a similar problem. My phone work very well on WiFi network with no encryption as well as 64-bit wep.
    At home I've 2 wireless routers, both encrypted at 128 bits, one with WEP and the other with WPA. On both of them I can correctly obtain an IP thru DHCP, but the traffic do not go thru.
    By using IfInfo I think I discovered the reason of the problem (unless IfInfo is not working properly...) and it seems a bug related to the netmask, broadcast and gateway settings. The router is 192.168.15.1 and this is what I get:
    1) DHCP case -- I get two IP adresses: the 169.254.x.x and the one assigned to the router. DNS is also set properly, but both gateway, broadcast and netmask are set to 0.0.0.0 for both IPs.
    IP Addr: 169.254.162.106
    Netmask: 0.0.0.0
    Broadcast: 0.0.0.0
    Gateway: 0.0.0.0
    DNS1: 192.168.15.1
    IP Addr: 192.168.15.100
    Netmask: 0.0.0.0
    Broadcast: 0.0.0.0
    Gateway: 0.0.0.0
    DNS1: 192.168.15.1
    2) Static IP 192.168.15.64, netmask set to 255.255.255.0 and gateway and DNS set to 192.168.15.1. The 169.254.x.x disappears and I get only one IP which is set to:
    IP Addr: 192.168.15.64
    Netmask: 0.0.0.0
    Broadcast:192.168.15.255
    Gateway: 192.168.15.1
    DNS1: 192.168.15.1
    So in conclusion, it seems that with 128bit encryption, in the DHCP case gateway, broadcast and netmask are not assigned correctly! While in the Static IP case the netmask is still not assigned correctly!!!
    Hope this can help...
    --AP

  • "no visible interface for uiapplication"

    i am setting local noification in some viewController but this line code :"[[UIApplication sharedApplicaition] scheduledNotification:notification] " give me this error: "no visible interface for uiapplication declares the selector :scheduledNotification"
    Please help me out of this

    Hello Robert,
    It is OK to use the management interface as your internal wireless network interface as long as you are OK with that design (clients and management in the same subnet).
    Basically, if you want to put WLAN traffic in a different WIRED vlan, you create a dynamic interface for the desired VLAN (controller > interfaces) and then select the desired interface under the WLAN configuration.
    On the switch side, you will need to make sure that these new vlans are being trunked to the WLC.
    The following diagram explains the interface usage on the WLC platform:
    http://www.cisco.com/en/US/docs/wireless/controller/7.0MR1/configuration/guide/cg_ports_interfaces.html#wp1278618
    -Pat

  • I have opened two versions of Firefox (v3.6.18 and v3.5), v3.6.18 is my default browser. The problem comes after an attempt to open a HTML file.

    I have opened two versions of Firefox (v3.6.18 and v3.5), v3.6.18 is my default browser. The problem comes after an attempt to open a HTML file. An error appears: "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." Why wouldn't it just open on my default browser? Thanks for the help!

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, maybe after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Firewalls]] and http://kb.mozillazine.org/Firewalls
    http://kb.mozillazine.org/Browser_will_not_start_up

  • How does interface inheritance work ??

    I have the following code. The printout is
    Main
    w
    x
    w
    I don't understand how this is working. Clearly interface inheritance is working differently than normal class inheritance. Please explain.
    thanks in advance.
    kris.
    The code follows
    interface C
         char w = DD.echo ('w');
         char x = DD.echo ('x');
    interface D extends C
         char y = DD.echo('y');
         char z = DD.echo('z');
         char a = DD.echo(w);
    class DD implements D
         static char echo(char c)
              System.out.print(c + "\n");
              return c;
         public static void main (String args[])
              System.out.println("Main");
              DD dd = new DD();
              System.out.println(w + "\n");
    }

    The interface only needs loaded if one of its members
    is accessed (although this is probably implemented
    differently on different JVMs).No.
    The interface is loaded.
    It is not initialized. There is a difference. See section 12 of the JLS.
    Assuming the above is true, it appears the following
    is happening
    1. C is loaded because w is accessed from DD�s main .
    This loading causes �w� to be echoed and then �x� to
    be echoed since loading the interface initializes the
    members which in turn call the echo method (I am
    assuming that this only happends when the members are
    not �constants�).
    2. The main method then echoes the w variable (which
    is �w�).
    Having said this, I would think this code would behave
    differently on different JVMs so I am not sure how it
    could even be a �good� theoretical question (unless
    this is documented in the JLS).It is in the JLS.
    Also, loading the the interface may not really be what
    is happening; the initialization code may be in-lined
    in the class (this could be tested by printing w twice
    in main � really strange behaviour).No. It can't inline the initilization of one class in another class.

  • Using default web interface for users

    I wish to use the default web interface for my users, I do not have the time to develop a custom app. I wish to get rid of the group and and mount point folders.
    Please Help,
    Jeff

    CM SDK 9.0.4 (released very shortly) includes the "Web Starter Application". This is a J2EE Web Application with full MVC architecture and completely open source!
    You may be able to obtain this application sooner from Oracle Consulting - it will work on the current CM SDK 9.0.3.
    JSP and Tag Libraries make up the UI. The controller framework is similar to Jakarta Struts. It offers localization support, ADA compliance etc.
    You can easily develop the application from JDeveloper and deploy to 9iAS.
    Matt.

  • Default Audio Interface

    Is it possible to make an external audio interface the default output interface for the entire system, not just a specific program like Logic? I would like to use monitors that obviously will not connect into the standard 1/8th jack, and would need to be wired through an interface. I'd not only like my music channeling through the external audio interface, but system sounds as well. Could I make, through system preferences, the external audio interface the default output?

    Im not exactly sure what you are trying to do, but have you tried using the APPLICATIONS>UTILITIES>AUDIO MIDI SETUP tool? I had to use this before to connect things like bluetooth headsets and such. Maybe this would help?..... :P sorry

  • Seeburger Interface configuration problem

    I am facing some problems in configuring the interfaces in seeburger.
    As the standards which i want to translate are not configured as default for AS2 adapter so i want to configure it through BIC but as i am new to this don't know the basics as how to load the XSD, provided by client, and how to develope it in XML using BIC.
    Please throw some light on it as i am a new bee in seeburger, i also tried doing it but was not successful.

    >
    Rohit Kaushal wrote:
    > I am facing some problems in configuring the interfaces in seeburger.
    > As the standards which i want to translate are not configured as default for AS2 adapter so i want to configure it through BIC but as i am new to this don't know the basics as how to load the XSD, provided by client, and how to develope it in XML using BIC.
    > Please throw some light on it as i am a new bee in seeburger, i also tried doing it but was not successful.
    Can you provide more details like what you are expecting..
    If my understanding is correct you want to implement a mappings in seeburger bic mapping tool for your sceanrio which can take care of conversions right?
    if yes provide more details about your scenario
    Rajesh

  • Object Inheritance problem between projects

    Hi,
    I have two projects lets say project1 and project2. From project1 I instanciate processes of project2 as subflows. In addition I have one bpm object in project1 (lets say object1) that inherits from a bpm object in proyect2 (lets say object2). So project1 depends on project2 to make this inheritance happen. When I call the subflow I pass the object1 and as inherits from object2 there is no problem (input argument). For the output argument I have to cast from object2 to object1. And here is where I have a classcastexception. If all the processes are in the same project it works fine and there is no exception. But when splitting in two projects it fails. Seems that it is something related to the folder structure in the catalog that should be the same for both projects and that is the reason why it does not work, but as one project depends to the other I can not put the same folder structure in both catalogs because in the dependant project it is duplicated.
    Has anybody can give me an idea on how to solve this?
    Thank you very much in advance
    Kind regards

    Nobody can help me with this issue?,any help is much appreciated, the excpetion I get is:
    An operation exception occurred while running an automatic item. Details: An instance in Process '/Prueba#Default-1.0' could not be notified. Caused by: Process execution engine execution error. Caused by: The method 'CIL_otherProjectOtherProjectIn' from class 'Novartis.Prueba.Default_1_0.Instance' could not be successfully executed. Caused by: Cannot convert an object with type xobject.BaseModule.BaseObject to class xobject.DependantModule.DependantObject fuego.papi.exception.CannotStoreNotificationException: An instance in Process '/Prueba#Default-1.0' could not be notified. at fuego.server.AbstractProcessBean.receiveNotification(AbstractProcessBean.java:2791) at fuego.server.iec.LocalIPCHandler.sendNotification(LocalIPCHandler.java:79) at fuego.server.execution.microactivity.DefaultSendNotificationExecutionHandler.sendNotification(DefaultSendNotificationExecutionHandler.java:103) at fuego.server.execution.microactivity.EndMicroActivity.execute(EndMicroActivity.java:69) at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57) at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:62) at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42) at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:251) at fuego.server.execution.ToDoItem.run(ToDoItem.java:536) at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:775) at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755) at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142) at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134) at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:450) at fuego.component.ExecutionThread.work(ExecutionThread.java:839) at fuego.component.ExecutionThread.run(ExecutionThread.java:408) Caused by: fuego.papi.impl.EngineExecutionException: Process execution engine execution error. at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:202) at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:95) at fuego.server.AbstractProcessBean.receiveNotification(AbstractProcessBean.java:2757) ... 21 more Caused by: fuego.lang.ComponentExecutionException: The method 'CIL_otherProjectOtherProjectIn' from class 'Novartis.Prueba.Default_1_0.Instance' could not be successfully executed. at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:519) at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:273) at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:219) at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1277) at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.runCil(ComponentExecutionMicroActivity.java:126) at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.execute(ComponentExecutionMicroActivity.java:84) at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57) at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:199) ... 23 more Caused by: java.lang.ClassCastException: Cannot convert an object with type xobject.BaseModule.BaseObject to class xobject.DependantModule.DependantObject at fuego.util.Conversion.cast(Conversion.java:99) at Novartis.Prueba.Default_1_0.Instance.CIL_otherProjectOtherProjectIn(Instance.xcdl:1) at Novartis.Prueba.Default_1_0.Instance.CIL_otherProjectOtherProjectIn(Instance.xcdl) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:512) ... 36 more
    The strange thing is that if all the processes are in the same project everything works fine but once I split in two projects it raises the exception.
    Thank you very much

  • Interface inheritance and Generics

    Hello!
    For an application I need several 'stores' (classes which contain some elements) which share certain characteristics. I would like to create a general StoreInterface, and some specialized interfaces which inherit from this, e.g. a 'KwicStoreInterface'.
    Also I would like to specify that the Store takes elements of a general type 'Storable', but the KwicStore only takes objects of the type 'KwicInterface' which inherits from 'Storable'.
    I thought that specifying these restrictions using Generics would be a good idea, but I can't get the hang of it.
    This is a simplyfied version of what I tried:
    // interfaces for the stores
    public interface StoreInterface<T extends Storable>{
        public T getElem(Long id);
        public void setElem(T elem);
        public void setElems(Map<Long, T> elems);
    public interface KwicStoreInterface<T extends KwicInterface> extends StoreInterface{
        public void SomeKwicStoreSpecificMethod();
    // Interfaces for the elements
    public interface Storable {
        public Long getID();
        public void setID(Long id);
    public interface KwicInterface extends Storable{
        public void SomeKwicSpecificMethod();
    }When I try to instantiate KwicStoreInterface, this code doesn't compile, because the methods are not recognized as valid implementations of the interface's methods.
    public KwicStore<T extends KwicInterface> implements KwicStoreInterface {
         private Map<Long, T> elements = new HashMap<Long, T>();
       // Only his method seems to be recognized correctly:
        public T getElem(Long id){
              return elements.get(id);
       // not recognized as interface method
        public void setElem(T elem){
               elements.put(elem.getID(), elem);
        // not recognized as interface method
        public void setElems(Map<Long, T> elems){
                elements = elems;
       // this one seems okay, too, of course:
       public void SomeKwicStoreSpecificMethod() {}
    }If I allow the Netbeans IDE to automatically instantiate the methods, all the type information is reverted to Storable or is lost completely (in case of the Map), resulting in methods like:
    @Override
        public void setElem(Storable elem) {
            throw new UnsupportedOperationException("Not supported yet.");
        @Override
        public void setElems(Map elems) {
            throw new UnsupportedOperationException("Not supported yet.");
        @Override
        public Storable getElem(Long id) {
            throw new UnsupportedOperationException("Not supported yet.");
        }What am I doing wrong and how can I achieve the functionality I want?
    Thanks in advance for any help!

    Thanks, that was really helpful!
    However, I ran into new problem now.
    The KwicStore should be built using a Reader object (which parses an XML file) and the reader contains a Map with concrete types.
    However, it seems impossible to initialize a 'variable parameter' with a concrete type.
    public class KwicStore<T extends KwicInterface> implements KwicStoreInterface<T>{
        Map<Long, T> elements;
        // doesn't work:
        KwicStore() {
            KwicStoreReader reader = new KwicStoreReader();
            reader.read();
            this.elements = reader.readerElems;
       // other methods
    // the very simplified reader
    public class KwicStoreReader {
         public Map<Long, KwicInterface> readerElems = new HashMap<Long, KwicInterface>();
        // do something to fill readerElems with Kwic objects (Kwic instantiates KwicInterface)
        public void read() {
             KwicInterface kwic = new Kwic();
             readerElems.put(kwic.getID(), kwic);
    }Is there any way around this?
    I already tried to use Generics and variables within the reader, too, but then I couldn't put Kwic objects into the readerElems map.
    public class KwicStoreReader<T extends KwicInterface> {
         public Map<Long, T> readerElems = new HashMap<Long, T>();
        // do something to fill elems with Kwic objects (Kwic instantiates KwicInterface)
        public void read() {
             T kwic = new Kwic(); // this doesn't work
             readerElems.put(kwic.getID(), kwic);
    }Actually, I would also be fine with restricting KwicStoreInterface to take KwicInterface objects only (without the extends), but I don't know how to declare that correctly.

  • Default cell editor extending problem

    hello again,
    special thanks to camikr, who has helped me a lot in my problems.
    now I will like to know should I implement the default cell editor interface or extend the available class to solve my previous problem of validating table cells?
    which methods should I concentrate on? I will certainly work on is cell editable but kindly suggest me if I want to prevent the tab key from moving the focus to next cell without satisfying certain conditions, what events or methods should I concentrate. if I want the tab key to be blocked what action should I take?
    thanks
    Krishnakant.

    if I want to prevent the tab key from moving the focus to next cell
    without satisfying certain conditions, what events or methods should I concentrateYou where given a working example of this in your last posting:
    http://forum.java.sun.com/thread.jspa?threadID=642364&messageID=3786315
    The example only overrides two methods. Only one of the methods has validation logic. So I would think it would be obvious which method to concentrate on.

  • JAXB Compiler Interface generation problem

    I have a schema where two different elements extend the same base type. The JAXB compiler throws the following error. How do I fix this?
    parsing a schema...
    An interface with the same name "generated.FooType" is generated from more than one schema component.
    line 10 of sample.xsd
    (Relevant to above error) another one is generated from this schema component.
    line 23 of sample.xsd
    Failed to parse a schema.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" >     <xsd:element name="Sample" type="Sample_Type"/>
         <xsd:complexType name="Sample_Type">
              <xsd:sequence>
                        <xsd:element     ref="Foo"/>
                        <xsd:element     ref="Bar"/>
              </xsd:sequence>
         </xsd:complexType>
         <xsd:element name="Foo">
              <xsd:complexType>
                   <xsd:complexContent>
                        <xsd:extension base="Foo_Type"/>
              </xsd:complexContent>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="Bar">
              <xsd:complexType>
                   <xsd:complexContent>
                        <xsd:extension base="Foo_Type"/>
                   </xsd:complexContent>
              </xsd:complexType>
         </xsd:element>
         <xsd:complexType name="Foo_Type">
                   <xsd:sequence>
                             <xsd:element ref="FooBar"/>
                        </xsd:sequence>
         </xsd:complexType>
         <xsd:element name="FooBar" type="FooBar_Type"/>
         <xsd:simpleType name="FooBar_Type">
              <xsd:restriction base="xsd:long"/>
         </xsd:simpleType>
    </xsd:schema>

    The problem is because of you have a complex type Foo_Type
    Solution:
    =============
    Replace all occurences of Foo_Type with something else say "Some_Type"
    It should work
    Explaination:
    =============
    Basically you were getting FooType generated from 2 cases. You have an element "Foo" inside which you have an anonymous complex type. So the java class for the anonymous complex type would be "FooType"
    Then you had a named complex type Foo_Type and the java class would be "FooType" again because "_" is removed when generating classes
    Hence the compiler reported the error
    For more explaination see Section 5.7.2 of the spec Also Table 3.2 of the spec
    Also you seem to be using xjc <schemafile>
    Hence the code by default gets generated in package "generated"
    Recommendation
    =============
    Use xjc -p com.something <schemafile>
    to get the package com.something

  • Default paper size scanning problem, LaserJet M1120n MFP

    Hi, I just got a used LaserJet M1120n MFP. Installed the most up-to-date drivers form HP's website. Printing is fine over USB or LAN, however the WIA scanning driver defaults to paper size "Letter" and I can't scan A4 pages all the way. The bottom is always cut off and I get an unwanted strip besides the scanned document. Please, advise how to change the default paper size of the WIA driver to A4. I use Windows XP Pro. Looked everywhere but cannot find any settings that will allow me to change the default paper size. Any ideas?
    I have been thinking, could default paper size be somehow be tied to system locale? My locale is European and all other device drivers do default to A4. I wonder how the WIA scanning driver chose to default to Letter size.
    The TWAIN driver works fine (I can choose default paper size), though it is less intuitive than I expected. Too bad I can't use it over a LAN. Is there a way to calibrate the scanner for white as the background seems kind of dark?
    Your suggestions and ideas are most appreciated. Thank you.

    Thanks for the reply, Spencer. I have used Adobe Acrobat to scan by means of the WIA driver, but when I do so the paper size selection box is dimmed (inactive) and I can't choose any paper size (nor any is preselected). I have also used Win XP's native Scanner and Camera Wizzard; it doesn't even have a paper size setting. Then I have used it with Win 7's native Windows Fax and Scan; no paper size setting here either.
    Here is a useful thread on the same issue from Adobe's forum: http://forums.adobe.com/thread/844549
    Reading around the forums I came across several posts where people discussed the impossibiity to set paper size when scanning using the WIA driver. Their problem was a bit different, though. The WIA driver had locked to size 'Legal' while they needed to scan in size 'Letter'.
    The WIA interface was developed by Microsoft and here is what they have to say about the issue:
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff548440%28v=vs.85%29.aspx
    'Supported Scanner Paper Sizes
    Although two WIA user interface components are able to display a list of page sizes to the user, there is no easy way for a WIA driver to know which page sizes a scanner supports.
    Page Size in WIA Applications
    There are no WIA properties that allow WIA drivers to report supported page sizes or that allow applications to specify page size directly. To communicate page size settings to a driver, an application must calculate the required size in dots per inch (dpi) and adjust the origin of the scan to conform with the registration requirements of the device.
    Page Size in the Common Scanner Dialog and in the Scanner and Camera Wizard
    Both the Common Scanner Dialog and the Scanner and Camera Wizard have a static table of supported page sizes in which each page size is described by its horizontal width and vertical height, both in increments of 0.001 inch. These page sizes are currently displayed only when the scanner is in document feeder mode.
    The largest page size (by area) that a driver supports in page feed mode, as determined by the maximum bed size, is considered the default page size. Paper sizes that do not fit on the feeder or on the bed of the device are not offered to the user.'  -- exactly my case!
    Having tried the same WIA driver (developed by HP in this case) on several PC's running different WIndows OS and using non-US locale settings, I have came to the conclusion that HP may have hard coded the Letter paper size in the driver. I guess this works for North America but not in Europe where A4 is the standard size.
    I guess I have to look into ways to get to that hard coded paper size setting in order to be able to make use of the driver. I don't even know if that will be possible but I'll keep on reading. Wish me luck

Maybe you are looking for

  • No Audio Output Device Installed message after Upgrading to Windows 7

    I have an HP m7490n Desktop computer that I recently upgraded to Windows 7 Home Premium. I have been to numerous forums and tried to uninstall & reinstall my sound drivers. So far, I cannot find anything that works and my computer has no sound.  I al

  • Now, USB External Hard Drive Not Recognized after 10.6.8 Update

    My external Hard Drive is not recognized on start up.  I have to unplug it and plug it back in for it to be recognized. All this since 10.6.8 updated today. I'm a fool for updating the same day. This has happened before and I always forget the bugs i

  • FM to download internal table to excel

    Hi all,      I want to download my internal table into excel sheet. For this i am using FM <b>GUI_DOWNLOAD</b>. But in my internal table each record is of around <b>400</b> char. length. I think because of this the downloaded <b>content is not proper

  • How to use BPM in PI7.3 which is ABAP Stack

    Hi Experts, Come to know that PI7.3 have only one stack (JAVA), then how to do BPM's which are ABAP Stack, in PI7.3? Thaks & Regards Anil

  • Please help how to recover lost photos on 5S without backup

    The initial update to iOS 8 failed and I used iTools to download the latest 8.0.2. Now my 5S goes to normal but all of the things were deleted after upgrade, especially the photos. I have to show the prototypes to my client tomorrow! How can I get th