Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004148 [Quercus] minor always 07-30-10 03:40 03-22-12 13:41
Reporter andrew_miah View Status public  
Assigned To
Priority normal Resolution open  
Status feedback   Product Version 4.0.9
Summary 0004148: Java String variable argument lists.
Description Invoking a java method expecting a variable length list of Strings:

public void myMethod( String... params ) {
...
}

Causes the following to be reported from Quercus:

Fatal Error: Can't assign Some-Text with type class com.caucho.quercus.env.ConstStringValue to class java.lang.String
Additional Information Changing the Java method to accept "Object..." resolves the problem.
Attached Files

- Relationships

- Notes
(0005262)
domdorn
05-19-11 08:56

please post some demo code on how you're using this.
 
(0005270)
andrew_miah
05-20-11 03:45

Hello Dominic,

The code I'm having problems with is fairly well embedded in our source, though this is the simplest I can provide:

// Java:
public class Helper {
 // This works.
 public void test1( Object... args ) {}

 // This doesn't.
 public void test2( String... args ) {}
}

// PHP:
<?php
 import Helper;
 $helper = new Helper();

 // This works.
 $helper->test1();

 // This fails with Fatal Error: Can't assign a with type class com.caucho.quercus.env.ConstStringValue to class java.lang.String
 $helper->test2();
?>


BR,
Andrew.
 

- Issue History
Date Modified Username Field Change
07-30-10 03:40 andrew_miah New Issue
05-19-11 08:56 domdorn Note Added: 0005262
05-19-11 08:56 domdorn Assigned To  => domdorn
05-19-11 08:56 domdorn Status new => feedback
05-20-11 03:45 andrew_miah Note Added: 0005270
03-22-12 13:41 domdorn Assigned To domdorn =>


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