harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Berezhniuk (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5079) [drlvm][classloader] Failure running Eclipse TPTP plugin
Date Fri, 01 Feb 2008 17:37:10 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ilya Berezhniuk updated HARMONY-5079:
-------------------------------------

    Attachment: TestClass.java

I've dumped bytecode for my test and for HierarchyPackageImpl.class with jcf-dump.

There is significant difference.
My test passes "Class [Z" from constant pool as j.l.Class, when HierarchyPackageImpl.class
passes result of j.l.Class.forName("[Z") with checking for j.l.ClassNotFoundException:

--------------------------------------------
  0: ldc #17=<Class [Z>
  2: ldc #19=<String "NNN">
  4: invokestatic #21=<Method TestClass.initInst (java.lang.Class,java.lang.String)void>
--------------------------------------------
8515: ldc_w #1041=<String "[Z">
8518: invokestatic #400=<Method java.lang.Class.forName (java.lang.String)java.lang.Class>
8521: dup
8522: putstatic #1039=<Field org.eclipse.hyades.models.hierarchy.impl.HierarchyPackageImpl.class$23
java.lang.Class>
8525: goto 8540
8528: new #406=<Class java.lang.NoClassDefFoundError>
8531: dup_x1
8532: swap
8533: invokevirtual #408=<Method java.lang.Throwable.getMessage ()java.lang.String>
8536: invokespecial #414=<Method java.lang.NoClassDefFoundError.<init> (java.lang.String)void>
8539: athrow
........
Exceptions (count: 137):
  start: 8515, end: 8521, handler: 8528, type: 1065=java.lang.ClassNotFoundException
--------------------------------------------

I tried to use j.l.Class.forName() and play with exception handling to get similar bytecode
(the result is in attachment).
Bytecode looks similar, but the test successfully passes on Harmony.

> [drlvm][classloader] Failure running Eclipse TPTP plugin
> --------------------------------------------------------
>
>                 Key: HARMONY-5079
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5079
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: x86 windows M3 (and M1 and M2)
>            Reporter: Chris Elford
>         Attachments: log.txt, TestClass.java
>
>
> (1) Download/install Eclipse TPTP 4.4.0.3 (plugin for Eclipse 3.3)
> -- Easiest to install all in one from http://www.eclipse.org/downloads/download.php?file=/tptp/4.4.0.3/TPTP-4.4.0.3/tptp.runtime.allInOne.win32.win32.x86-TPTP-4.4.0.3.zip
> (2) launch eclipse with Harmony
> -- I tend to do:
> set ECLIPSE_HOME=C:\utils\eclipse33\eclipse
> %ECLIPSE_HOME%\eclipse.exe -vm c:\java\hre50m3\bin\java -vmargs -Xms512M -Xmx512M
> (3) Open TPTP perspective (profiling and logging)
> -- window->open perspective->other perspective->Profiling and Logging
> (4) Note the "problem opening perspective" dialogue
> Note this only happens with running with Harmony.  log attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message