Questions concerning Nested Classes

Hi!
Just read some articles about nested classes (include the ones from the Java Tutorial and the Effective Java chapter), and while most of it is perfectly clear, three questions remain:
1.) When I declare a member class, how should I declare the access specifiers (private, protected etc.) for the member class's attributes and methods? If I declare a member class as private, anything but private for the attributes and methods wouldn't make sense, would it?
2.) The Java Tutorial says:
Also, because an inner class is associated with an instance, it cannot define any static members itself.While this is true for static methods, it seems to be possible to declare static variables inside inner classes. This is confusing me... does it actually make sense to declare static variables inside inner classes (or member classes in general)? Or should the be placed in the declaring class?
3.) Another confusing quote from the Java Tutorial:
Static nested classes do not have access to other members of the enclosing class.This is true for instance variables and methods but not for static variables, which are also members of the enclosing class, aren't they?
Thanks in advance,
OIiver

Trollhorn wrote:
Hi!
Just read some articles about nested classes (include the ones from the Java Tutorial and the Effective Java chapter), and while most of it is perfectly clear, three questions remain:
1.) When I declare a member class, how should I declare the access specifiers (private, protected etc.) for the member class's attributes and methods? If I declare a member class as private, anything but private for the attributes and methods wouldn't make sense, would it?
    private static class MyInner implements Runnable
        @Override public void run() // Must be public!
2.) The Java Tutorial says:
Also, because an inner class is associated with an instance, it cannot define any static members itself.While this is true for static methods, it seems to be possible to declare static variables inside inner classes. This is confusing me... does it actually make sense to declare static variables inside inner classes (or member classes in general)? Or should the be placed in the declaring class?Wrong. It can define static final member variables and I see no reason to move them to the outer class, if they are used only by the inner class.
3.) Another confusing quote from the Java Tutorial:
Static nested classes do not have access to other members of the enclosing class.This is true for instance variables and methods but not for static variables, which are also members of the enclosing class, aren't they?I agree with you here.
Edited by: baftos on Jun 6, 2009 9:18 AM

Similar Messages

  • Question about nested classes

    Hi, i currently have the following problem:
    I have 2 classes, one of which also has a nested class:
    1. Home.java (extends JApplet)
    2. Away.java (extends JPanel) has nested class, private class ButtonListener implements ActionListener
    Now in Home.java I have a Vector ( called bankaccount) which i pass to the Constructor of Away.java ( I declared the vector again there as an instance by Private Vector bankaccount;).
    My problem is that in ButtonListener I am trying to access the Vector so that i can modify it when a button has been clicked, and i thought i could just use the commands of bankaccount.add() and bankaccount.get() directly, however it seems like ButtonListener cannot access the Vector, even though i passed it along to the Constructor of the Away class.
    Any suggestions on how i get access the Vector from the ButtonListenere class?

    This is an example:
    public class Home extends JApplet
    private Away away;
    private Vector bankaccount;
    public void init()
         bankaccount = new Vector();
         away = new Away(bankaccount);
    public class Away extends JPanel
    private Vector bankaccount;
    JTextArea text1= new JTextArea(50,50);
    public Away(Vector bankaccount)
       //declare buttons,textarea,setLayout,etc
    button1.addActionListener (new ButtonListener());
    //i can set  text1.setText(( String)bankaccount.get(0));
    // here to access bankaccount, and it shows up fine, but i want
    // do it in from the class below
    private class ButtonListener implements ActionListener
              public void actionPerformed(ActionEvent event)
                         //trying to access bankaccount here by doing:
                        // but it is not doing anything
                        text1.setText(( String)bankaccount.get(0));
    }

  • Incorrect ClassDoc for nested classes

    Hello,
    I think there is a bug in Javadoc concerning nested classes ClassDoc records extracted through the doclet API.
    In particular, ClassDoc records are correct if the container class is directly specified on the command line as a .java file or part of a package (i.e. the source is available), but they are (at times) wrong if the records are built from .jar (.class) files through the classpath.
    Example with "java.io.ObjectOutputStream" from JDK 1.3.1_01:
    If the ClassDoc for this class comes from RootDoc.specifiedClasses(), its nested classes are correctly listed as:
    private static final class java.io.ObjectOutputStream.HandleTable
    public abstract static class java.io.ObjectOutputStream.PutField
    static final class java.io.ObjectOutputStream.PutFieldImpl
    private static final class java.io.ObjectOutputStream.ReplaceTable
    private static final class java.io.ObjectOutputStream.Stack
    but if the ClassDoc of the container class is extracted from a method parameter, like in org.apache.xerces.dom.ParentNode.writeObject(ObjectOutputStream out), this is the result:
    final synchronized class java.io.ObjectOutputStream$HandleTable
    public abstract static class java.io.ObjectOutputStream.PutField
    static final class java.io.ObjectOutputStream.PutFieldImpl
    final synchronized class java.io.ObjectOutputStream$ReplaceTable
    final synchronized class java.io.ObjectOutputStream$Stack
    According to my tests, at least ClassDoc.modifiers(), ClassDoc.qualifiedName() and ClassDoc.containingClass() return incorrect results for HandleTable, ReplaceTable and Stack.
    This behaviour seems common to both Javadoc 1.3.1_01 and 1.4beta3. I admit I didn't test 1.4 final, but I searched the Javadoc site, the forum and the bug database without finding anything similar.
    Thanks in advance for any help.
    Amedeo Farello

    Thank you for looking into this.
    This is beyond my understanding of the Doclet API.
    Please submit this as a bug using the instructions at:
    http://java.sun.com/j2se/javadoc/faq/index.html#submitbugs
    and please email the ID number you get back to me
    at [email protected] so I can make sure it gets
    past our initial reviewers and into our bug database so
    our javadoc engineer can look at it.
    -Doug Kramer
    Javadoc team

  • Tutorial Q&E : Implementing Nested Classes, Question 2

    //1.3
    Taken from http://java.sun.com/docs/books/tutorial/java/javaOO/QandE/nested-answers.html
    import java.util.*;
    public class Problem {
    public static void main(String[] args) {
    Timer timer = new Timer();
    timer.schedule(new TimerTask() {
    public void run() {
    System.out.println("Exiting.");
    timer.cancel();
    5000);
    System.out.println("In 5 seconds this application will exit. ");
    Question 2: The program Problem.java (above) doesn't compile. What do you need to do to make it compile? Why?
    Answer 2: Add final in front of the declaration of the timer variable. A nested class declared within a method has access to any final, local variables in scope.
    Could somebody please elaborate on this answer for me? I don't really feel it gives enough information for me to understand fully the "why?" part.
    Thanks
    Mark

    Hi,
    the problem is that the instace of the nested class is still existing after the execution of the method has been finished. But how should it have access to a variable which doesn't exists anymore?
    The only way to solve this problem is to declare the variable as final. Because then the value of the variable is known when the instance of the nested class is created an can be copied. Then at each place in the nested class where the variable is used, the copy is used instead. This is only valid because the value of the variable cannot be changed after the creation of the nested class' instance.
    Andre

  • Question about the property of the nested class.

    "Nested classes may be declared static. In this case, the nested class has no reference to an enclosing instance"
    Can any one demonstrate the above through an code example?? thanks

    thanks jverd.
    Then why dont you answer my other thread??You have several threads. I've said what I have tosay in all the ones that I know about, am interested
    in, and have the time to answer. Last one I lookedat, you were in Monica's very capable hands, so I had
    nothing to add.
    Thanks!I may not be the sharpest knife in the drawer, but I know better than to piss of her what's gonna administer the dread Blueberry Pie Torture.

  • How to ensure multiple nested classes static readonly initialization orders

    Hello,
    I am emulating the Java Enumeration in a first class class, with static readonly field initialization.
    In an effort to further categorize some instances, I embed them in nested classes. Something like this.
    class A : Enumeration
    public static class CatB
    public static readonly A FirstInstance = new B();
    public static readonly A SecondInstance = new B();
    public static class CatC
    public static readonly A ThirdInstance = new C();
    public static readonly A FourthInstance = new C();
    class B : A
    class C : A
    So far so good.
    One strain of Enumeration has built-in Ordinals, so I initialize them in the static ctor, or I make an effort to.
    static A()
    var values = GetValues().ToList();
    var ordinal = 0;
    values.ForEach(v => v.Ordinal = ++ordinal);
    Also, in places, so far so good.
    However, in a main method, I am referencing one of the enumerated instances, so calls to my GetValues() is returning nulls for that nested class. The other nested class instances are just fine, they return just fine.
    I could post more, but I think this illustrates the idea.
    I am suspicious that a strange static initialization order is jumbled up, as evidenced by nested static ctor debug statements I put in. I get one print and not the other.
    When I switch up which instance I reference in my main, I get the opposite behavior, more or less confirming my suspicions.
    So... Question is, what's the best way to potentially work around this issue? Hopefully without abandoning the Enumeration concern altogether, but that thought is a possibility as well. Or at least do so differently.
    Thank you...

    It is probably necessary to show GetValues() at least. I am getting the correct nested types, so that much we can at least assume.
    protected static IEnumerable<TDerived> GetValues()
    var declaringTypes = GetDeclaringTypes(typeof (TDerived)).ToArray();
    foreach (var declaringType in declaringTypes.Reverse())
    var fis = declaringType.GetFields(PublicStaticDeclaredOnly);
    var values = fis.Select(fi => fi.GetValue(null)).ToArray();
    foreach (var value in values.OfType<TDerived>())
    yield return value;
    Okay, here a bit of explanation.
    Enumeration is declared generically, with TDerived as the derived type. In this case, A.
    GetDeclaringTypes is operating okay. I get types for A, B, and C.
    The fis to values is breaking down, however. When I reference any of the CatB's, I get nulls for those instances. Conversely, same for CatC's when I reference any of those.

  • Bytecode class names (nested classes)

    Hi,
    with my JVMTI agent on a 1.5 JVM I found class names like this:
    Lsun.misc.URLClassPath$JarLoader
    Ljava.util.HashMap$Entry
    which show nested classes inside of other classes. The point is, that those nested classes (behind '$') here have a name.
    But what about those:
    Lsun.misc.Launcher$AppClassLoader$1
    Ljava.util.zip.ZipFile$2
    Ljava.lang.Class$1
    Ljava.lang.ref.ReferenceQueue$Null
    They dont have a name? How is this possible? Is it inline creation of an abstract class for example which results in unnamed (and then numbered) nested classes? And what about that "Null" ?
    Robert

    Cross-posted.
    http://forum.java.sun.com/thread.jspa?threadID=738470
    Robert: do not ask your question repeatedly in different areas. At the very least post a link to your question in other areas. Otherwise you waste peoples time, if the question has already been answered somewhere else.

  • Question about multiple classes and Linked Lists

    Lets say you have 4 classes: LinkedList which is the main class, Node, Card, and Hand. im not putting any constructors yet
    The card class keeps track of a card such as a king of diamonds:
    public class Card {
    string suit;
    string rank;
    the node class has a Card object and another node object so it would be
    public class Node {
    Card c;
    Node next;
    the hand class keeps track of the users hand. This program will ask the user if they want to add, remove, print out the hand, or print out the score of the hand, I guess it would be like this
    public class Hand {
    Node head;
    The linkedlist class will contain all the methods for doing the above
    now my questions are. Lets say I want to add a card, so I would have to add a new Node which contains the card. If i wanted to access the new nodes card contents, lets call this node g, can i do, g.c.suit and g.c.rank in which this case c is the card object in Node. Also, these are not going to be nested classes, they are going to be 4 seperate classes, if I declare all variables as private will I need to extend the classes or not and if there is a better way, let me know. Thanks alot for all your help and previous help.

    here is an example of Card and Hand ...
    not saying its good design
    but it does work
    public class Cards {
    public static void main(String[ ] args) {
    Card c1 = new Card ("ace", "diamonds");
    Card c2 = new Card ("two", "spades");
    Card c3 = new Card ("three", "hearts");
    Hand a1 = new Hand ();
    a1.add(c1);
    a1.add(c2);
    a1.add(c3);
    System.out.println("\nshowing hand ...");
    a1.show();
    System.out.println("\ndeleting " + c2.num + " " + c2.suite);
    a1.del(c2);
    System.out.println("\nshowing hand ...");
    a1.show();
    } // main
    } // class
    class Hand exists in 3 states
    and is designed to be a chain of cards ...
    1. when class Hand is first created
       a. it has no card
       b. and no nextHand link
    2. when somecard is added to this Hand
       a. it has a card
       b. and the nextHand link is null
    3. when somecard is attempted to be added to this Hand
       and it already has a card
       then a nextHand is created
       and the somecard is added to the nextHand
       a. so the Hand has a card
       b. and the Hand has a nextHand
    class Hand {
    public Card acard;
    public Hand nextHand;
    public Hand () {
      acard = null;
      nextHand = null;
    public void add (Card somecard) {
      if (acard == null) {
        acard = somecard;
        return;
      if (nextHand == null) nextHand = new Hand();
      nextHand.add (somecard);
    delete this Hand by making this Hand
    refer to the next Hand
    thus skipping over this Hand in the nextHand chain
    for example, removing Hand 3 ...
    1  -  2  -  3  -  4   becomes
    1  -  2  -  4
    public void del (Card somecard) {
      if (acard == somecard) {
        if (nextHand != null) acard = nextHand.acard;
        else acard = null;
        if (nextHand != null) nextHand = nextHand.nextHand;
        return;
      nextHand.del(somecard);
    public void show() {
      if (acard == null) return;
      System.out.println(acard.num + " " + acard.suite);
      if (nextHand != null) nextHand.show ();
    } // class
    class Card {
    public String num;
    public String suite;
    Card (String num, String suite) {
      this.num = num;
      this.suite = suite;
    } // class

  • Why a nested class can instantiate an abstract class?

    Hi people!
    I'm studying for a SCJP 6, and i encountered this question that i can figure it out but i don't find any official information of my guess.
    I have the following code:
    public class W7TESTOQ2 {
        public static void main(String[] args) {
           // dodo dodo1 = new dodo();
            dodo dodo2 =new dodo(){public String get(){return "filan";}};
            dodo.brain b = dodo2.new brain(){public String get(){return "stored ";}};
            System.out.print(dodo2.get()+" ");
            System.out.println(b.get());
    abstract class dodo
        public String get()
            return "poll";
        abstract class brain
            public abstract String get();
    }I know that abstract classes cannot be instantiated but i see that in this example, with a nested anonymous class it does (dodo and brain classes). My guess is that declaring the nested class it makes a subclass of the abstract class and doing so it can be instantiated. But i can't find any documentation about this.
    Does anybody know?
    Really thanks in advance.
    Regards,
    Christian Vielma

    cvielma wrote:
    Another question about this. Why can't i declare a constructor in the nested class? (it gives me return type required)You cannot declare a constructor, because in one line you're declaring a new class (the anonymous inner class) as well as constructing an instance of it.
    What you can do, however, is if the abstract class (or the superclass, in any case, it doesn't need to be abstract) defines several constructors, you can call them.
    public abstract MyClass {
        public MyClass() {
            // Default do nothing constructor
        public MyClass(String s) {
            // Another constructor
    // Elsewhere
    MyClass myclass = new MyClass("Calling the string constructor") {
    };But you can't define your own constructors in the anonymous inner class.
    Also, since the class is anonymous, what would you name the constructor? :)
    Edited by: Kayaman on 26.6.2010 22:37

  • Help with the above program .. Nested Classes

    class Outer {
         Outer() {
              System.out.println("Global Outer");
    Class Main {
         //Nested Class by default extends the local class Outer
         Class Inner extents Outer {
              Inner() {
                   super();
                   System.out.println("Inner");
         //Local class Outer
         Class Outer {
              Outer() {
                   System.out.println("Local Outer");
         //Main function
         public static void main(String[] args) {
              new Main().new Inner();
    /* Output will be
    * Local Outer
    * Inner
    /* I want to extend the Global Outer Class by Inner .. how do i do this */

    This is not one of those stupid exam questions ....
    I was just curious .....
    I could have simply added a package statement at the start
    package mypack;Then extended the outer class by the foll statement
    class NestedClass extends mypack.Outer {
                     // declarations and definitions
    }I was just curious whether it was possible without the package statement
    Thanks a lot guys!

  • Nub question concerning threads.

    I recently completed my first Comp Sci. class in Java and have decided to try to continue learning on my own. I am now trying to make a pong game, using a turorial. Unforunately my course did not cover threads in any way, shape, or form. I am able to get the beginning of the program to work (code posted below) and have no problems with it; however, I do have a few questions concerning what certain elements of the code do.
    1. Can someone please give a definition of a Thread in "Dummy" speach? I've looked up definitions and I can't seem to really grasp what they are and what they are used for.
    2. In my program there are two lines (32 & 79) where the thread priority is changed. Can someone explain what that means and how it affects my applet?
    import java.applet.*;
    import java.awt.*;
    public class BallApplet extends Applet implements Runnable
         //Declare variables to change posistion
         int x_pos = 10;
         int y_pos = 100;
         int radius = 20;
         boolean rWall = false,
         //The second image of the ball
         private Image dbImage;
         private Graphics dbg;
         public void init() {}
         public void start()
              Thread th = new Thread(this);
              th.start();
         public void stop() {}
         public void destroy() {}
         public void run ()
              Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
              while(true)
                   while (rWall == false )
                        if (x_pos == 700)
                             rWall = true;
                        else
                             x_pos= x_pos + 5;
                             // repaint the applet
                             repaint();
                             try
                                  // Stop thread for 20 milliseconds
                                 Thread.sleep (20);
                             catch (InterruptedException ex)
                                 // do nothing
                             // set ThreadPriority to maximum value
                             Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
                   while (rWall == true)
                        if (x_pos == 0)
                             rWall = false;
                             lWall = true;
                        x_pos = x_pos - 5;
                        repaint();
                        try
                             Thread.sleep(20);
                        catch (InterruptedException ex)
                        Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
         public void update(Graphics g)
              //initialize buffer
              if (dbImage == null)
                   dbImage = createImage(this.getSize().width,this.getSize().height);
                   dbg = dbImage.getGraphics();
              //clear screen in background
              dbg.setColor (getBackground());
              dbg.fillRect (0, 0,this.getSize().width,this.getSize().height);
              //draw elements in background
              dbg.setColor (getForeground());
              paint(dbg);
              //draw image on screen
              g.drawImage(dbImage,0,0,this);
         public void paint (Graphics g)
              g.setColor (Color.red);
              g.fillOval(x_pos - radius,y_pos - radius,2*radius,2*radius);
    }Thanks for any help, it is greatly appreciated.

    Questie,
    Please control yourself. Please.??
    As the program runs it is one thread. (You canthink
    of each thread as an independent program if youlike.
    This is not 100% accurate but close enough that
    it
    might help you understand)
    It will only confuse the OP
    You are a flat out wrong for a number of reasons.
    1) You seemed to miss the part where I did say that a
    doubling in peformance is fictious and is dependent
    on a number of factors.As i was telling that would only confuse the OP.Its better to be 100% precise when you explain to an OP
    2) You don't understand how a multi-process OS works
    in the least.Assumptions as usual
    3) You don't understand how processors work in the
    least.Well,what was i saying?
    2 and 3 are important because your point about
    context switching is not valid. First of all because
    this happens anyway because your program is not the
    only thing running the processor. Second because of
    the first point each thread gets a timeslice, you may
    with multiple threads each get a timeslice and these
    slices may (and often do) add up to more total time
    then the first got by itself.When you consider a solution to a problem the average and the worst case has more weightage than the best case.You are taking the best case assumption here-"because ofthe first point each thread
    gets a timeslice, you may with multiple threads each
    get a timeslice and these slices may (and often do)
    add up to more total time then the first got by itself".Now dont stop whining that you werent.Never take the best case always coz its the average and worst case which checks if the system festers to a condition beyond rectification
    For example (these numbers are fictional but I am
    trying to explain it so don't go off all half-cocked
    again please)
    Program with one thread. Each thread gets 100 cycles
    per second.
    Program with four threads. Each thread gets 50 cycles
    per second.
    The second program will finish in half the time as
    the first. Because even though each thread is slower
    as a whole the program is getting twice the cycles
    of the processor as before. You are taking the best case again and moreover its the cpu scheduling algo which decides the time slice and not you sitting on the CPU.I have a vague feeling that you have an idea that you are sitting on the CPU deciding the Time Slice.
    You need to understand something important here. Alot
    of the time when you are doing things in a program,
    and this doesn't just apply to IO here, you don't
    have to use the processor for each step. There is
    some shifting around of things to get them ready to
    be executed by the processor. A more advanced
    representation of this is to be found with
    Hyperthreading. Hyperthreading processors (single
    core) are of course single core but they act as if
    they were multi-core (multi processes) because while
    only one process is actually executing at one time
    the others are pipelined in such a way to make sure
    that the executing core of the processor has the
    least amount of idle time possible.Digression
    So that means on a basic processor each time you add
    2 numbers it takes 5 steps. And the processor core is
    idle 80% of the time.
    From where did you get that 80%?Stop coming up with your own numberes.This is no number game
    So for example while some data is being placed in the
    outbox new data is also being collected and is at
    step 2 already. In this model while we are still on a
    single core the core is now idle only 60% of the time[b]From where did you get 60% now
    So yes threading is very useful for IO and other
    operations that may block your program but they have
    more use than just that. Parallel execution can and
    will have some performance advantages (if designed
    properly) even on a single core processor without
    hyperthreading. In a well written multithreaded
    program when you add hyperthreading and multiple
    cores or multiple processors to the mix then you
    really have something.I never said it wont.Read properly what i have posted.I told dont take the best case always.You need to consider that too but the other two carries more weightage
    Please don't feel you ever have to post to correct me
    again thanks.^^
    Get ride of this self conceited attitude.Even if you have it dont make it public.Its not that you are always right cotton.I am not saying that you are wrong.If you have read my first reply i mentioned that i knew that you gave that example just to make the OP understand.The problem with that is that if the OP is unable to fathom out what you mean he is going to misconstrue whatever you have said and that propogates

  • How to override a nested class?

    I'm relatively new to Java, so this may be an easy question, but how do you override the behaviour of a nested class when extending a parent class? For example:
    public class MyParentClass
      public class MyParentNestedClass
        public void someMethod()
          // Some functionality that I want to change 
    }Now I want to create a new class, let's call it MyChildClass, which extends MyParentClass and changes the behaviour of the inner class. Is this possible? What is the syntax to accomplish this? Are there any scope-related problems I should be aware of?
    Do I have to extend the parent class in order to redefine the nested class, or is there some way to just override the nested class (which is all I really want to change)? Any help on this would be appreciated, I've searched both the Sun site and Google and can't come up with a really clear answer to this one.
    Thanks,
    Steve

    That's exactly what I was after. I was trying to do it like this:
    public class MyChildClass extends MyParentClass
      MyParentNestedClass childNestedClass = new MyParentNestedClass()
        public void someMethod() { /* new functionality */ }
    }because I have seen anonymous classes (I think they're called adapter classes) declared like this, but it wasn't working in this case. Thanks for showing me the correct way to do it, I guess in retrospect that makes perfect sense, I don't know why I didn't think of it.
    Thanks,
    Steve

  • I have a MacBook Pro running 10.6.8 model 7.1; need to upgrade to Mavericks.  My question concerns 3 software apps:  Reunion 10, Quicken 2007, Appleworks 6.2.9.  Any recommendations?

    I have a MacBook Pro model 7.1 running 10.6.8; need to upgrade to Mavericks...question concerns 3 software apps:  Reunion 10, Quicken 2007, Appleworks 6.2.9 (word processing docs).  Any recommendations?

    Quicken Essentials is universally loathed on this forum.  Quicken 2007 updated for Lion, Mt. Lion and Mavericks for $15 is the way to go:
    http://quicken.intuit.com/personal-finance-software/quicken-2007-osx-lion.jsp
    Appleworks 6:
    Partition your hard drive or add an external drive and install Snow Leopard and use the "dual-boot" method to run Appleworks; and/or
    Install Snow Leopard Server (available by telephone order only from the Apple Store 1.800.MYAPPLE [1.800.692.7753]; part number - MC588Z/A) into Parallels and run Appleworks (and most other PowerPC apps) concurrently with Mavericks:
                                  [click on image to enlarge]
    Review Roger Wilmut's excellent series of articles, Abandoning Appleworks:
    http://www.wilmut.webspace.virginmedia.com/notes/aw/page1.html

  • Flex RPC mapping Java nested classes to ActionScript classes

    We are calling a Java method in our project using
    RemoteObject the value returned by the java method is a ArrayList
    containing instances of a class say ParentClass with some nested
    classes.
    The structure of ParentClass(Java) is something like this
    class ParentClass {
    //some primitives
    private ChildClassA childAInstance;
    private ChildClassB childBInstance;
    //getters setters
    We have created similar class structure on the ActionScript
    side, the ActionScript classes(ParentClass,ChildClassA
    ,ChildClassB) have been properly annotated with the [RemoteClass]
    metadata tag,
    The problem is that though i'm getting the primitive data
    members of the ParentClass through RPC in my corresponding AS
    ParentClass class i'm getting an runtime exception trying to access
    ChildClassA,ChildClassB members.
    Am i missing something, exactly the same scenario is
    mentioned in this article
    http://www.adobe.com/devnet/flex/articles/complex_data.html
    But the Object.registerClass method mentioned in the tutorial
    is giving me compilation error, the sample code attached with the
    article is corrupt zip too.
    Please help me out on this

    JAXB will create classes from an XML schema, SAX is a parser library and JAXP is a library of XML a bunch of XML tools.
    I don't care for JAXB too much. I would skip it and go right to the JAX-RPC spec (WebServices).

  • Good afternoon ladies and gentlemen!   My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In t

    Good afternoon ladies and gentlemen!
    My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In the settings Adobe Bridge - in "open RAW-files by double-clicking in Adobe Camera Raw» box is checked. When you try any changes in the settings Adobe Bridge system displays a message:
    Bridge's parent application is not active. Bridge requires that a qualifying product has been launched at least once to enable this feature.
    The entire line of Adobe products on my computer updated to the latest updates. Previously, a family of products Adobe Photoshop on your computer is not set. Computer - PC, Windows 7 Enterprises.

    <moved from Adobe Creative Cloud to Bridge General Discussion>

Maybe you are looking for

  • Question about Ram upgrade on a Satellite Pro A200

    I want to purchase some internal memory for my A200 Satellite Pro Mod No,PSAE1E but I cannot find my model in the drop down lists, which memory do I need, I want to upgrade using two 1GB memory sticks, at present I have two 512MB sticks installed.

  • Need information on the very first certification exam - PL/SQL

    Hi all, I am about to enter the OCA track. Need to appear for the very first exam. Please let me know somethings like - 1. begineer's book, and pdf with any one, please pass it to [email protected] 2. what is the name of the certification guide ? 3.

  • I tunes will sync with i touch but wont transfer music or pics

    i reset my i touch and pics and music wont transfer. all music is checked and plays in i tunes. any help?

  • WCS WLC support

    Hi, We are running version 4.2.62 of Cisco WCS. I'd like to upgrade to 4.2.128.  We run version 4.2.209.0 on our WLCs. The release notes for WCS version 4.2.128 does not list WLC version 4.2.209 as a supported version. I would think it would be OK bu

  • Clean Methods for adding HTML5 content to CP6?

    This seems to be a major missing piece of the mLearning wokflow. As far as I can tell the only viable methods for getting Hype/Edge/etc.. HTML5 animation content into a Captivate project are as follows: 1. Convert animation to HTML5 compatible video