This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NetBeans IDE Dev (Build 20070420-0530) 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 Linux version 2.6.5-1.358 running on i386 en_US (nb); UTF-8 Extract super class and extract interface does now for for classes containing multibyte character in their name. The refactoring end with message: X member cannot be extracted. Steps to reproduce: 1) create class with czech letters in its name 2) add filed/method 3) call Extract Super Class and select member added in step 2 4) press Refactor -> member cannot be extracted
java/source bug. ClassFileUtil.encodeClassName does not differ between byte length and char length.
fixed in /cvs/java/source/src/org/netbeans/modules/java/source/usages/ClassFileUtil.java new revision: 1.5; previous revision: 1.4
Question for developers - Are there other refactoring features where multibyte might be used as name in class, method, variable, etc that might not work for reasons other than this issue ? (other encoding handling situations ) Testing is happening but it will be good to know the info and separate issues can be filed if needed. ken.frank@sun.com
To Ken: The problem was in the generic function (ClassFileUtil), it may cause the similar problem in other refactorings. But these problems are fixed by this patch.
I tried this with multibyte and think its ok - for the steps below to reproduce - what is seen in editor if it can be extracted ok ? I want to be sure before marking as verified. ken.frank@sun.com
It's ok, no waring and super class is extracted correctly -> verified