harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1169) [classlib][beans] no expected IllegalArgumentException for BeanContextSupport.getResource(...)
Date Mon, 14 Aug 2006 09:48:14 GMT
[classlib][beans] no expected IllegalArgumentException for BeanContextSupport.getResource(...)

                 Key: HARMONY-1169
                 URL: http://issues.apache.org/jira/browse/HARMONY-1169
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Vladimir Ivanov

The method  java.beans.beancontext.BeanContextSupport.getResource(String name, BeanContextChild
bcc) returns 'null' on Harmony and throws IllegalArgumentException on RI.

=================== test.java ============================
import java.beans.*;
import java.beans.beancontext.*;
import java.util.*;
import java.net.URL;
import java.io.InputStream;

public class test {
    public static void main(String args[]) {
        BeanContextSupport localBCS = new BeanContextSupport(new BeanContextServicesSupport(),
        BeanContextServicesSupport localBCSS = new BeanContextServicesSupport(new testBeanContextServices(),
(Locale) null, false);
        System.out.println("res = " + localBCS.getResource(DesignMode.PROPERTYNAME, localBCSS));

class testBeanContextServices implements BeanContextServices {
    public void removeBeanContextServicesListener(BeanContextServicesListener p0) {return;}
    public void addBeanContextServicesListener(BeanContextServicesListener p0) {return;}
    public Iterator getCurrentServiceSelectors(Class p0) {return null;}
    public Iterator getCurrentServiceClasses() {return null;}
    public void releaseService(BeanContextChild p0, Object p1, Object p2) {return;}
    public Object getService(BeanContextChild p0, Object p1, Class p2, Object p3, BeanContextServiceRevokedListener
p4) {return null;}
    public boolean hasService(Class p0) {return false;}
    public void revokeService(Class p0, BeanContextServiceProvider p1, boolean p2) {return;}
    public boolean addService(Class p0, BeanContextServiceProvider p1) {return false;}
    public void removeBeanContextMembershipListener(BeanContextMembershipListener p0) {return;}
    public void addBeanContextMembershipListener(BeanContextMembershipListener p0) {return;}
    public URL getResource(String p0, BeanContextChild p1) {return null;}
    public InputStream getResourceAsStream(String p0, BeanContextChild p1) {return null;}
    public Object instantiateChild(String p0) {return null;}
    public void removeVetoableChangeListener(String p0, VetoableChangeListener p1) {return;}
    public void addVetoableChangeListener(String p0, VetoableChangeListener p1) {return;}
    public void removePropertyChangeListener(String p0, PropertyChangeListener p1) {return;}
    public void addPropertyChangeListener(String p0, PropertyChangeListener p1) {return;}
    public BeanContext getBeanContext() {return null;}
    public void setBeanContext(BeanContext p0) {return;}
    public int hashCode() {return 0;}
    public boolean equals(Object p0) {return false;}
    public void clear() {return;}
    public boolean retainAll(Collection p0) {return false;}
    public boolean removeAll(Collection p0) {return false;}
    public boolean addAll(Collection p0) {return false;}
    public boolean containsAll(Collection p0) {return false;}
    public boolean remove(Object p0) {return false;}
    public boolean add(Object p0) {return false;}
    public Object[] toArray(Object[] p0) {return null;}
    public Object[] toArray() {return null;}
    public Iterator iterator() {return null;}
    public boolean contains(Object p0) {return false;}
    public boolean isEmpty() {return false;}
    public int size() {return 0;}
    public boolean isDesignTime() {return false;}
    public void setDesignTime(boolean p0) {return;}
    public boolean avoidingGui() {return false;}
    public void okToUseGui() {return;}
    public void dontUseGui() {return;}
    public boolean needsGui() {return false;}
    public void serviceAvailable(BeanContextServiceAvailableEvent p0) {return;}
    public void serviceRevoked(BeanContextServiceRevokedEvent p0) {return;}

C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp . -showversion test
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC: System optimized
over throughput (initial strategy singleparpar))

java.lang.IllegalArgumentException: Not a valid child
        at java.beans.beancontext.BeanContextSupport.getResource(BeanContextSupport.java:672)
        at test.main(test.java:15)

C:\tmp\tmp17>C:\harmony\classlib1.5\deploy\jdk\jre\bin\java.exe -cp . -showversion test
java version 1.5 (subset)

(c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
res = null

C:\tmp\tmp17>C:\harmony\drlvm1.5\build\win_ia32_msvc_debug\deploy\jre\bin\java -Dvm.assert_dialog=false
-cp . -showversion test
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r431304, (Aug 14 2006), Windows/ia32/msvc 1310, debug build
res = null

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message