• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Solution for WOBuilder problem with session/application/displayGroups
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solution for WOBuilder problem with session/application/displayGroups


  • Subject: Re: Solution for WOBuilder problem with session/application/displayGroups
  • From: Timo Höpfner <email@hidden>
  • Date: Thu, 18 Mar 2004 15:50:37 +0100

Hi Denis,

...
That's a bug.
http://bugreport.apple.com

Filed under 3592641.


Nevertheless I still have a problem: As long as Session is not in the default package, the contents of session as showed in WOBuilder are always empty. But when Session is in the default package, I cannot access it from code which is not in the default package. Any solution for that?

Why can't you access it? Do you actually get classdef errors?


Referencing a class in the default package from a class which has a package is no longer allowed in Java 1.4 (actually I read somewhere, that from the java language specification point of view, it was never allowed, but versions before 1.4 have a bug that allows it...).


Example:

A.java:

public class A {
}

B.java:

package test;
public class B {
	A test;
}

[pbg4:~/src] th% javac A.java test/B.java
test/B.java:3: cannot resolve symbol
symbol  : class A
location: class test.B
        A test;
        ^
1 error

importing A in B also doesn't work:

modified B.java:

package test;
import A;
public class B {
	A test;
}

[pbg4:~/src] th% javac A.java test/B.java
test/B.java:2: '.' expected
import A;
        ^
1 error

Timo
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Solution for WOBuilder problem with session/application/displayGroups (From: Timo Höpfner <email@hidden>)

  • Prev by Date: Booleans, 5.2.3, EOModeler etc.
  • Next by Date: how to deploy a WO application on a https server
  • Previous by thread: Solution for WOBuilder problem with session/application/displayGroups
  • Next by thread: Booleans, 5.2.3, EOModeler etc.
  • Index(es):
    • Date
    • Thread