Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 87963 Details for
Bug 216692
[1.5][compiler] Protected type not visible in subclass
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
The script to run
Bug6.sh (text/plain), 1.06 KB, created by
Olivier Lefevre
on 2008-01-27 00:31:29 EST
(
hide
)
Description:
The script to run
Filename:
MIME Type:
Creator:
Olivier Lefevre
Created:
2008-01-27 00:31:29 EST
Size:
1.06 KB
patch
obsolete
>#!/bin/sh > ># NB: This script assumes cygwin, hence the brain damage with paths; ># it could be simplified if run under Unix. > >ROOT=${1:-`pwd`} >SRC=`cygpath -w "$ROOT\\src"` >ECJ_HOME="c:\\Java\\eclipse-3.4M4" > ># creating the directory structure and the test files > >cd $ROOT >rm -rf src >mkdir -p src/pkg1 src/pkg2 > >cat > src/pkg1/Foo.java << EOF >package pkg1; >import java.util.Map; >public class Foo<T> { > protected final Map<String, Field> fields = null; > protected static class Field { } >} >EOF > >cat > src/pkg2/SubFoo.java << EOF >package pkg2; >import pkg1.Foo; >public class SubFoo<T> extends Foo<T> { > private Field field = null; > private void test() { > Field field = fields.get("test"); > } >} >EOF > ># compiling with javac > >alias javac='$JAVA_HOME/bin/javac -nowarn -classpath "$SRC" -sourcepath "$SRC"' > >javac src/pkg2/SubFoo.java > ># compiling with ecj > >rm -f src/*/*.class > >alias ecj='$JAVA_HOME/bin/java -jar "$ECJ_HOME\\ecj.jar" -1.6 -nowarn -classpath "$SRC" -sourcepath "$SRC"' > >ecj src/pkg2/SubFoo.java > >exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 216692
: 87963 |
88069