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-1153) [classlib][beans] getSourceAsBeanContextServices() returns 'null' on Harmony and valid object on RI
Date Fri, 11 Aug 2006 07:49:14 GMT
[classlib][beans] getSourceAsBeanContextServices() returns 'null' on Harmony and valid object
on RI

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

The Harmony method java.beans.beancontext.BeanContextServiceRevokedEvent.getSourceAsBeanContextServices()
returns 'null' on Harmony while RI returns valid object.

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

public class test {
    public static void main(String args[]) {
        BeanContextServicesSupport localBCSS = new BeanContextServicesSupport(new testBeanContextServices(),
new Locale("ru", "RU"), false, false);
        BeanContextServiceRevokedEvent localBCSRE = new BeanContextServiceRevokedEvent(localBCSS,
testBeanContextServices.class, true);
        System.out.println("getSourceAsBeanContextServices() = " + localBCSRE.getSourceAsBeanContextServices());

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))

getSourceAsBeanContextServices() = java.beans.beancontext.BeanContextServicesSupport@1b37ad

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.
getSourceAsBeanContextServices() = 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 = r430643, (Aug 11 2006), Windows/ia32/msvc 1310, debug build
getSourceAsBeanContextServices() = 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