Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 55662 invoked from network); 25 Jun 2009 18:35:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 18:35:26 -0000 Received: (qmail 67797 invoked by uid 500); 25 Jun 2009 18:35:37 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 67748 invoked by uid 500); 25 Jun 2009 18:35:37 -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 67738 invoked by uid 99); 25 Jun 2009 18:35:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 18:35:37 +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; Thu, 25 Jun 2009 18:35:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9AD1029A0018 for ; Thu, 25 Jun 2009 11:35:07 -0700 (PDT) Message-ID: <1355680962.1245954907633.JavaMail.jira@brutus> Date: Thu, 25 Jun 2009 11:35:07 -0700 (PDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-1687) [classlib][net] unexpected IllegalAccessError for HttpURLConnection.getRequestProperty(String) 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-1687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess closed HARMONY-1687. --------------------------------- Closing as this has been verified. > [classlib][net] unexpected IllegalAccessError for HttpURLConnection.getRequestProperty(String) > ---------------------------------------------------------------------------------------------- > > Key: HARMONY-1687 > URL: https://issues.apache.org/jira/browse/HARMONY-1687 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Vladimir Ivanov > Assignee: Paulex Yang > Attachments: HttpURLConnectionTest.patch, patch.diff > > > The method HttpURLConnection.getRequestProperty(String) leads to 'null' on RI and IllegalAccessError on Harmony. > ============== test.java ================== > import java.net.*; > public class test { > public static void main(String[] args) throws Exception { > HttpURLConnection u= (HttpURLConnection)(new URL("http://intel.com").openConnection()); > u.connect(); > System.out.println("res = " + u.getRequestProperty("qwerty")); > } > } > ======================================= > Output: > ============= BEA VM ============== > 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)) > res = null > ============= IBM VM ============== > C:\tmp\tmp17>C:\harmony\classlib1.5\deploy\jdk\jre\bin\java.exe -Dshowversion=true -cp . test > Exception in thread "main" java.lang.IllegalAccessError: Cannot access request header fields after connection is set > at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getRequestProperty(HttpURLConnection.java:942) > at test.main(test.java:7) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.