Problem with JDK 1.4.2. Please help us!

Dear community,

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.


--
Best regards,
Vladimir Kondratyev
________________
JetBrains

0
Avatar
Permanently deleted user

Please note this request is marked as RFE, not a bug. So we need to watch
Top25 RFEs

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Marcus Brito" <pazu@animegaiden.com.br> wrote in message
news:19953644.1049817768949.JavaMail.jrun@is.intellij.net...

182 votes by now. That's the same count as bug #8 in the Top 25 list. It

wouldn't be unreal to get to #3 on #4 by the next few days :)


0
Avatar
Permanently deleted user

Done x3

- scott

"Vladimir Kondratyev" <vova@intellij.com> wrote in message
news:b6s3kq$74s$1@is.intellij.net...

Dear community,

>

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.

>
>

--
Best regards,
Vladimir Kondratyev
________________
JetBrains



0
Avatar
Permanently deleted user

Works like a charm. Thank you!

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"kesh" <ksibilev@yahoo.com> wrote in message
news:b6uroe$p3o$1@is.intellij.net...

You're welcome. Hope this helps to release a new build bundled with 1.4.2
:)

>

/kesh

>

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6uqrc$mmt$1@is.intellij.net...

Wow! sun.misc.Cleaner appeared in last JDK beta. You're fast enough :)
Anyway thanks, we'll try this out.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"kesh" <ewr@rew.com> wrote in message

news:b6sji1$36v$1@is.intellij.net...

Even though that I don't understand exactly what your problem is, but

after

poking around
I'd like to suggest the following hack to the problem
(the example is taken from
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html):

>

import java.security.AccessController;
import java.security.PrivilegedAction;
import java.lang.reflect.*;
import java.io.*;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;

>

class TestMemoryMapping
{
public static void main(String[] args)
{
try
{
File f = File.createTempFile("Test", null);
f.deleteOnExit();
RandomAccessFile raf = new RandomAccessFile(f, "rw");
raf.setLength(1024);
FileChannel channel = raf.getChannel();
MappedByteBuffer buffer =

channel.map(FileChannel.MapMode.READ_WRITE,

0,

1024);
channel.close();
raf.close();
clean(buffer);
buffer = null;

>

// System.gc();
if (f.delete())
System.out.println("Temporary file deleted: "+f);
else
System.out.println("Not yet deleted: "+f);
}
catch (Exception ex)
{
ex.printStackTrace();
}
}

>

public static void clean(final Object buffer) throws Exception {
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
try {
Method getCleanerMethod =

buffer.getClass().getMethod("cleaner",

new Class[0]);
getCleanerMethod.setAccessible(true);
sun.misc.Cleaner cleaner =
(sun.misc.Cleaner)getCleanerMethod.invoke(buffer,new Object[0]);
cleaner.clean();
} catch(Exception e) {
e.printStackTrace();
}
return null;
}
});
}
}

>

It works even without uncommenting System.gc().

>

/kesh

>

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgls$urq$1@is.intellij.net...

Reflection + force gc. They said it would be unmapped in finalize()

which

is

not true anymore.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"kesh" <ewr@rew.com> wrote in message

news:b6sgje$uo4$1@is.intellij.net...

I'm wondering how did you hack it in 1.4.1...

>

/kesh

>

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgci$ucm$1@is.intellij.net...

Aurora heavily uses memory mapped files (for different stuff).

Sometimes

it

is necessary to change underlying physical file (truncate for

example)

which

is not possible since this file is locked by mapped buffer we

have

no

way

to

unmap.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message
news:b6s7se$d32$2@is.intellij.net...

Vladimir Kondratyev wrote:

it seems that we cannot allow to run IDEA (Aurora) under JDK

1.4.2.

There is a problem

>

http://developer.java.sun.com/developer/bugParade/bugs/4724038.html

resolving of which is vital for us.
Please vote for this bug.

>

Done.

>

May I ask how it affects IDEA?

>

Ciao,
Gordon

>

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

>

>
>

>
>

>
>

>
>

>
>

>
>


0
Avatar
Permanently deleted user

Done

0
Avatar
Permanently deleted user

Done

0

Man this is lame, I'm still getting server errors every time i try and hit that link. wtf is up with sun's servers.

0
Avatar
Permanently deleted user

Done, Done, and Done.

0
Avatar
Permanently deleted user

why is the "bug" not in the Top 25 RFE's??? they wrote: the list is compiled on a daily basis, so there may be a slight difference between the vote counts in this list and the vote count shown on the actual bug report. after 2 voting days the "bug" should be in this list. update the top 25 RFE's and change the status to bug SUN!!!

0
Avatar
Permanently deleted user

Done 3 times

0

请先登录再写评论。