Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003026 [Quercus] minor always 10-28-08 09:49 03-30-09 12:13
Reporter ferg 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 3.1.7
  Product Build
Summary 0003026: java_class("System")->currentTimeMillis()
Description (rep by rudi_tato)


<?php

$class = java_class("java.lang.System");

# System.in
$in = $class->in;

# System.currentTimeInMillis();
$time = $class->currentTimeInMillis();

?>
Error code is:

/D:/Java/resin-3.1.7a/webapps/ROOT/MyBean.php:9: Fatal Error: 'java.lang.System::currentTimeInMillis' is an unknown method

what am I doing wrong? I used default configuration and never change anything.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003942)
Electrum
03-27-09 10:24

The manual has the function name wrong. The title of your bug report has it correct. Try this:

$time = $class->currentTimeMillis();
 
(0003945)
markr
03-30-09 04:32

You've got a typo there, probably causing your problem: the Java method's name is currentTimeMillis, NOT currentTimeInMillis.

see http://java.sun.com/javase/6/docs/api/java/lang/System.html#currentTimeMillis() [^]
 
(0003946)
nam
03-30-09 12:13

Fixed mistake in docs.
 

- Issue History
Date Modified Username Field Change
10-28-08 09:49 ferg New Issue
03-27-09 10:24 Electrum Note Added: 0003942
03-30-09 04:32 markr Note Added: 0003945
03-30-09 12:12 nam Status new => assigned
03-30-09 12:12 nam Assigned To  => nam
03-30-09 12:13 nam Status assigned => closed
03-30-09 12:13 nam Note Added: 0003946
03-30-09 12:13 nam Resolution open => fixed
03-30-09 12:13 nam Fixed in Version  => 4.0.0


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