Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003271 [Quercus] block always 01-16-09 01:14 01-16-09 13:58
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 4.0.0
  Product Build
Summary 0003271: Can't call array_merge() on Java Map
Description <?php
import test.JavaMap;
$x = new JavaMap;
$y = $x->getMap();
array_merge($y, array());


package test;
import java.util.*;
public class JavaMap {
        public Map<String,String> getMap() {
                return new HashMap<String,String>();
        }
}


This throws an exception:

java.lang.UnsupportedOperationException
    at com.caucho.quercus.env.JavaAdapter.getHead(JavaAdapter.java:468)
    at com.caucho.quercus.lib.ArrayModule.array_merge(ArrayModule.java:2577)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.caucho.quercus.module.StaticFunction.invoke(StaticFunction.java:135)
    at com.caucho.quercus.env.JavaInvoker.callMethod(JavaInvoker.java:618)
    at com.caucho.quercus.env.JavaInvoker.call(JavaInvoker.java:553)
    at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:182)
    at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:126)
    at com.caucho.quercus.statement.ExprStatement.execute(ExprStatement.java:64)
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003747)
nam
01-16-09 13:58

php/0ct0
 

- Issue History
Date Modified Username Field Change
01-16-09 01:14 koreth New Issue
01-16-09 13:57 nam Status new => assigned
01-16-09 13:57 nam Assigned To  => nam
01-16-09 13:58 nam Status assigned => closed
01-16-09 13:58 nam Note Added: 0003747
01-16-09 13:58 nam Resolution open => fixed
01-16-09 13:58 nam Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker