Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 48977 invoked from network); 26 Jun 2009 13:41:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jun 2009 13:41:28 -0000 Received: (qmail 93884 invoked by uid 500); 26 Jun 2009 13:41:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 93854 invoked by uid 500); 26 Jun 2009 13:41:38 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 93845 invoked by uid 99); 26 Jun 2009 13:41:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 13:41:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 13:41:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9718E234C1EB for ; Fri, 26 Jun 2009 06:41:07 -0700 (PDT) Message-ID: <339556520.1246023667618.JavaMail.jira@brutus> Date: Fri, 26 Jun 2009 06:41:07 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-5746) [drlvm][kernel] getDeclaredClasses returns nulls (Apache Axis2) In-Reply-To: <397771151.1208361321476.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison closed HARMONY-5746. -------------------------------- > [drlvm][kernel] getDeclaredClasses returns nulls (Apache Axis2) > --------------------------------------------------------------- > > Key: HARMONY-5746 > URL: https://issues.apache.org/jira/browse/HARMONY-5746 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Davanum Srinivas > Assignee: Alexey Varlamov > Fix For: 5.0M6 > > > Anonymous inner classes show up as null's when getDeclaredClasses is called. > =================== Main.java ============================= > public class Main { > public static void main(String[] args) throws Exception { > Class[] classes = DerivedByte.class.getDeclaredClasses(); > for (int i = 0; i < classes.length; i++) { > Class aClass = classes[i]; > System.out.println("CLASS - " + aClass.getCanonicalName()); > } > } > } > ===================== DerivedByte ======================= > public class DerivedByte { > public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName( > "http://soapinterop.org/xsd", > "DerivedByte", > "ns1"); > private static java.lang.String generatePrefix(java.lang.String namespace) { > if (namespace.equals("http://soapinterop.org/xsd")) { > return "ns1"; > } > return null; > } > protected byte localDerivedByte; > public byte getDerivedByte() { > return localDerivedByte; > } > public void setDerivedByte(byte param) { > this.localDerivedByte = param; > } > public static boolean isReaderMTOMAware() { > return true; > } > /** > * Factory class that keeps the parse method > */ > public static class Factory { > public static DerivedByte parse(String xml) throws java.lang.Exception { > DerivedByte object = > new DerivedByte(); > return object; > } > } > public String getOMElement( > final javax.xml.namespace.QName parentQName) { > Runnable r = new Runnable() { > public void run() { > } > }; > r.run(); > return null; > } > public String getOMElement2( > final javax.xml.namespace.QName parentQName) { > Runnable r2 = new Runnable() { > public void run() { > } > }; > r2.run(); > return null; > } > } > ======================= Output on Harmony ==================================== > [dims@dims-desktop test]$ $JAVA_HOME/bin/java -cp . Main > CLASS - DerivedByte.Factory > CLASS - null > CLASS - null > ======================= Output on JDK1.5 ==================================== > [dims@dims-desktop test]$ $JAVA_HOME/bin/java -cp . Main > CLASS - DerivedByte.Factory > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.